Project #7 Bitmap Game
Description
This game is basically a escape game. In the first scene, the player is on a boat in the middle of sea at the very beiginning. The boat is going to sink so the player has to jump into the sea and swim to the land.
Design Process
Before starting this project, I learned to divide my code into different file, which is much more convenient for editing and management. So my design order is to build 3 basic scene and add differences for them.
Generally those 3 scenes are all about ocean and I want to create a dynamic atmosphere. I start with drawing dynamic clouds and wave on canvas. Then I picked sharks as the core barriers, letting them swim randomly in the sea. Those dynamic elements are all wrapped in different functions respectively, and in this way I utilize them repeatedly but also with slight position differences in 3 scenes.
Then I add some features for my scenes. The first scene is the very beginning of the journey, so I draw a ship as a mark for it. The second scene is the middle one, and I draw a customizing shape to build an island as a rest station for this ocean trip. In the final scene, I paint the edge of the sand beach, which can deliver the message that players have escaped successfully.
Reflection
Learning the concept and exact manipulation of dividing code into different sketch is my biggest gain. But it also throw into a big confusion. As the content become more and more complicated, it seems to be necessary to make clear the whole structure before coding. My preliminary direction is to start from building scene, but I still need some more experienced suggestions.