Join us on Discord!
You can help CodeWalrus stay online by donating here.

[TI-84+CE] This Is The Only Level +CE

Started by JWinslow23, September 11, 2016, 10:13:25 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

JWinslow23

Well, I'm pretty sure the problem is that I'm reading from the keyboard too much, but I'm not sure how to correct this enough to make it unable to crash like this. I'm hoping Mateo can figure something out, so I can update as soon as possible with a fix.

p2

if it's events triggered by the key listener, maybe insert a 10ms pause? (only guessing here, I dont know your code nor the language >.<)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)


MateoConLechuga

I reworked your code and did a few optimizations and fixed some bugs. I no longer can make it crash; can anyone else?

Download: https://usercontent.irccloud-cdn.com/file/rxrou2wd/TITOLCE.zip


critor

Quote from: MateoConLechuga on December 20, 2016, 04:29:14 PM
I reworked your code and did a few optimizations and fixed some bugs. I no longer can make it crash; can anyone else?

Download: https://usercontent.irccloud-cdn.com/file/rxrou2wd/TITOLCE.zip

Thank you Mateo :)

MateoConLechuga

#96
Quote from: JWinslow23 on December 20, 2016, 12:05:42 AM
@MateoConLechuga , in CE C, how do you get the current year, month, day, hour, minute, and second on the CE clock in the MODE menu? The demo isn't making it clear.
Well, idk really because TI makes it orders of magnitude more difficult than it should be. However, might be able to just use these defines for now while I work on making it a nice little structure or something. Note that years are weird; you cannot set them directly. However, these may work fine if you are just reading the values -- I haven't tested enough, but it seems right.

#define os_Years  (*(uint24_t*)0xD177CF)
#define os_Months (*(uint24_t*)0xD177DB)
#define os_Days   (*(uint24_t*)0xD177D8)


You can just use rtc_Hours, rtc_Minutes, rtc_Seconds for the other things.
I'm actually not sure how TI treats days. May be better to just use rtc_Days.

critor


p2

great choice of music, its really perfect for this game xD ;D
But I think it would look better if in the "keep hitting it" level, the door would open up like 2px every time you hit it ^^ :)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

JWinslow23

@p2 that might not be a bad idea! It wasn't in the original game, but that would probably look better (and give you more of a clue how to beat the stage). However, I'm not sure if it'll look weird that, say, 4/5 of the door is open but you can't go in.

p2

maybe you could make it like slowing the elephant down very much when the door isnt completely open? :)

closed door = 0 speed
...?
open door = max speed
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

MateoConLechuga

Quote from: JWinslow23 on December 20, 2016, 12:05:42 AM
@MateoConLechuga , in CE C, how do you get the current year, month, day, hour, minute, and second on the CE clock in the MODE menu? The demo isn't making it clear.
I cleaned up the toolchain and added API functions to easily set/get the date and time. See boot_GetDate for example in tice.h :)

https://github.com/CE-Programming/toolchain/releases/latest

critor

But, but... Elephants never forget, do they ? :P


Dream of Omnimaga

#104
I can't wait to try it. Also nice light effect :D

EDIT: I don't know if ticalc has the latest version @JWinslow23 but the easter egg you mentioned to me on WalrusIRC earlier does nothing. I pressed the key on the menu at the title screen or in game, on every menu option, and nothing special happened. :(
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal