Author Topic: Switch  (Read 8391 times)

0 Members and 2 Guests are viewing this topic.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Switch
« Reply #15 on: February 02, 2012, 08:53:08 pm »
Ok, I've been testing this on and off throughout the day and haven't found any bugs, so beta time.
Only thing I'm not too fond of is how long it takes to archive the scores appvar at the end, but I haven't spent too much on that as of yet.

Haven't gotten to optimizing yet, I'll prolly have to do it on the comp because of how the flow works but I've done...
 - Best Score saving (the lower the better)
 - Game saving
 - Teacher key

The teacher key works just like a normal pause, except it turns the screen off using s Shade(0).  Pressing [On] would quit the game, return to the homescreen and then turn on the screen as if the calc had APD'd or something.

Tentatively added controls:
 [Del] Save game and quit
 [Stat] Teacher key
 [^] Return to main menu
While Paused:
 [On]/[Clear] Quit without saving
 [Del] Save and quit
 [Mode]/[Stat] Continue

No real aesthetic changes other than going back to the old sprites, so just the 8xps this time.

Edit: In case you didn't notice I split this off the YAMGT thread, a whole page is kind of big for a "minigame" :P
« Last Edit: February 02, 2012, 08:54:22 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Switch
« Reply #16 on: February 14, 2012, 10:40:06 pm »
Atm it's at 5621 bytes according to the mem menu, and I'm attempting to optimize it for size.  Haven't done this for a while so we'll see how it goes :P
http://piratepad.net/Switch
« Last Edit: February 14, 2012, 10:40:30 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Switch
« Reply #17 on: February 15, 2012, 03:39:42 pm »
I...Can't...just...one...more...light...GAH!
Cool minigamezorz!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Switch
« Reply #18 on: February 15, 2012, 03:55:16 pm »
Any screenshots?

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Switch
« Reply #19 on: February 15, 2012, 06:27:45 pm »
Any screenshots?
Not really any graphic changes in the latest version, so I'll re-post a few old screenshots ;)


Still optimizing here and there, tho the etherpad's largely untouched :P  The part that seems to be taking up the most space is the level generation and the graphics manipulation when a light gets toggled or changed (especially in 4-scale) so I'm working on some way to have it reference a GDB rather than a dozen-plus If statements :/

I...Can't...just...one...more...light...GAH!
I made it so the game ends if the total value of the lights is equal to the currently selected light, so it should automatically end if there's just one last unsolvable one.  Did you mess with the light a bit, putting the selector over it and etc?
« Last Edit: February 15, 2012, 10:31:25 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Switch
« Reply #20 on: February 15, 2012, 11:41:33 pm »
Oh wait earlier I didn't notice I was on a 2nd page so I missed the other screenshots ???. My bad lol.

This looks awesome O.O. I wonder if it's very hard though since there are so many lights lol

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Switch
« Reply #21 on: February 22, 2012, 11:02:45 am »
for those who got here from the link in my sig, screenies above

Well, at least in my experience it hasn't been really hard once you got the gist of it.  It's just kind of time-consuming, which is what I was going for in the first place ;D

Also optimized ~300 bytes off the exec by putting the big text-drawing stuff in a sub, because it's used three times.  The old code's still there in comment blocks tho :P
I think there's still a bug where high scores are saved but aren't displayed immediately after in the main "menu," I'm looking into that.  Afaict it's because the main menu looks to the archive for the stored scores, and while the program's open I think it's kept in the ram.

Edit: I'm looking at the code in a piratepad; the var's kept in archive and is unarchived to store the high score to, and archived just after.  I guess it'll be fixed by doing a GetCalc() again.
Edit2: Fixed ;D and re-uploaded.
« Last Edit: February 25, 2012, 02:57:22 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Switch
« Reply #22 on: February 22, 2012, 12:32:32 pm »
WTF Y U STEAL MAH GAME IDEA
I'm not a nerd but I pretend:

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Switch
« Reply #23 on: February 22, 2012, 12:52:38 pm »
Well I had this idea more than a year ago, it's just recently that I expanded on it.
Vy'o'us pleorsdti thl'e gjaemue

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Switch
« Reply #24 on: February 25, 2012, 12:38:27 pm »
Added download in Omni archives, also pending on ticalc.org ;D

Gimp took some obnoxious liberties when animating the first two screenshots, so they're kind of screwed up :|

Also I have no idea how the _noshell got to be only 76 bytes 0.o
« Last Edit: February 27, 2012, 08:21:15 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Switch
« Reply #25 on: February 25, 2012, 09:36:20 pm »
wow aeTIos, haha you know this isn't exactly an original idea? No offense intended Darl, this is a really good implementation of an age-old idea.
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Switch
« Reply #26 on: February 27, 2012, 08:07:54 pm »
The same night I submitted Switch to ticalc, I went into the source and found a way to optimize out ~200 bytes.  So...

Update.  As well as the smaller file size there's a few things fixed, such as saved games being continuously reloaded until the program closes and the behavior of the menu when you return to it.
Also put together two screenies that I designed to go next to each other in the first place.
(readme and other-shell-compatible programs in the zip)
Vy'o'us pleorsdti thl'e gjaemue

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Switch
« Reply #27 on: March 09, 2012, 05:08:34 pm »
wow aeTIos, haha you know this isn't exactly an original idea? No offense intended Darl, this is a really good implementation of an age-old idea.

Yes actually I know.
And wow, someone rated me down on that post, it wasn't intended offensive, more jokingly.
Also darl, that looks very good, better than I could do.
« Last Edit: March 09, 2012, 05:09:06 pm by aeTIos »
I'm not a nerd but I pretend:

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Switch
« Reply #28 on: March 09, 2012, 05:10:01 pm »
wow aeTIos, haha you know this isn't exactly an original idea? No offense intended Darl, this is a really good implementation of an age-old idea.

Yes actually I know.
And wow, someone rated me down on that post, it wasn't intended offensive, more jokingly.
Also darl, that looks very good, better than I could do.
I got your back. ;)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Switch
« Reply #29 on: March 09, 2012, 05:14:11 pm »
OK, I found it actually no problem if someone voted me down on that post, after all its a personal choice. But thanks for getting me back :)
I'm not a nerd but I pretend: