aka "so, you want to write a game, do you?"
© 2008 PeeJay
© 2008 PeeJay
Warning: Undefined array key "keywords_en" in /mnt/web218/a3/28/510129628/htdocs/main.php on line 234 Warning: Undefined array key "description_en" in /mnt/web218/a3/28/510129628/htdocs/main.php on line 235 Warning: Undefined array key "commercials" in /mnt/web218/a3/28/510129628/htdocs/main.php on line 261
FOREACH en IN enemies[] en.enx=en.enx-dirx en.eny=en.eny-diry IF en.enx<-32 OR en.enx>640 OR en.eny<-32 OR en.eny>480 THEN DELETE en NEXTNow for each movement the player does, just as the background move in sympathy, so do the enemies. There, it easy enough to do, but if you try running it again you will see it makes a big difference to the overall impression to the game.