You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

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

b/Calculator Talk Started by JWinslow23, September 11, 2016, 10:13:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

u/JWinslow23 December 20, 2016, 11:53:05 AM
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.
u/p2 December 20, 2016, 11:58:45 AM
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 >.<)
u/JWinslow23 December 20, 2016, 12:07:19 PM
I'm sure the drawbacks of that would outweigh the benefits.

I need a Christmas miracle for this :P .
u/MateoConLechuga 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
u/JWinslow23 December 20, 2016, 05:06:59 PM
Works for me. The current download links should be updated within a day.
u/critor December 20, 2016, 05:39:49 PM
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 :)
u/MateoConLechuga December 20, 2016, 06:26:16 PM
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.
Last Edit: December 20, 2016, 06:29:29 PM by MateoConLechuga
u/critor December 20, 2016, 07:01:31 PM
Just made a TAS of TITOLCE with CEmu, in 5:25.37.

Enjoy :
u/p2 December 20, 2016, 08:42:05 PM
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 ^^ :)
u/JWinslow23 December 20, 2016, 10:47:19 PM
@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.
u/p2 December 20, 2016, 11:01:08 PM
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
u/MateoConLechuga December 21, 2016, 05:48:34 AM
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
u/critor December 21, 2016, 05:41:49 PM
But, but... Elephants never forget, do they ? :P
u/JWinslow23 December 21, 2016, 05:55:12 PM
Updated with bugfixes and Easter eggs.



File should update itself by the end of the day, December 21.
u/Dream of Omnimaga December 21, 2016, 10:46:25 PM
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. :(
Last Edit: December 21, 2016, 10:54:43 PM by DJ Omnimaga
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal