Hello all, I have finally come around to make my second game. It is a platformer, and it is early (read: very very early) in development. Any comments or suggestions? Thanks! .bin attached.
-Michael
Posted Tue Mar 8, 2011 7:11 PM
Posted Tue Mar 8, 2011 7:20 PM
Posted Tue Mar 8, 2011 11:28 PM
Posted Wed Mar 9, 2011 4:29 PM
Posted Wed Mar 16, 2011 2:43 PM
Posted Wed Mar 16, 2011 9:23 PM
petik1, on Wed Mar 9, 2011 4:29 PM, said:
rem * example of moving between rooms dim room_number = a dim movement = b room_number = 1 : rem so you can go left or right from the start movement = 0 : rem not moving yet COLUBK = $00 : rem black player0: %11000011 %01100110 %00111100 %00011000 %00011000 %11111111 %00011000 %00011000 end player0x = 17 player0y = 64 main_loop COLUP0 = $3A : rem peach player0x = player0x + movement : rem move player0 on room_number gosub room0 room1 room2 : rem draw the room drawscreen : rem draw the screen if collision(player0,playfield) then player0x = player0x - movement rem knock player0 back if collided with playfield movement = 0 : rem reset movement before checking joystick if joy0left then movement = 255 : rem 255 is equal to -1 (left) if joy0right then movement = 1 : rem 1 is equal to +1 (right) if player0x = 16 then gosub room_to_the_left if player0x = 137 then gosub room_to_the_right goto main_loop room0 COLUPF = $1C playfield: ................................ ................................ ................................ ................................ ................................ ................................ X............................... X............................... XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ................................ ................................ end return room1 COLUPF = $4C playfield: ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ................................ ................................ end return room2 COLUPF = $8C playfield: ................................ ................................ ................................ ................................ ................................ ................................ ...............................X ...............................X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ................................ ................................ end return room_to_the_left room_number = room_number - 1 player0x = 136 return room_to_the_right room_number = room_number + 1 player0x = 17 returnBasically, you can check the player's x coordinate to see if he's moved to a point where you want the screen to change. You would also want to make him disappear off of one side and reappear on the other side-- i.e., if he moves off the left edge of one screen, he would end up near the right edge of the new screen, or vice versa.
petik1, on Wed Mar 9, 2011 4:29 PM, said:
Posted Thu Mar 17, 2011 2:49 AM
petik1, on Wed Mar 16, 2011 2:43 PM, said:
0 members, 0 guests, 0 anonymous users