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

[TI-84+CSE] Nagoji 4x3 CSE [Hybrid Basic]

Started by Unicorn, July 22, 2015, 10:47:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Unicorn

Ok, so I have run into a problem. I need to get rid of the rand( delay, as it lowers the getkey registers. Is there anyways to get the erasing rectangle to erase a customized time after the rectangle is displayed without using rand?

real(0,1,1
real(8,1,0
Lbl H
real(0,3,4,0
"Nagoji:
real(6,0,23,5,6,36
"4x3
real(6,0,83,5,16,36
"CSE
real(6,0,113,5,224,36
160->A
"Play Help/Info Quit 
real(6,0,43,17,5,47
1->Q:1->R:Repeat max(K={21,105,45
">
real(6,0,40R-5,9+8Q,15
real(6,0,40R-6,9+8Q,10
Repeat K
A-40->A
real(7,9,A,40+40(C=1),40,40+40(C=2),D
real(7,9,A,40+40(C=1),40,40+40(C=2),0
If not(A:Then
160->A
B-1->B
randInt(1,255->D
randInt(1,2->C
End
If not(B
16->B
getKey->K
End
">
If max(K={25,34:Then
real(6,0,40R-5,9+8Q,0
real(6,0,40R-6,9+8Q,0
End
Q+(K=34)-(K=25->Q
Q-2(Q=3)+2not(Q->Q
If max(K={24,26
">
real(6,0,40R-5,9+8Q,0
real(6,0,40R-6,9+8Q,0
R+(K=26)-(K=24)->R
R-2(R=3)+2not(R->R
End
DelVar GIf K=45
Goto X
If R=1 and Q=1:Then
real(0,3,4,0
16->B:1->E
DelVar FDelVar HRepeat K=15
Repeat K=15
real(2,0->K
H+1->H
A-40->A
real(7,9,A,0+40(C=2),40,80+40(C=3),D
rand(B
real(7,9,A,0+40(C=2),40,80+40(C=3),F
If not(A:Then
160->A
B-E->B
If H>=100:Then
randInt(0,255->F
real(0,3,4,F
End
If H>=28
randInt(1,255->D
randInt(1,3->C
End
If not(B:Then
1->B
DelVar E
End
If F=D
randInt(0,255->D
End
End
If R=2 and Q=1:Then
real(0,3,4,0
"How to play=Up arrow to jump=Down arrow to slide=Right arrow to SMASH!==The point of the =game is to get=through as many=obstacles as=possible,=traversing through=multiple levels of=different=difficulties and=themes.
real(6,0,0,5,255,61
Repeat getKey
End
1->G
End
If R=1 and Q=2:Then
real(0,3,4,0
"This game was first=envisioned by alexgt=for The Codewalr.us=4x3 Contest. It was=made for the HP=Prime, and now, the=TI-84+ CSE by=Unicorn.
real(6,0,0,5,255,61
Repeat getKey
End
1->G
End
If G
Goto H
Lbl X
real(0,1,1
real(0,3,4,255,1
real(0,3,4,255
Return
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

alexgt

  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Unicorn

lol.I actually fixed that, it was really simple, and I was overthinking it.

Anyways, I've been meaning to bump this agin since all the posts where lost. I have the player displayed and doing moves, just when the player resets back to position I don't erase the leftover squares. I just have to fix that, then implement collision detection, highscores, and balance the difficty out, and I will released ot without any levels. Just one continuous one that gets harder and harder. Then I will work on other games, then come back to this with levels ;)


And welcome back @alexgt :)
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Dream of Omnimaga

Glad to see progress :). How is the speed so far by the way? Do you also swap back and forth between each half of the LCD? Because that would get rid of the flicker.
  • 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

Unicorn

Yeah, I don't swap back and forth yet, and progresss is pretty good, but I'm kinda working on MoneyWalrus rigt now.
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

alexgt

Quote from: Unicorn on August 20, 2015, 04:55:19 AM
Yeah, I don't swap back and forth yet, and progresss is pretty good, but I'm kinda working on MoneyWalrus rigt now.
I kinda have the same problem (getting better at speed cubing, running cross country, and hanging out doesn't leave much open for coding Nagoji 320x240 or all my other projects <_<)
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

p4nix

cut off 'hanging around' and 'sleep' for some extra hours.
* p4nix runs
  • Calculators owned: fx9860GII (SH4)

Dream of Omnimaga

Unless hanging out involves calculator programming :P
  • 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

Unicorn

Of course, calcs first :P Anyways, I think I'm back working on this, because I don't want to figure out matrices yet for MoneyWalrus. :P
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

alexgt

Quote from: Unicorn on August 25, 2015, 03:59:41 AM
Of course, calcs first :P Anyways, I think I'm back working on this, because I don't want to figure out matrices yet for MoneyWalrus. :P
Awe come on matricies aren't that hard :P

Quote from: DJ Omnimaga on August 20, 2015, 10:23:01 PM
Unless hanging out involves calculator programming :P
I have one friend that I tried to get into calcs but that soon ended :(
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Unicorn

Yeah, I tried that to. It didn't work, but we are going to work together on a ruby thing together.
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

alexgt

He still wan'ts to learn coding but he has other stuff like hanging out all day every day that gets in the way xD
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Unicorn

Yeah,well, there is always life. Anyways, 'm slowly getting this to work, in my spar time.
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Dream of Omnimaga

Yeah it really depends of the people's commitment to these things. Some people likes calculators and programming, but they don't care enough to invest any time into it or into forums. Or at least they aren't interested enough to do it during certain periods of the year (eg Summer and holidays)

Anyway glad this is progressing Unicorn. Don't give up.
  • 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

Unicorn

Thanks! And you inspired me to complete what I was workign on :)

Without further ado!....

Update: Progress has resumed!

I have the entire game engine done, except for collision detecting. Movement does get a little slow occasionally, but that is to be expected. To account for that delay, I will add a 3 lives until the game ends.

Anyways, a screenshot!



Now, I just have to do lives and collision detecting, and then I will release it! I won't be doing levels just yet, as I have a few other projects going on.
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Powered by EzPortal