Jump to content
IGNORED

Playfield/ score help


Recommended Posts

rem variables used up so far

rem a,b,c,g,h,p

opening

playfield:

XXXX.XXXX.XXXXXX.XXXXXX.XX..XX..

X..X.X..X...XX.....XX...XX..XX..

XXXX.X..X...XX.....XX.....XX....

X....X..X...XX.....XX.....XX....

X....X..X...XX.....XX.....XX....

X....XXXX...XX.....XX.....XX....

...X...X.XX..XX.XX...X..XXXXXX..

...X...X.XX..XX.XXX..X....XX....

...XXXXX.XX..XX.X.XX.X....XX....

...X...X.XX..XX.X..XXX....XX....

...X...X.XXXXXX.X...XX....XX....

end

dim p0_x = b

dim p0_y = c

dim p1_x = g

dim p1_y = h

 

 

rem Loop the screen until the spacebar is pressed

title

 

COLUBK = rand

 

drawscreen

if joy0fire || joy1fire then goto skiptitle

goto title

 

 

 

rem This function displays after the title is skipped

skiptitle

COLUPF = rand

COLUBK = 212

 

player0x = 50 : player0y = 75

player1x = 20 : player1y = 20

score = 5 : scorecolor = 0

missile0height=4:missile0y=255

NUSIZ0 = 16

a = 5

rem Create the playfield

 

playfield:

.XX.....X...XX..XX..............

..........................X.....

..........................X.....

.......X.....X....X.......X.....

.......X........................

.X.................X............

.........................XXXX...

....X......X.....X..............

................................

................................

...X.X..X..X........X...X.....X.

end

 

goto main

 

skiptitle2

 

COLUPF = 45

COLUBK = 212

 

player0x = 80 : player0y = 75

player1x = 20 : player1y = 20

 

playfield:

................................

.......................XXXXX....

................................

..................X.............

..XXXXXXX.X.XX.XX.X..XXXXX......

................................

..................X.............

..................X.............

..................X.............

..XX.....XX.......X.............

................................

end

drawscreen

goto main2

 

 main

 

 

 

if score > 6 then goto skiptitle2

main2

 

 

Whats the best way to change playfields? I can get it to change from the title, but I want it to change when a certain score is reached. I was hoping to have atleast 10 seperate levels. I have code under the main2 that handle collision detection point sound, boundries ect. But I cant seem to get the level to change after the intro screen? thanks for any help you can give

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...