The player can now do the following:
- Move around; Colliding into the edges of the room.
- Look around; Looking at the cursor.
Also, a couple of basic visual ideas were set up:
- Camera movement occurs only after collision with an invisible bounding box in the center of the screen. This is similar to the implementation found in most 2D platformers.
|While the player is within the box, only the sprite will move. If the player attempts to move outside of the box, the map will move instead.|
- This will eventually lead to smooth camera movement. The camera will smoothly accelerate/decelerate when map movement occurs.
Now to get map generation going.