Author Topic: Wait For Keys  (Read 23126 times)

0 Members and 3 Guests are viewing this topic.

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: Wait For Keys
« Reply #30 on: September 26, 2010, 02:54:09 pm »
lol, :)

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: Wait For Keys
« Reply #31 on: September 26, 2010, 02:56:59 pm »
Soo, which routine are you going to use?
While {Lobesteritus_Ensues}
getKey->{The_Game}
End

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: Wait For Keys
« Reply #32 on: September 26, 2010, 03:02:56 pm »
By the way, adding a pause in a loop with a getkey doesn't actually do anything control-wise other than make the response time a little slower.  The pause needs to be internal in the getkey routine itself (which I have fixed now).
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Wait For Keys
« Reply #33 on: September 26, 2010, 03:14:00 pm »
Do you mean pause and getkey will be merged? I am not too sure what you mean by being internal in the getkey routine :(

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Wait For Keys
« Reply #34 on: September 26, 2010, 03:51:45 pm »
Quigibo, does that mean something like the getKey(#)r I suggested, or am I misunderstanding?
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Wait For Keys
« Reply #35 on: September 26, 2010, 04:17:16 pm »
You mean getKey(#) will have the pause built-in from now on, right? So no messing with Pause for keypresses :D

EDIT: Oh, yeah, you're right, Quigibo. Even if we added a pause, it wouldn't affect anything since the getKey routine's already done.
« Last Edit: September 26, 2010, 04:18:19 pm by Deep Thought »




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: Wait For Keys
« Reply #36 on: September 26, 2010, 04:43:11 pm »
Oh I see now what he meant. It would be nice if we could make the pause internal.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Wait For Keys
« Reply #37 on: September 26, 2010, 04:44:38 pm »
It has to be, anyway. So what was the problem earlier? Did the getKey(#) routine simply not have a pause, so the key codes could turn out wrong or something?




Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Wait For Keys
« Reply #38 on: September 26, 2010, 04:47:40 pm »
I think it didn't have a long enough pause for 15MHz mode.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Wait For Keys
« Reply #39 on: September 26, 2010, 04:57:45 pm »
I think in Wabbitemu, this also happened in 6 Mhz mode. One of player1537 program (his first contest entry I think) had that problem. Wabbitemu migth have handled key detection differently or something.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Wait For Keys
« Reply #40 on: September 26, 2010, 04:59:29 pm »
Could Wabbit be running too fast? It seems to be, even for 6 MHz now.




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: Wait For Keys
« Reply #41 on: September 26, 2010, 05:03:47 pm »
Yeah I heard people saying it has been running a bit faster. However, in 6 MHz mode I didn't notice.

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: Wait For Keys
« Reply #42 on: September 26, 2010, 06:00:15 pm »
In 6mhz mode on my calc (an 84+SE letter M) I need to add extra Pauses when doing loops like this:
While getKey(54)
End
(I must do While getKey(54):Pause 40:End.  Please note the 40 isn't exact, it's the first number that I tried, and it works, so... :))

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Wait For Keys
« Reply #43 on: September 26, 2010, 06:00:50 pm »
What happens if you don't? Does it not register the keypresses?




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: Wait For Keys
« Reply #44 on: September 26, 2010, 06:08:17 pm »
I assume so. Isn't a smaller delay enough, though? Personally I would hate if the delay was too long because then the game starts slowing down, which is bad if you are using grayscale.