Jump to content
Sign in to follow this  
  • entries
    55
  • comments
    55
  • views
    24731

Plans

Sign in to follow this  
AEdmonds

142 views

So now after completing Two Player Pong, (I solved the alt-tab problem just now in about a minute. All I needed to do was check for keyboard focus. Idiot.), I am onto Breakout. This time though I have a rough (and quite ambitious) plan instead of stumbling about like a blind man who has just done five rounds with Mike Tyson.

I warn you, this could look a bit messy, just like on the paper in front of me.

Title Screen - The title screen will have four options: play, password, high score and quit.
  • Events to handle: Window close/Esc - quit the game, Up - set the next menu item to above, Down - set the next menu item to below, Enter - select current menu item.

  • Logic: Check to see if next menu item is possible - if yes, set it as such

  • Render: Draw background, draw arrow in the right place


  • Password - Each level will have a password so the player can skip levels they have already completed
  • Events to handle: Window close, Esc - to title screen, Letters - player wants to put in a letter

  • Logic: Add the letter to the code, if the code is finished check if its valid

  • Render
  • Draw background, draw code

    High Score - Record of player name, score and date(?)
  • Events to handle: Window close, Esc - to title screen

  • Logic: Read high score from file

  • Render: Draw the names and score


  • Play - The levels will be in a file with the layout written in numbers (0 = empty, 1 = red etc). I hope to include power ups in the game.
  • Events to handle: Close window, Esc - Make sure they want to quit - to title screen, left and right - player wants to move

  • Logic: Check to see if player can move, Check ball collision w/player (yes - rebound), w/block (yes - rebound and destroy block, increase score), w/wall (yes - rebound), w/bottom of screen (yes - lose life, new ball)

  • Render: Draw background, level, ball, player, score and lives


  • So that's the plan, it's very sketchy at the moment and a lot more details are needed in the implementation of certain things. But I will probably make these up as I go along through trial and error.

    Thanks for reading.
    -AEdmonds
    Sign in to follow this  


    0 Comments


    Recommended Comments

    There are no comments to display.

    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
    • Advertisement
    ×

    Important Information

    By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

    We are the game development community.

    Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

    Sign me up!