Jump to content

Recommended Posts

Posted (edited)

Here is the image I used, This is my girlfriend.

She is now 18yrs old

Let me know what you think :)

EDIT: I know made a ini config file for it and added the image_get_info UDF to get the size of the images so they don't go off the sceen. I also made minor fixes.

Game.zip

#include <GUIConstants.au3>
#include "image_get_info.au3"
; READ INI
;gameconfig.ini
$cfg = @ScriptDir & "\gameconfig.ini"
$intro = IniRead( $cfg, "labels", "intro", "Click start to Begin" )
$title = IniRead( $cfg, "labels", "title", "The Game" )
$objects = IniRead( $cfg, "labels", "objects", "balloons" )
$image = IniRead( $cfg, "object", "image", "\balloon.bmp" )
$aInfo = _ImageGetInfo(@ScriptDir & $image)
$width = _ImageGetParam($aInfo, "Width")
$height = _ImageGetParam($aInfo, "Height")
;GUI CREATE
$Form1 = GUICreate($title, 576, 474, 192, 125)
GUISetBkColor(0xffffff)
GUISetState(@SW_SHOW)
$play = GUICtrlCreateButton( "Play", 0,0, 45, 25 )
GUISetFont( 15 )
$label = GUICtrlCreateLabel( "0 " & $objects, 50, 5, 100, 25 )
$time = GUICtrlCreateLabel( "You have 30 seconds", 180, 5 )
GUISetFont( 38 )
$bday = GUICtrlCreateLabel( $intro, 5, 180)
GUISetFont( 15 )
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $play
        play()    
    Case $msg = $GUI_EVENT_CLOSE
        Exit
    Case Else
;;;;;;;
    EndSelect
WEnd
Exit
Func play()
    GUICtrlDelete( $bday )
    $balloonclicks = 0
    $begin = TimerInit()
    GUICtrlSetData( $play, "Stop" )
    $balloon = GUICtrlCreatePic ( @ScriptDir & $image, Random(156, 576, 1)-156, Random(159, 474, 1)-159, 0,0 )
    $dif = 0
    While 1
        If $dif < Round ( TimerDiff($begin)/1000 ) Then
            $dif = Round ( TimerDiff($begin)/1000 )
            GUICtrlSetData( $time, $dif & " Seconds" )
            If $dif = 1 Then GUICtrlSetData( $time, $dif & " Second" )
            If $dif > 29 Then
        ;game over
                GUISetState(@SW_HIDE)
                Sleep(500)
                MsgBox(0, "", "You got " & $balloonclicks & " " & $objects)
                GUISetState(@SW_SHOW)
                GUICtrlSetData( $play, "Play" )
                GUICtrlDelete( $balloon )
                Return $balloonclicks
            EndIf
        EndIf            
        $msg = GuiGetMsg()
    Select
    Case $msg = $play
        GUICtrlSetData( $play, "Play" )
        GUICtrlDelete( $balloon )
        GUISetFont( 38 )
        $bday = GUICtrlCreateLabel( $intro, 5, 180)
        GUISetFont( 15 )
        GUICtrlSetData( $time, "You have 30 seconds" )
        GUICtrlSetData( $label, "0 " & $objects )
        Return $balloonclicks
    Case $msg = $GUI_EVENT_CLOSE
        Exit
    Case $msg = $balloon
    GUICtrlDelete( $balloon )
    $balloon = GUICtrlCreatePic ( @ScriptDir & $image, Random($width, 576, 1)-$width, Random($height, 474, 1)-$height, 0,0 )
    $balloonclicks = $balloonclicks + 1
    GUICtrlSetData( $label, $balloonclicks & " " & $objects )
    EndSelect
    WEnd
EndFunc
Edited by zerocool60544
Check out ConsultingJoe.com
Posted

Quite nice! Kept me occupied for 10 minutes. I got 49 balloons :)

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Posted (edited)

Thanks guys. I was thinking of making a few different types of games. even make them customizable with a ini or something. BTW she got 72!!!

awesome zerocool.. I got 87 ..

Edited by slightly_abnormal
Posted (edited)

Fun...

While 1
    sleep(10)
    ControlClick("Happy Birthday Sam!   I LOVE YOU SO MUCH", "", 6)
WEnd

I Think i got the highest. lol

NOPE try and beat 1850

Edited by thatsgreat2345
Posted

That was very sweet and thoughtful... nice to see some people still go out of their way for their "girl"

....

I got over 2800

but....... i ran the script without downloading the pic

8)

NEWHeader1.png

  • Moderators
Posted (edited)

val u must of extended time its not possible to get that many in 30 seconds :) max i got was like 1900

Edit: Round 2

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

  • Moderators
Posted

for just not downloading the image ive done the same but yours is quite high :) well just wait ill come back im going for 10,000

I got to 7590, I made my own balloon though, don't think the wife would appreciate his girlfriend on my screen.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

I got to 7590, I made my own balloon though, don't think the wife would appreciate his girlfriend on my screen.

LOL, kool, I should make it where it reads the size of the balloon then adjusts to keep it in the screen.

I should make it a neutral game too because it isn't her Bday any more.

I should also make an anti-hack, what do you think? how could I do that?

Check out ConsultingJoe.com
Posted

Newbie questions: Can somebody post an AutoIT bot to help me get a higher score? :)

Grins, ducks, and runs away!!!

Posted

Newbie questions: Can somebody post an AutoIT bot to help me get a higher score? :)

Grins, ducks, and runs away!!!

Thats what this what...

While 1
    sleep(10)
    ControlClick("Happy Birthday Sam!   I LOVE YOU SO MUCH", "", 6)
WEnd

good luck, I got about 800

Check out ConsultingJoe.com
  • Moderators
Posted (edited)

Here's with My AuotIt Bot with no picture:

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...