Step 1: To start with i'd like you to create two simple sprites, they should be squares 32x32 and different colours. One is going to be your wall. One your player character.
Remember convention dictates that you begin your sprite naming with "spr_"
Step 2: Then add your sprites to a player and wall object.
Again convention dictates that you begin your object naming with "obj_"
Step 3: Create a room and add your wall object to create a level. Then add your player object. Set the room speed to 60 so we get a super smooth 60fps.
Step 4: I'd now like you create keyboard controls and collision detection for your player character. However you must only use code.
If you're not sure how to do this then use the following video for help:
Step 5:
I'd now like you to explain either through comments or another medium in a lot of detail how the code you have implemented works. Make sure you explain what Variables, Functions and Constants do. Also make sure to explain how your while loop works.
--Update--
If finished have a look and follow along with this video to add a power up to your game. https://www.youtube.com/watch?v=Dmh4yvKzE34
Use lots of comments as you go.
No comments:
Post a Comment