Jump to content
Retrospect

I'm not saying it's aliens .....

Recommended Posts

9 hours ago, Keatah said:

Just count the number of aliens blown up and increase speed accordingly.

I used an array to flag up which alien is "alive", it was called something like "AA(xx)" 

There are 40 such aliens.  If Alien number 12 is the only one left alive, the counter still checks through 40 aliens regardless.

Only 1 alien is moved each "update".  So it's checking from aliens 1 to 40 , which one is still alive.  I could try a better system, maybe even check the Space Invaders source code for how he did his indexing system.  But it's a way off yet as I have issues cognitively at present.  Hopefully not for too long.

  • Like 1
  • Thanks 2

Share this post


Link to post
Share on other sites
1 hour ago, Retrospect said:

I used an array to flag up which alien is "alive", it was called something like "AA(xx)" 

There are 40 such aliens.  If Alien number 12 is the only one left alive, the counter still checks through 40 aliens regardless.

Only 1 alien is moved each "update".  So it's checking from aliens 1 to 40 , which one is still alive.  I could try a better system, maybe even check the Space Invaders source code for how he did his indexing system.  But it's a way off yet as I have issues cognitively at present.  Hopefully not for too long.

I think the compiled version works well in this iteration.  If you come up with a better system, maybe a sequel?  I'm not saying it's aliens... but it's aliens, again! :D

  • Thanks 2
  • Haha 2

Share this post


Link to post
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...