Jump to content

BrainPain (Game)


mrbond007
 Share

Recommended Posts

Brain Pain is a collection of simple, fun, addictive and effective pc games to train your brain. It offers activities to stimulate your brain by, solving simple equations as fast as possible, counting icons and many other easy and interesting games.

It has 5 sections and each section has 6 mini games which can be played in 4 levels of difficulty. Also included a brain testing section for more fun. Unpack the zip file and let the fun begins.

Notes :

Feel free to add one second to the timer (adding more then one second is cheating)

Read the help file you might like it.

If you like it consider making a donation : http://www.autoitscript.com/donate.php

A translated version of this game by Xenobiologist can be found here

Download : http://www.autoitscript.com/forum/index.ph...mp;showfile=105

post-18691-1198154089_thumb.jpg

Edited by mrbond007
Link to comment
Share on other sites

  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Haha, dude I love it. Did you create all the games?

of course what do you think?

this project is the result of my AutoIt addiction (i spent nights developping it)

Edited by mrbond007
Link to comment
Share on other sites

Haha, well let me tell you I fricking love it! Seriously! I can't stop playing! I love these games and they are very well made, 5 stars for you.

Maybe a suggestion. Add a simpler way of exiting the games, like ESC. Just a thought, since not everyone knows how to close a window with the keyboard.

I couldn't help noticing that you use this to run the games:

Run(@AutoItExe & " /AutoIt3ExecuteScript " & _
            FileGetShortName(@ScriptDir & "\Games\" & $Names[121])

This takes away any chance of compiling the game and sharing it.

Link to comment
Share on other sites

Haha, well let me tell you I fricking love it! Seriously! I can't stop playing! I love these games and they are very well made, 5 stars for you.

Maybe a suggestion. Add a simpler way of exiting the games, like ESC. Just a thought, since not everyone knows how to close a window with the keyboard.

I couldn't help noticing that you use this to run the games:

Run(@AutoItExe & " /AutoIt3ExecuteScript " & _
            FileGetShortName(@ScriptDir & "\Games\" & $Names[121])

This takes away any chance of compiling the game and sharing it.

think about it. All games are seperated because if you put them into one file, the file will be around 800kb so it may not run correctly on all computers (memory errors) Edited by mrbond007
Link to comment
Share on other sites

might want to look at a little effieciency...

change these three areas

Global $Waray[6]
$Waray[0] = GUICtrlCreateLabel("Quick Thinking", 15, 10, 480, 30)
$Waray[1] = GUICtrlCreateLabel("Count And Calculate", 15, 65, 480, 30)
$Waray[2] = GUICtrlCreateLabel("Super Memory", 15, 120, 480, 30)
$Waray[3] = GUICtrlCreateLabel("Speed Analyzing", 15, 175, 480, 30)
$Waray[4] = GUICtrlCreateLabel("Identify", 15, 230, 480, 30)
$Waray[5] = GUICtrlCreateLabel("Brain Age Test", 15, 285, 480, 30)

For $i = 0 To UBound($Waray)-1
    GUICtrlSetBkColor($Waray[$i], 0xFFBF00)
    GUICtrlSetColor($Waray[$i], 0xFFFFFF)
    GUICtrlSetFont($Waray[$i], 20, -1, 2)
    GUICtrlSetCursor($Waray[$i], 0)
    GUICtrlSetOnEvent($Waray[$i], "ShowGames")
Next

; and ..

Func ShowGames()
    SoundPlay($SPath & "S1.wav")
    ExitG($ChildG)
    For $i = 0 To UBound($Waray)-1
        GUICtrlSetState($Waray[$i], $GUI_HIDE)
        If @GUI_CtrlHandle = ControlGetHandle($ChildG, "", $Waray[$i]) Then $RHandle = Eval("Ctrl" & ($i + 1))
    Next
    For $i = 0 To UBound($RHandle)-1
        GUICtrlSetState($RHandle[$i], $GUI_SHOW)
    Next    
    EnterG($ChildG)
EndFunc

I am sure you will know what they are and if you like.. where they go

8)

NEWHeader1.png

Link to comment
Share on other sites

... another idea...

There are 120 controls in $Ctrls, Maybe after the right control is found and you called the execution,

... just exit the loop

Func PlayTime()
    For $i = 0 To UBound($Ctrls)-1
        If @GUI_CtrlHandle = ControlGetHandle($ChildG, "", $Ctrls[$i]) Then 
            Run(@AutoItExe & " /AutoIt3ExecuteScript " & _
            FileGetShortName(@ScriptDir & "\Games\" & $Names[$i]))
            ExitLoop ; HERE***
        EndIf
    Next

and anywhere else you might note

8)

NOTED : Alpha24 is an "H" not an "X" like it should be.. :)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

Nice. Maybe you should add some menus like, when i enter a game im forced to use methods to force it to end (terminate). And what if i want to go back to the menu to choose games again?

Edited by Gif
Link to comment
Share on other sites

might want to look at a little effieciency...

change these three areas

Global $Waray[6]
$Waray[0] = GUICtrlCreateLabel("Quick Thinking", 15, 10, 480, 30)
$Waray[1] = GUICtrlCreateLabel("Count And Calculate", 15, 65, 480, 30)
$Waray[2] = GUICtrlCreateLabel("Super Memory", 15, 120, 480, 30)
$Waray[3] = GUICtrlCreateLabel("Speed Analyzing", 15, 175, 480, 30)
$Waray[4] = GUICtrlCreateLabel("Identify", 15, 230, 480, 30)
$Waray[5] = GUICtrlCreateLabel("Brain Age Test", 15, 285, 480, 30)

For $i = 0 To UBound($Waray)-1
    GUICtrlSetBkColor($Waray[$i], 0xFFBF00)
    GUICtrlSetColor($Waray[$i], 0xFFFFFF)
    GUICtrlSetFont($Waray[$i], 20, -1, 2)
    GUICtrlSetCursor($Waray[$i], 0)
    GUICtrlSetOnEvent($Waray[$i], "ShowGames")
Next

; and ..

Func ShowGames()
    SoundPlay($SPath & "S1.wav")
    ExitG($ChildG)
    For $i = 0 To UBound($Waray)-1
        GUICtrlSetState($Waray[$i], $GUI_HIDE)
        If @GUI_CtrlHandle = ControlGetHandle($ChildG, "", $Waray[$i]) Then $RHandle = Eval("Ctrl" & ($i + 1))
    Next
    For $i = 0 To UBound($RHandle)-1
        GUICtrlSetState($RHandle[$i], $GUI_SHOW)
    Next    
    EnterG($ChildG)
EndFunc

I am sure you will know what they are and if you like.. where they go

8)

I'll improve it later since i'm currently recovering, can't work on it today otherwise i'm might get sick ^_^

NOTED : Alpha24 is an "H" not an "X" like it should be.. :)

looks like an "H" but if you look carefully it's an "X" :)

@All

game updated : added an exit button + minor fixes

Edited by mrbond007
Link to comment
Share on other sites

Nice. Maybe you should add some menus like, when i enter a game im forced to use methods to force it to end (terminate). And what if i want to go back to the menu to choose games again?

adding menus is alot of pain, i'll be forced to rebuild everything, i just had to seperate all games into seperate files. when you choose a game to play either wait for it to finish or terminate it with Alt+F4 to get back to the previous script (where you can choose the games)
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...