Author Topic: Key codes (for Getkey() users)  (Read 20530 times)

0 Members and 1 Guest are viewing this topic.

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: Key codes (for Getkey() users)
« Reply #15 on: March 19, 2010, 08:31:00 pm »
That one allowed editing archived programs? nice. I thought it was just some sort of rip-off from Noshell.
It's actually pretty cool.  I prefer Mirage over it, but it's my second favorite shell. :)  (I try to go as hook-less as possible. ;D)

I still want ON breaking supported, even if it becomes an optional feature while compiling for debug mode :P
Same here.  I like the security of pressing On. :D

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Key codes (for Getkey() users)
« Reply #16 on: March 19, 2010, 09:21:37 pm »
I would like to be able to use the ON key like an interupt key. So when you hit ON it will quit to a certain set code you give (like a menu or displaying all the values of the cars for debugging) and then you can do a lot more with it.
/e

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #17 on: March 20, 2010, 09:01:19 am »
how about instead of just ON as the break, pressing multiple keys like ON + Clear or something like that is the default break key?


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #18 on: March 20, 2010, 03:54:13 pm »
By the way just so we're all clear, asm does not naively support on-breaks.  Instead, you have to create your own interrupt code to deal with the breaks.  So there really isn't any short term solution until I add interrupt support, which isn't that far away.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Key codes (for Getkey() users)
« Reply #19 on: March 20, 2010, 04:00:33 pm »
yay! interrupts!
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Key codes (for Getkey() users)
« Reply #20 on: March 20, 2010, 11:29:42 pm »
Seems like a good idea. I assume the grayscale support, if it ever gets added, will use them too?

ON support seems like a good idea cuz I know many people will forget to add an exit to their game in the future (if not alerady) and lose progress on their projects and give up x.x

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #21 on: March 24, 2010, 02:37:16 am »
yeah, just happend to me that I had to take out my batteries.
But I wont give up.

I also like the grayscale idea, but I think that will slow down your programs, so there has to be something to switch it on/off, like: FnOn/FnOff
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Key codes (for Getkey() users)
« Reply #22 on: March 24, 2010, 02:43:19 am »
Ouch, I hope you did not lose too much x.x

And yeah for grayscale, something interrupt-based would be nice. Of course if done the way I think it might not be that slow, but the issue is that the program would become horribly massive. See Reuben Quest (altough it's mostly TI-BASIC). Had this game not used grayscale, it would be at least 2x smaller in size

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #23 on: March 24, 2010, 12:04:11 pm »
yes, and it uses 3 colors? white-gray-black?
how many colors are going to be used for grayscale games in Axe?
I think 3 is enough, but perhaps 4/5 could be nice/usefull
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #24 on: March 24, 2010, 12:06:20 pm »
I'm guessing 3 will be the typical number, and sometimes 4 if used properly, but I doubt 5 will ever be used (is that even possible on a calc?)
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Key codes (for Getkey() users)
« Reply #25 on: March 24, 2010, 02:23:29 pm »
Well yes, actually.  Look at Calc84Maniac's Chip's Challenge.  It uses 8 :)
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Key codes (for Getkey() users)
« Reply #26 on: March 24, 2010, 03:42:12 pm »
5 is possible. Calc84maniac uses 8. Nitacku made a program to create 5 lv grayscale xLIB/Celtic pics. However, 5 in BASIC looks crappy on a regular 83+. In ASM it may be tolerable, though. Keep in mind, however, that grayscale takes much more memory to store tiles, if you got many, though.

Offline indubitably

  • LV2 Member (Next: 40)
  • **
  • Posts: 35
  • Rating: +1/-0
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #27 on: April 07, 2010, 11:30:31 pm »
I wrote a quick program earlier that tells me the keycodes when I press them, I have always found that a bit easier.

Can you post the code for this, i thought i wrote one correctly but it returns odd symbols.
Seeing this code would help me a lot.

SirCmpwn

  • Guest
Re: Key codes (for Getkey() users)
« Reply #28 on: April 07, 2010, 11:31:44 pm »
Oh, I can just whip it up really quick, I deleted the source and kept the binary.  Give me a moment.



###########################



Code: (Axe Basic) [Select]
0->K
While K=/=15
getkey->K
If K
ClrHome
Disp K>Dec
End
End

This will always display 15 if when you exit.  If you don't care about that and can manage to remember that Clear==15, you can optimize to this:
Code: (Axe Basic) [Select]
Repeat getkey(15)
getkey->K
If K
ClrHome
Disp K>Dec
End
End

Also, this one doesn't loop, and is even smaller:
Code: (Axe Basic) [Select]
Pause 5000
Disp getkey>Dec

You have a couple seconds to press a key before it polls for it.
« Last Edit: April 07, 2010, 11:54:36 pm by DJ Omnimaga »

Offline indubitably

  • LV2 Member (Next: 40)
  • **
  • Posts: 35
  • Rating: +1/-0
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #29 on: April 07, 2010, 11:47:08 pm »
Thank you this was actually very helpful. So I guess what i need to learn is how to read from a variable. i never used the >dec command before.