Author Topic: Grammer  (Read 98377 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer
« Reply #225 on: October 19, 2011, 03:45:20 pm »
oh. nvm then. XP
Sig wipe!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Grammer
« Reply #226 on: October 19, 2011, 05:08:57 pm »
I'm not sure if Xeda uses this in Grammer, but the 5-8 being diagonal directions was used first (iirc) in xLib.  Normally 5-8 return nothing, much like 16 and 24.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer
« Reply #227 on: October 19, 2011, 05:09:27 pm »
I'm not sure if Xeda uses this in Grammer, but the 5-8 being diagonal directions was used first (iirc) in xLib.  Normally 5-8 return nothing, much like 16 and 24.
oh. that's why 5~8 was so familiar to me XP
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer
« Reply #228 on: October 19, 2011, 09:10:12 pm »
So I can't seem to get the updated version on my calc to test if pressing all of the arrows will return 16 as a key press, so i will just upload this update, now:

Now, getKey returns theses values for these combinations:
5=Down+Left
6=Down+Right
7=Up+Left
8=Up+Right
16=All directions mashed    (supposed to work, not sure if it does)

Aaand, I figured out a simple solution to get the ! token to work for Repeat and While :)

EDIT: And I notice Awalden0808 has submitted a Grammer program to TICalc, too! Congrats on being the third person to do so! And it is actually kind of fun... If you are reading this, you should make it so the user has to reach the upper right pixel or something :D Or be surrounded on three sides by pixels or something. THen you could turn it into a game... Actually, I might do that O.O

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Grammer
« Reply #229 on: October 19, 2011, 09:31:28 pm »
Yay! I finally found some time, so I will try grammer soon!
* mrmprog will be so confused with all the axe/basic/Recode syntax differences.  ;)

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer
« Reply #230 on: October 19, 2011, 09:33:41 pm »
Sorreeee :) I tried to keep ReCode and Grammer pretty similar (just safer and more likely to work as expected in Grammer). Though Grammer has had a lot more polishing and a lot more features...

Awesome and good luck! Feel free to ask questions :)

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer
« Reply #231 on: October 19, 2011, 11:08:55 pm »
so haven't figured out about 24?
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer
« Reply #232 on: October 19, 2011, 11:12:52 pm »
Not yet, sorry :/ I am trying to think of a useful key combination, but I don't know :/

Also, I am now trying to think of a token to use to insert and delete data from a var. The syntax I want is to have a pointer to the data, an offset, and number of bytes to add or remove.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer
« Reply #233 on: October 19, 2011, 11:14:00 pm »
fnInt( ?
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer
« Reply #234 on: October 19, 2011, 11:14:51 pm »
mmm, maybe :/ I wonder how Axe changes it tokens... ?

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Grammer
« Reply #235 on: October 20, 2011, 02:39:50 am »
IO port detection would be cool.
Can it be that 24 is a button+2nd?


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

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: Grammer
« Reply #236 on: October 20, 2011, 08:37:26 am »
I think I know what 16 and 14 are supposed to be... :) the two keys (not existing) right of STAT, so on top of VARS and CLEAR (I know, they don't exist, but I think that these keys would belong there)
« Last Edit: October 20, 2011, 08:41:02 am by Sorunome »

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

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer
« Reply #237 on: October 20, 2011, 08:39:46 am »
I think I know what 16 and 14 are supposed to be... :) the two keys (not exsisting) right of STAT, so on top of VARS and CLEAR (I know, they don't exist, but I think that these keys would belong there)
fixed 8)

TI surely is weird XP

EDIT: I'm working on a space invaders now.
It's kinda buggy atm, but I'll fix it eventually!
Screenshot:
« Last Edit: October 20, 2011, 08:46:58 am by yeongJIN_COOL »
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer
« Reply #238 on: October 20, 2011, 08:48:56 am »
I think I would have to save I/O detection for another command :/
And that is what the keys would be if they existed XD
And as a note, all keys pressed will in fact return 16 (I finally got it on my real calc)

Aside from that, I have made a mini update to the version of MARS that I was working on :) It now has 3 difficulty levels. The reason I made this, actually, is because I wanted to show that appvars can act as subprograms, too. The one here is called GLEV and what it does is it lets the user select a difficulty level and set the processor speed.

The difficulties in MARS2 is changed simply by making the ship go slower for easy mode and faster for hard mode while the bullet stays a constant speed.

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: Grammer
« Reply #239 on: October 20, 2011, 08:51:14 am »
Nice! I might post a screenie of my progress on tetris soon! :)

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