Author Topic: Pause game  (Read 10508 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Pause game
« Reply #15 on: January 07, 2011, 02:13:19 pm »
you can also make a teacher key by doing this if you don't have greyscale for the second method in parentheses.
Code: [Select]
If getkey(X)
Repeat getkey(X) and getkey(Y)
(Here you can set the contrast to 0 or do this)
Copy(L6,L3,768)
ClrDraw
End
Copy(L3,L6,768)

You gave me a great idea!! How to change the contrast in Axe? I only have a little text saying "Paused", I want to change the contrast, it would be cool.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Pause game
« Reply #16 on: January 07, 2011, 02:15:52 pm »
If you are using Greyscale, then you can do

Quote
If getkey(X)
Copy(L1-56,L5,56
Copy(L6,L1-56,768
Rect(0,0,96,64
Repeat getkey(x)
Dispgraphrr
End
Copy(L1-56,L6,768
Copy(L5,L1-56,56
End

Or

Quote
Shade(0)

EDIT: Accidentally answered your question, Scout.

« Last Edit: January 07, 2011, 02:20:04 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Pause game
« Reply #17 on: January 07, 2011, 02:16:49 pm »
If you are using Greyscale, then you can do

Quote
Copy(L1-56,L5,56
Copy(L6,L1-56
Rect(0,0,96,64
Dispgraphrr

Or

Quote
Shade(0)

Uh, accidentally answered your question, Scout.


But I'm not using a greyscale, so the second one :D

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Pause game
« Reply #18 on: January 07, 2011, 02:21:02 pm »
Okay then. What project is this for?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Pause game
« Reply #19 on: January 07, 2011, 02:23:20 pm »
Okay then. What project is this for?

uPong. However, I'm probably adding greysacle...

Offline Fast Crash

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 192
  • Rating: +45/-7
  • Virus of tomorrow
    • View Profile
Re: Pause game
« Reply #20 on: January 07, 2011, 02:42:06 pm »
Rather than Shade(0)

Use APD !!!

Code: [Select]
If getkey(9)
sub(SD)
End
...
Lbl SD
Asm(3E01D303FB76FDCB09A6C9)
Return
« Last Edit: January 07, 2011, 02:43:34 pm by Fast Crash »

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Pause game
« Reply #21 on: January 07, 2011, 02:45:54 pm »
Thanks for that code. I've wanted to add a APD function for a while.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Pause game
« Reply #22 on: January 07, 2011, 03:22:38 pm »
Rather than Shade(0)

Use APD !!!

Code: [Select]
If getkey(9)
sub(SD)
End
...
Lbl SD
Asm(3E01D303FB76FDCB09A6C9)
Return

 You'll lose all of your data in L1 if you go into APD.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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: Pause game
« Reply #23 on: January 07, 2011, 03:41:08 pm »
Couldn't you do L1->DispGraph to avoid that?  Or possibly Copy(L1,L6,768)?  Not entirely sure how APD works...
« Last Edit: January 07, 2011, 03:44:19 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Pause game
« Reply #24 on: January 07, 2011, 03:45:26 pm »
I think APD overwrites L1 with a bitmap image of the screen. You'd have to copy your data elsewhere first, because storing L1 in L6 after APD would just result in a corrupted version of the same thing being written to the buffer.
« Last Edit: January 07, 2011, 03:46:10 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Fast Crash

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 192
  • Rating: +45/-7
  • Virus of tomorrow
    • View Profile
Re: Pause game
« Reply #25 on: January 07, 2011, 03:47:42 pm »
why copy the buffer if you just use APD ?

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: Pause game
« Reply #26 on: January 07, 2011, 05:20:49 pm »
Here's what I do:
If getKey(Key)
While getKey(Key)
End
Repeat getKey(Key)
End
While getKey(Key)
End
End
« Last Edit: January 07, 2011, 05:20:58 pm by ztrumpet »

Offline Fast Crash

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 192
  • Rating: +45/-7
  • Virus of tomorrow
    • View Profile
Re: Pause game
« Reply #27 on: January 07, 2011, 05:28:31 pm »
Nice :)