PeterTillema / ICE

ICE Compiler for the TI-84 Plus CE
22 stars 1 forks source link

Enhancement: constants? #127

Open SanjivanM opened 5 years ago

SanjivanM commented 5 years ago

Adding in constants would make it easier for game devs to use key movements without the need for referencing the keymap for ICE. Even if adding specific tokens wasn't possible (like det(99,1) is the key that has a value of 1), having var names be recognized as constants, like KUP = Up arrow, etc?

PeterTillema commented 5 years ago

What do you think about the ->-> syntax? Then variables can only be stored once to, like 5->->KUP with only a constant/expression with only constants.

SanjivanM commented 5 years ago

I like it! It's clean, dynamic and easy to remember! Sounds like a great addition!

Also, once you get all the keycodes placed into various prgms (I envision me making a library with arrows in one prgm, numbers in another, etc. I'll post a topic about that...) It's as easy as Asm(LIBNUMS!

SanjivanM commented 5 years ago

bump