Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Pong - the ultimate retro game


  • Please log in to reply
17 replies to this topic
corrupt
  • Members
  • 2558 posts
  • Last active: Nov 01 2014 03:23 PM
  • Joined: 29 Dec 2004
Very Nice :)

wierdo
  • Members
  • 13 posts
  • Last active: Oct 13 2007 01:21 AM
  • Joined: 09 Sep 2006
I took your code and played with it, it works great, and I added this:

I took out
pc_difficulty = 20          ; enter 10 for hard, 20 middle, 30 easy

And added to the beginning:
Gui, Add, Text,, F1 for help.`nLeft Mouseclick to start the ball`nP for Pause`nCtrl+x for exit`nS to toggle sound on/off
Gui, Add, Text,, Choose your difficulty:
Gui, Add, Button, gBeg w350 h25, Beginner
Gui, Add, Button, gInt w350 h25, Intermediate
Gui, Add, Button, gHard w350 h25, Hard
Gui, Add, Button, gPro w350 h25, Pro
Gui, Add, Button, gExit w75 h20, Exit
Gui, Show,, Ping Pong
Sleep 600000

Beg:
pc_difficulty = 30
Gui, Destroy
Gosub, Play
return

Int:
pc_difficulty = 20
Gui, Destroy
Gosub, Play
return

Hard:
pc_difficulty = 10
Gui, Destroy
Gosub, play
return

Pro:
pc_difficulty = 1
Gui, Destroy
Gosub, Play
return

Exit:
exitapp
return

Play:

Is this any good? I am not good with AHK, but am trying to learn! :)

Lequi
  • Members
  • 29 posts
  • Last active: Apr 19 2008 02:02 PM
  • Joined: 31 Aug 2007
nice idea, i think i will add a ingame config for those which cant change the code.
at first i would choose another gui window for the config, i think the added buttons could interfere with my normal gui

Sleep 600000

i think this is not necessary because the game starts not unitil you pressed any button

Pro:
pc_difficulty = 1

unfortunately the timer frequency is limited to 10 ms, anything below 10ms will result in ~10ms

nevertheless i will add a little ingame config :)