My iPhone game source code "Doodle Reactions"
welcome to Game-Tuts.com - Register
Results 1 to 3 of 3
  1. #1
    Legendary Member
    Join Date
    Jun 2009
    Location
    Essex, United Kingdom
    Age
    19
    Posts
    443
    Thanks
    108

    Default My iPhone game source code "Doodle Reactions"

    A while back I started to develop an iPhone/ iPad game however I never got to finish it...


    I was new to iPhone dev when i began it so some of my methods are outdated however I still think it could be of use to anyone new to iPhone development so what the heck..


    Below you can find the download link to the source code and you can try it out/ take a look for yourselves... If you do use it... I would obviously like some sort of recognition but I'm not sure all of the code is any good to use as one... Maybe just use it as a reference to certain things I have done in it.

    Anyway, Hope you enjoy...

    Here is the download link:

    http://www.essexconsolerepairs.co.uk...eReactions.zip



    edit: You can get the compiled binary/ see info about it at the following link: http://digital-developments.com/index.php?showtopic=274

    Thought some of you people may find this interesting...


    If you have an iPhone/ iPod/ iPad jailbroken on iOs 4.0 + and have some basic knowledge with jailbroken devices then check this out :)


    Its basically a little game I am making for iDevices what involves your reactions and your thumbs... You simply tap the object as it appears to gain time and every miss you loose time... The difficulty settings are not set yet and can be quite hard (especially for iPad) so I left a custom option in the settings page so people can play... Anyone who wants the current settings can find them at the bottom of the thread...


    Anyway... If you wan't to have a play (note the theme/graphics are not complete and there are quite a few bugs to sort) download the following file and do the following...

    Download the .app: essexconsolerepairs.co.uk/programs/DoodleReactions.app.zip

    On your SSH method and SSH the .app to /Applications/

    (you will see other apps such as Cydia.app there too)

    Reboot or Respring your iPhone/ iPod/ iPad (or restart) and the app should be there on your home screen :)



    Some screen shots:





    and for those who want to alter the difficulty manually:

    Go into the settings page, and you can enter your own custom settings... Here is what they do and what their defaults are:

    BUTTON_SHOW_TIME - Default: 0.4 - For: The amount of time in seconds the target stays on the screen for
    BUTTON_MIN_SIZE - Default: 50 - For: The minimum size of the target
    BUTTON_MAX_SIZE - Default: 150 - For: The maximum size of the target
    START_TIME_ALLOWANCE - Default: 3 - For: The time in seconds you get to start with
    TIME_GAIN_LOSS_BOUNDARIES - Default: 0.2 - For: This is smart... Calculates the time you should be given for a hit or miss.. Example: if you hit the smallest possible object, You will be given the BUTTON_SHOW_TIME + TIME_GAIN_LOSS_BOUNDARIES

    Here is the function for calculating it if you are interested:

    Code:
     
    - (NSTimeInterval) getTimeBonusForGain:(BOOL)isForGain{
        if (isForGain) {
            float sizeBoundaries = currentDifficulty.BUTTON_MAX_SIZE - currentDifficulty.BUTTON_MIN_SIZE;
            float currentSize = hitMeButton.tag - currentDifficulty.BUTTON_MIN_SIZE;
            float scoreLowerBoundary = currentDifficulty.BUTTON_SHOW_TIME - currentDifficulty.TIME_GAIN_LOSS_BOUNDARIES;
            float scoreUpperBoundary = currentDifficulty.BUTTON_SHOW_TIME + currentDifficulty.TIME_GAIN_LOSS_BOUNDARIES;
            float scoreFraction = currentSize / sizeBoundaries;
            float scoreBoundary = scoreUpperBoundary - scoreLowerBoundary;
            float givenScore = scoreBoundary - (scoreBoundary * scoreFraction);
            float finalScore = givenScore + scoreLowerBoundary;
            NSLog(@"FinalScore: %f For Width: %i",finalScore, hitMeButton.tag);
            return finalScore;
        } else {
            float sizeBoundaries = currentDifficulty.BUTTON_MAX_SIZE - currentDifficulty.BUTTON_MIN_SIZE;
            float currentSize = hitMeButton.tag - currentDifficulty.BUTTON_MIN_SIZE;
            float scoreLowerBoundary = currentDifficulty.BUTTON_SHOW_TIME - currentDifficulty.TIME_GAIN_LOSS_BOUNDARIES;
            float scoreUpperBoundary = currentDifficulty.BUTTON_SHOW_TIME + currentDifficulty.TIME_GAIN_LOSS_BOUNDARIES;
            float scoreFraction = currentSize / sizeBoundaries;
            float scoreBoundary = scoreUpperBoundary - scoreLowerBoundary;
            float givenScore = scoreBoundary * scoreFraction;
            float finalScore = givenScore + scoreLowerBoundary;
            return finalScore;
        }
    }




    Hope you enjoy... Your suggestions / feedback will be accepted :)



    ~Liam
    Last edited by L14M333; 05-26-2011 at 04:11 PM.

  2. #2
    VIP
    Join Date
    Jul 2010
    Location
    Belfast, United Kingdom
    Posts
    3,277
    Thanks
    1270

    Default Re: My iPhone game source code "Doodle Reactions"

    Dude, upload some screenshots or a youtube video. It will help attract people to play it. :D :D :D

  3. #3
    Legendary Member
    Join Date
    Jun 2009
    Location
    Essex, United Kingdom
    Age
    19
    Posts
    443
    Thanks
    108

    Default Re: My iPhone game source code "Doodle Reactions"

    Quote Originally Posted by Nike View Post
    Dude, upload some screenshots or a youtube video. It will help attract people to play it. :D :D :D
    updated :)


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
visit GameTuts on these social networking sites