Jump to content
IGNORED

blank screen?


ResidentevilLeonfan

Recommended Posts

Everything works fine and compiling works like a charm. However, when i run my game and Stella opens up, i get a blank screen as opposed to viewing my sprites. Did i do anything wrong?

 

rem Generated 1/17/2013 9:42:28 PM by Visual bB Version 1.0.0.548

rem **********************************

rem *<filename> *

rem *<description> *

rem *<author> *

rem *<contact info> *

rem *<license> *

rem **********************************

 

 

playfield:

XX..............................

XX..............................

X..XXXXXXXXX....................

XXXXXXXXXX.XXXXXXXX.............

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

XX..............................

XXXXXXXXXXXXXXXXXXXXXXXXX.......

XXXXXXXXXXXXXXXXXXXXXXXXX.......

XXXXXXXXXXXXXXXXXXXXXXXXX.......

XXXXXXXXXXXXXXXXXXXXXXXXX.......

XXXXXXXXXXXXXXXXXXXXXXXXX.......

end

COLUBK=$38

COLUPF=212

hero

player0x=50:player0y=50

player1x=20:player1y=20

player0:

%00000000

%00000000

%00000000

%00000000

%00000000

%00000000

%00000000

%00000000

end

villian

player0:

%00000000

%00000000

%00000000

%00000000

%00000000

%00000000

%00000000

%00000000

end

 

drawscreen_loop

drawscreen

goto draw_loop

Link to comment
Share on other sites

Everything works fine and compiling works like a charm. However, when i run my game and Stella opens up, i get a blank screen as opposed to viewing my sprites. Did i do anything wrong?

 

Do you see anything wrong with this:

 

drawscreen_loop

  drawscreen

  goto draw_loop

 

Take a second to look at it. I'll wait . . .

 

 

 

 

 

 

 

Do you see the problem? There are actually two problems. Your goto isn't pointing to a label that exists. The second problem is that you don't want to start a label or variable name with a keyword. A great way to avoid that is to use an underscore. I start labels with two underscores and variable aliases with one underscore. Example:

 

__Main_Loop

  drawscreen

  goto __Main_Loop

 

 

 

Check out this thread to learn more about posting code:

 

http://www.atariage....les-and-images/

Link to comment
Share on other sites

You

Do you see anything wrong with this:

 

drawscreen_loop

drawscreen

goto draw_loop

 

Take a second to look at it. I'll wait . . .

 

 

 

 

 

 

 

Do you see the problem? There are actually two problems. Your goto isn't pointing to a label that exists. The second problem is that you don't want to start a label or variable name with a keyword. A great way to avoid that is to use an underscore. I start labels with two underscores and variable aliases with one underscore. Example:

 

__Main_Loop

drawscreen

goto __Main_Loop

 

 

 

Check out this thread to learn more about posting code:

 

http://www.atariage....les-and-images/

You sir...are a lifesaver! It works perfectly! I don't know how to thank you!
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...