Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

BreakMe - Breakout style game with online high scores

Discussion in 'Works In Progress - Archive' started by johnnydj, Aug 3, 2013.

  1. johnnydj

    johnnydj

    Joined:
    Apr 20, 2012
    Posts:
    211
    Hey guys, I'm back with another game I'm working on.
    This time with a breakout style game, called BreakMe.

    The game has online high scores support with php/mysql working on a server.
    The game is still in early development phase and only 1 stage is available now.

    PLAY IN YOUR BROWSER: http://breakme.comyr.com/Web.html

    PLAY ON ANDROID: https://dl.dropboxusercontent.com/u/14292566/BreakMe/Android/BreakMe.apk

    After the stage is completed, you can edit the default name by touching / clicking on it,
    then pressing "Back to Menu" will save your score in the online database if you're connected to the internet.

    Some rules:
    - if you win the game while you have a multiball up, you will get a higher score and rating
    - if you win the game with less lives, you will have a lower score and rating
    - if you lose your main ball while you have a multiball up, your multiball will explode also
    - complete the stage faster for a higher score
    - for the best score, aim for the following: complete the stage as fast as possible, don't lose any balls, and win while you have your multiball up.

    $1.jpg

    $2.jpg

    $3.jpg

    $4.jpg
     
    Last edited: Aug 4, 2013
  2. johnnydj

    johnnydj

    Joined:
    Apr 20, 2012
    Posts:
    211
    UPDATE: Now includes 2 stages for prototyping.
    Each stage has separate MySQL tables in the same database, and now it's possible to save your score for each stage separately.
    Everything is made dynamic, to keep the MySQL requests low.
     
  3. johnnydj

    johnnydj

    Joined:
    Apr 20, 2012
    Posts:
    211
    UPDATE #2:
    Now it is possible to unlock new stages as you win the previous ones.
    Came up with a different system to use only 1 php script to save highscores from all stages.
    5 stages available now (only for prototyping)
    Buttons Next Stage and Back to Menu have been added.
    TextBox background added to enter player name :p
    Text now has outline for better visibility.
    Custom FullScreen Anti-Aliasing implemented (works very nicely on mobile)
     
  4. protopod

    protopod

    Joined:
    Aug 2, 2013
    Posts:
    8
    Nice.
     
  5. tomandjerry-tas

    tomandjerry-tas

    Joined:
    Feb 7, 2013
    Posts:
    22
    Hi. I am also making a game with a high score. But I don't know how to do it online. Could u give me some suggestions on how to do it?
     
  6. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,663
    this is an old thread, and really you should probably do a little searching around for this answer. But nonetheless if you want to do online high scores you can use a PHP script on a MySQL database to add and check high scores, and then from the game when a player gets to the end of the level/game or whatever, you have them send out a request to that database to add an entry somewhere, and then the PHP scripting on your database handles how to add in that data. You can find a great example on the unify wiki:

    http://wiki.unity3d.com/index.php?title=Server_Side_Highscores
     
  7. tomandjerry-tas

    tomandjerry-tas

    Joined:
    Feb 7, 2013
    Posts:
    22
    Is there any tutorial for using SQL database and php? I don't know how to use that well. And thanks for the reply though :D
     
  8. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,663
    You may find many helpful tutorials related to MySQL databases from tons of places, Google around, you will certainly find useful stuff about how to setup a database either locally, or on your web host.