Author Topic: Axe Snake  (Read 17436 times)

0 Members and 2 Guests 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
Axe Snake
« on: June 16, 2010, 02:51:24 pm »
Over the past couple of days I've tried to make a 3 level grayscale game in Axe.  It's completely done, except when you get a highscore and need to type your name.  There it freezes.  Can anyone help me with this problem?

(It appears that getKey always returns a 0) :(

Thanks! ;D

note:  The grayscale's a lot better on calc... :D
« Last Edit: June 16, 2010, 02:52:05 pm by ztrumpet »

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: Axe Snake
« Reply #1 on: June 16, 2010, 02:58:10 pm »
Hey this looks nice except the screenshot doesn't appear to show any grayscale except to the first 24 or so columns of the screen ??? . Also , sorry to hear about the freezing problem, though :(

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: Axe Snake
« Reply #2 on: June 16, 2010, 02:59:19 pm »
Hey this looks nice except the screenshot doesn't appear to show any grayscale except to the first 24 or so columns of the screen ???
Thanks. :)
It's because I didn't set Wabbit up right and since this isn't the final release it doesn't matter as much to me if it looks how it should. :D
« Last Edit: June 16, 2010, 02:59:34 pm by ztrumpet »

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: Axe Snake
« Reply #3 on: June 16, 2010, 03:02:02 pm »
Oooh ok lol, I thought it was a glitch or something. Btw I just played fastest speed and it was insane :O

EDIT: screenshot
« Last Edit: June 16, 2010, 03:03:52 pm by DJ Omnimaga »

SirCmpwn

  • Guest
Re: Axe Snake
« Reply #4 on: June 16, 2010, 03:17:47 pm »
*cough* looks familiar *cough*
j/k, I can take a look at the highscore part later.

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: Axe Snake
« Reply #5 on: June 16, 2010, 03:20:04 pm »
*cough* looks familiar *cough*
j/k, I can take a look at the highscore part later.
I just wanted to make a snake game, even though I already knew you had a cool one, sir. ;D

Oooh ok lol, I thought it was a glitch or something. Btw I just played fastest speed and it was insane :O
Huh.  That looks like it's at 15mhz even though there's no Full command...
Wow, that's fast! :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: Axe Snake
« Reply #6 on: June 16, 2010, 03:42:59 pm »
At 15 MHz it would look more like this, altough it wouldn't work well on all 15 Mhz calcs (due to the grayscale requiring 6 MHz mode to show up properly on real hardware, according to Quigibo)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Axe Snake
« Reply #7 on: June 16, 2010, 03:44:58 pm »
i had the same problem with getKey always returning 0 once. try to slow down your program, put like Pause 100 before the getKey and see if it registers. that worked for me.


SirCmpwn

  • Guest
Re: Axe Snake
« Reply #8 on: June 16, 2010, 03:50:30 pm »
Does your program use Pause to slow down the game on the slower modes?

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: Axe Snake
« Reply #9 on: June 16, 2010, 05:06:34 pm »
When 0.3.0 is released tonight (hopefully), I think the grayscale will look a lot better since I improved both of the routines.  Not only does it look better on real hardware, but also it seems to finally be in sync with wabbit settings.  Much thanks again to calc84maniac.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: Axe Snake
« Reply #10 on: June 16, 2010, 05:12:57 pm »
When 0.3.0 is released tonight (hopefully), I think the grayscale will look a lot better since I improved both of the routines.  Not only does it look better on real hardware, but also it seems to finally be in sync with wabbit settings.  Much thanks again to calc84maniac.

*offtopic Have I already told you how much I love you? :P

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Axe Snake
« Reply #11 on: June 16, 2010, 05:17:22 pm »
When 0.3.0 is released tonight (hopefully), I think the grayscale will look a lot better since I improved both of the routines.  Not only does it look better on real hardware, but also it seems to finally be in sync with wabbit settings.  Much thanks again to calc84maniac.

Will it look equally good in both 6 and 15 MHz mode? Or still just 6 MHz?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Snake
« Reply #12 on: June 16, 2010, 05:19:15 pm »
IIRC it's still 6MHz mode only.
"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 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: Axe Snake
« Reply #13 on: June 16, 2010, 07:10:14 pm »
Does your program use Pause to slow down the game on the slower modes?
No, it just runs through the greyscale command in a for loop to make it look better.  :D

i had the same problem with getKey always returning 0 once. try to slow down your program, put like Pause 100 before the getKey and see if it registers. that worked for me.
Awesome idea!  I think I'll try that! ;D thanks! ^-^
Edit: That didn't work. :(  Do you have any more ideas? :)
« Last Edit: June 16, 2010, 07:12:46 pm by ztrumpet »

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Axe Snake
« Reply #14 on: June 16, 2010, 07:24:31 pm »
i'm sorry i don't, i checked my axe entry's menu and putting a Pause 50 before the getKey->K worked. are you using getKey like this

Code: [Select]
Pause 50
X+(getKey=3)-(getKey=2)->X
or like this:
Code: [Select]
Pause 50
getKey->K
X+(K=3)-(K=2)->X
because the first one didn't work for me, and then i switched to the second and it works.