Okay, my problem is that not only does the enemy not move, I get an error message about ' if joy0fire then g=1'. (which starts/unpauses a game)
There a couple of things which aren't causing errors but I think could be improved. For one, the paddles are both the same sprite (flipped for the second one) is it possible to address them both at the same time?
Also, the collision is quite messy, but I don't know how to make an if statement do more than one code - how do you do this?
Finally, the playfield is just two bars, so is there a way to cut down on that code?
Thanks very much.
PS. It's unrelated to this game, but I've been having little success doing smooth movement, like in Reactor or Defender. Is there a way to increase these variables little by little?
rem Pong, by SuperNESFreak, 2-1-11 set romsize 2k playfield: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end player0: 000011 000011 000011 000011 000011 000011 000011 000011 end player1: 000011 000011 000011 000011 000011 000011 000011 000011 end ready a = 75 : rem playery b = 75 : rem opponenty c = 75 : rem ballx d = 75 : rem bally e = 255 : rem ballhspeed f = 255 : rem ballvspeed g = 0 : rem pause gamea player0x = 16 player1x = 140 player0y = a player1y = b ballx = c bally = d COLUBK = 0 COLUPF = 14 COLUP0 = 14 COLUP1 = 14 REFP1 = 8 scorecolor = 14 if joy0fire then g=1 if g = 0 then goto ready if switchreset then reboot gameb if joy0up then a=a-1 if joy0down then a=a+1 if a<16 then a=16 if a>80 then a=80 if b<d then b=b-1 if b>d then b=b+1 if b<1 then b=1 if b>88 then B=88 if collision(ball,playfield) then f=0-f if collision(ball,player0) then e=0-e if collision(ball,player1) then e=0-e if collision(ball,player0) then f=0-f if collision(ball,player1) then f=0-f if c<4 then score=score-1 if c>251 then score=score+1 if c<4 | c>251 then goto game drawscreen goto game
















