Author Topic: Shutdown (a clone of Lights Out Deluxe)  (Read 4463 times)

0 Members and 1 Guest are viewing this topic.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Shutdown (a clone of Lights Out Deluxe)
« Reply #15 on: November 11, 2013, 01:27:16 pm »
On a scale of 1 to 10, how would my game be rated?
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Shutdown (a clone of Lights Out Deluxe)
« Reply #16 on: November 14, 2013, 10:52:26 pm »
Labels can also be handy if your gameplay loop is at the very start of your program and needs no variable to increment by the same value every loop iteration. In such case, Lbl is actually faster than While/Repeat. If you have a variable to increment every loop, though, then For is faster. Normally, loops made of Lbl/Goto are much slower than normal ones, but the higher the Lbl in the code, the faster the looping, and it gets to the point where at the top of the code, it can actually be faster.
« Last Edit: November 14, 2013, 10:53:20 pm by DJ Omnimaga »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Shutdown (a clone of Lights Out Deluxe)
« Reply #17 on: November 15, 2013, 08:49:55 am »
Labels can also be handy if your gameplay loop is at the very start of your program and needs no variable to increment by the same value every loop iteration. In such case, Lbl is actually faster than While/Repeat. If you have a variable to increment every loop, though, then For is faster. Normally, loops made of Lbl/Goto are much slower than normal ones, but the higher the Lbl in the code, the faster the looping, and it gets to the point where at the top of the code, it can actually be faster.
Oh, so for each goto it has to re-look through the whole code for the label? (Why doesn't TI look through the code before running it :P)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: Re: Shutdown (a clone of Lights Out Deluxe)
« Reply #18 on: November 15, 2013, 11:54:52 am »
Labels can also be handy if your gameplay loop is at the very start of your program and needs no variable to increment by the same value every loop iteration. In such case, Lbl is actually faster than While/Repeat. If you have a variable to increment every loop, though, then For is faster. Normally, loops made of Lbl/Goto are much slower than normal ones, but the higher the Lbl in the code, the faster the looping, and it gets to the point where at the top of the code, it can actually be faster.
Oh, so for each goto it has to re-look through the whole code for the label? (Why doesn't TI look through the code before running it :P)
it starts searching at the top of the code then goes down. It stops searching once the Lbl is found. In a 15 KB program, if the label is at the very bottom, it can take nearly a second before it's found.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Shutdown (a clone of Lights Out Deluxe)
« Reply #19 on: November 15, 2013, 12:57:08 pm »
I see there has been much talk about labels in BASIC. I don't understand, however, that nobody has voted in the now-included poll. ???

Because there are only two labels, one to end the game and one at the very start, it wouldn't make much of a difference there. The delay of getting back to the start is nonexistent, and the delay of getting out of the program exists, but it's small. The last one doesn't matter, though, it's only getting out anyways.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Shutdown (a clone of Lights Out Deluxe)
« Reply #20 on: November 15, 2013, 10:40:49 pm »
The reason why nobody voted in the poll is because there is no download available for the game. Most people don't feel like manually copy-pasting the code in SourceCoder, let alone typing it manually on their calc, then creating a 8xp file, when the author could have provided a 8xp himself.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Shutdown (a clone of Lights Out Deluxe)
« Reply #21 on: November 17, 2013, 07:10:27 pm »
Most people don't feel like manually copy-pasting the code in SourceCoder, let alone typing it manually on their calc, then creating a 8xp file, when the author could have provided a 8xp himself.
Works for me! .8xp coming soon!

EDIT: Sorry for the bump, but I am working on an Axe version. The discussion is here, I guess. I just need a debounce routine (and light toggling, once that's done) and it will be ready!
« Last Edit: November 30, 2013, 01:29:57 pm by JWinslow23 »
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?