Jump to content
IGNORED

Zeitgeist Dystopia-Omega Dawn


ultima

Recommended Posts

Looks neat. I'm so glad you aliased your variables with meaningful names. Seems like your code could be streamlined some.

Isn't this:

 counter = counter + 1
 rem generate starfield
 ballx = (rand&127) + 1
 bally = (rand&31) + 31
__movestar

a concise version of this:

 counter = counter + 1
 rem generate starfield
 if counter = 1 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 10 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 20 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 30 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 40 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 50 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 60 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 70 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 80 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 90 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 100 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 110 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 120 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 130 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 140 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 150 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 160 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 170 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 180 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 190 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 200 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 210 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 220 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 230 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 240 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 250 then ballx = (rand&127) + 1 : bally = (rand&31) + 31
__movestar

I would think about splitting the screen into three horizontal regions (in addition to how you split it vertically down the middle already), randomly placing new stars in one of those regions and moving them along different trajectories based on the region. This would make it have a more immersive first person feel I think.

 

post-40226-0-69674300-1456296787_thumb.png

  • Like 1
Link to comment
Share on other sites

Looks neat. I'm so glad you aliased your variables with meaningful names. Seems like your code could be streamlined some.

 

Isn't this:

 counter = counter + 1
 rem generate starfield
 ballx = (rand&127) + 1
 bally = (rand&31) + 31
__movestar

a concise version of this:

 counter = counter + 1
 rem generate starfield
 if counter = 1 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 10 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 20 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 30 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 40 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 50 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 60 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 70 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 80 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 90 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 100 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 110 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 120 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 130 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 140 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 150 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 160 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 170 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 180 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 190 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 200 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 210 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 220 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 230 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 240 then ballx = (rand&127) + 1 : bally = (rand&31) + 31 : goto __movestar
 if counter = 250 then ballx = (rand&127) + 1 : bally = (rand&31) + 31
__movestar

I would think about splitting the screen into three horizontal regions (in addition to how you split it vertically down the middle already), randomly placing new stars in one of those regions and moving them along different trajectories based on the region. This would make it have a more immersive first person feel I think.

 

attachicon.gifstar movement.png

I refined it with no visible difference to:

counter = counter + 1

if counter = 1 then ballx = (rand&127) + 1 : bally = (rand&31) + 31

if counter =10 then counter = 0

*this way the star will have some time to move. I will have a look at splitting the screen as soon as I have some more time. Thanks for the ideas it now has 3018 bytes in bank 1 lots of room to build on now :)

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...