I'm trying to make a game called Going Dotty - where you control a titular dot as it is chased by... another dot. You must find powerups and make fake dots appear to distract your enemy.
Anyway, I haven't gotten anywhere near the gameplay yet. When I try to put in my playing field:
pfcolors: $02 $04 $06 $08 $0A $0C $0A $08 $06 $04 $02 end playfield: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X..............................X X..............................X X.............X..X.............X X.............XXXX.............X X..............................X X.............XXXX.............X X.............X..X.............X X..............................X X..............................X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end
VbB tells me the syntax with the colours is wrong. At this point, an idea hits me: to save space and to give each round a different look, why not have the playing field change colour?
My resulting code for messing around was:
playfield: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X..............................X X..............................X X.............X..X.............X X.............XXXX.............X X..............................X X.............XXXX.............X X.............X..X.............X X..............................X X..............................X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end level = 1 COLUPF = level*2 COLUBK = 0 scorecolor = 14 draw_loop drawscreen goto draw_loop
But then I had ANOTHER idea. Why not simply make it so that each time the level advances, COLUPF = COLUPF+2?
Anyway, I'm nowhere near getting any of this. My question is how do I make variables? I want the dots not to fly around the screen at a constant pace, so I want to make playerhspeed/playervspeed variables. Is it simply a matter of doing just that or am I missing something?
Sorry for jabbering, thanks in advance.
EDIT: One more thing, when I try to make these variables, not only does vBb not like those, but suddenly it gets a syntax error from the drawscreen line?
Edited by SuperNESFreak, Thu Dec 30, 2010 5:11 AM.














