Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Space Invaders like game
#11
They aren't ASCII characters, although that's what they're meant to look like. I don't have Assembly, so I just drew the bullets with LINE and CIRCLE statements.
Code:
IF bullet$ = "yes" THEN
   LINE (bulletx, bullety)-(bulletx, bullety - 10), 3, BF
     IF powerup$ = "bomb" OR powerup$ = "super bomb" THEN
       LINE (bulletx - 3, bullety - 5)-(bulletx + 3, bullety - 5), 3
       LINE (bulletx - 2, bullety - 3)-(bulletx + 2, bullety - 7), 3
       LINE (bulletx - 2, bullety - 7)-(bulletx + 2, bullety - 3), 3
     END IF
     IF powerup$ = "piercing" THEN
       LINE (bulletx, bullety - 10)-(bulletx - 2, bullety - 7), 3
       LINE (bulletx, bullety - 10)-(bulletx + 2, bullety - 7), 3
     END IF
     IF powerup$ = "shaky bullet" THEN
       CIRCLE (bulletx, bullety - 8), 2, 3
       CIRCLE (bulletx, bullety - 2), 2, 3
     END IF
END IF
Bomb, super bomb, piercing, and shaky bullets all have theire own look, as do the enemy bullets.
'm boycotting signatures.
Reply
#12
Ahh okay...wow, they sure look like ASCII characters. I never perused the code so I didn't actually notice. Cool. Big Grin

Okay, now I got the inspiration to make a Space Invaders game for some reason. Big Grin
I'd knock on wood, but my desk is particle board.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)