ProjectX by Chris Fodge31st Aug 2006 14:02
|
---|
Summary The start of my first DBP game. Space invader like. Description Have the main player on the bottom moving. Need to set up a boundery so he can go off the screen still and the add enemy's. Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com Rem Project: ProjectX Rem Created: 8/31/2006 12:30:36 AM Rem ***** Main Source File ***** REM Set Screen Set Display Mode 640, 480, 16 Hide Mouse cls Print "ProjectX v0.1" Print "By Chris Fodge" REM Variables MainX = 320 MainY = 445 REM Load Theme Music Load Music "ProjectX Theme.MID", 1 Loop Music 1 REM create a border LINE 0,0,639,0 LINE 639,0,639,479 LINE 639,479,0,479 LINE 0,479,0,0 REM Load Main Ship sprite load image "ship2.bmp", 1 sprite 1, MainX, MainY,1 set sprite 1, 1, 1 Size Sprite 1,30,30 Rotate sprite 1, 90 REM Move Main sprite left and right DO IF Leftkey() THEN : MOVE SPRITE 1, -4 IF Rightkey() THEN : MOVE SPRITE 1, 4 LOOP |