Games

Air Hockey

This game is based upon air hockey. To make things more interesting, there are four pucks instead of one. The game starts with the player, the blue circle, having a negative score and working his way towards a positive score, hitting the opponent’s goal and protecting his own.

If a ball hits the upper brick, then the score increases, whereas hits against the lower brick decreases your score. The movie capture in MATLAB isn’t done in real time, so there’s a little bit of lag, seen by the player’s paddle jumping around.

Juggling

The basis of this game comes from a Klutz book I had growing up. I don’t remember which one it was, but in it was a description of making a tennis ball launcher by stacking a tennis ball on top of a basket ball and then dropping the two.

The two rectangles on the top corners of the play field are “teleporters” as an anti-cheat method. Without them, the player could trap the ball in the corner and rack up points.

Back

18 thoughts on “Games

      1. can you still post the one that’s up there! i have a project to do, and these are the basics! it would be great help! pretty pretty please 🙂

  1. oh no! error messages!

    ??? Error using ==> PUCK
    Error: File: PUCK.m Line: 59 Column: 52
    Expression or statement is incomplete or incorrect.

    ??? Error using ==> PUCK
    Error: File: PUCK.m Line: 1 Column: 10
    Class name and filename do not agree.

    ??? Error using ==> CURSOR
    Error: File: CURSOR.m Line: 1 Column: 10
    Class name and filename do not agree.

    ??? Error using ==> GOAL
    Error: File: GOAL.m Line: 1 Column: 10
    Class name and filename do not agree.

  2. things are just not workin out for me :/

    ??? Undefined function or variable ‘main’.

    ??? Undefined function or variable ‘puck’.

    ??? Undefined function or variable ‘cursor’.

    ??? Undefined function or variable ‘goal’.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s