43
3D Air Hockey Team 7 Alex Chen, Abraham Shin, Yuqing Zhang

3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

3D Air HockeyTeam 7

Alex Chen, Abraham Shin, Yuqing Zhang

Page 2: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Overview

http://edgecastcdn.net/800034/www.perpetualkid.com/productimages/lg2/MINI-0525.jpg

Page 3: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Overview

Screen View

Page 4: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Overview

Screen ViewMallet Control

Page 5: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Overview

Screen ViewMallet Control

Page 6: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

- Great American pastime

Motivation

http://www.cityguideny.com/uploads2/9752/iStock_000009348450Large.jpg

Page 7: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Motivation

- Interesting physics and many challenging potential features

http://cdn.doandroidsdance.com/assets/2013/11/nerd-laptop-li.jpg

Page 8: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Object Recognition

DebounceI/O

Design: Overall

Page 9: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game LogicDebounceI/O

Page 10: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

DebounceI/O

Page 11: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

GraphicsDebounceI/O

Page 12: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

GraphicsDebounceI/O

Page 13: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Object Recognition

Page 14: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Object Recognition

Page 15: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Object Recognition

Page 16: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

GraphicsDebounceI/O

Page 17: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

GraphicsDebounceI/O

Page 18: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Physics Engine

Collision Detection

Game

Logic

Receive Objects’ Locations

Page 19: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Physics Engine

Δ Velocity Momentum

Collision Detection

Game

Logic

Receive Objects’ Velocities

Page 20: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Physics Engine

Δ Velocity Momentum

Δ Velocity Friction

Collision Detection

Game

Logic

Friction Y/N

Page 21: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Physics Engine

Δ Velocity Momentum

Δ Velocity Friction

Collision Detection Δ Location

Game

Logic

Update Locations

Page 22: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Physics Engine

Δ Velocity Momentum

Δ Velocity Friction

Collision Detection Δ Location

Game

Logic

Game

Logic

Page 23: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

GraphicsDebounceI/O

Page 24: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

GraphicsDebounceI/O

Page 25: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Graphics

Page 26: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Graphics

mallet locations

puck location

game info

VGA

Page 27: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Graphics

mallet locations

puck location

Δ Velocity Friction

VGA

Central Logic

game info

Page 28: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Graphics

Δ Velocity Friction

VGA

mallet locations

puck location Central

Logic

Table graphics x2

game info

Page 29: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Graphics

Table graphics x2Δ Velocity Friction

VGA

mallet locations

puck location Central

Logic

Puck graphics

game info

Page 30: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Graphics

Table graphics x2Δ Velocity Friction

VGA

mallet locations

puck location Central

Logic

Puck graphics

Mallet graphics x2

game info

Page 31: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Graphics

Table graphics x2Δ Velocity Friction

VGA

mallet locations

puck location Central

Logic

Puck graphics

Mallet graphics x2

Text graphics (many)game info

Page 32: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: Graphics

- If time permits:- shading?

Page 33: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

GraphicsDebounceI/O

Page 34: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Design: OverallObject Recognition

Game Logic

Physics

GraphicsDebounceI/O

Page 35: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Game Logic FSM

Stored Information:- Game State- Mallet & puck positions- Mallet & puck velocities

Design: Game Logic

Page 36: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Mallet Coordinates Game Logic FSM

Object Recognition

Stored Information:- Game State- Mallet & puck positions- Mallet & puck velocities

Page 37: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Mallet Coordinates Game Logic FSM

Mallet PositionsVelocities

Object Recognition

Physics Engine

Old Puck PositionsVelocity

Stored Information:- Game State- Mallet & puck positions- Mallet & puck velocities

Page 38: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Mallet Coordinates Game Logic FSM

Mallet PositionsVelocities

Object Recognition

Physics Engine

Old Puck PositionsVelocity

New Puck PositionsVelocity

Stored Information:- Game State- Mallet & puck positions- Mallet & puck velocities

Page 39: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Mallet Coordinates Game Logic FSM

Mallet PositionsVelocities

Object Recognition

Physics Engine

Old Puck PositionsVelocity

New Puck PositionsVelocity

Selected Game Info

Object Positions

Grap

hics

Stored Information:- Game State- Mallet & puck positions- Mallet & puck velocities

Page 40: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Mallet Coordinates Game Logic FSM

Mallet PositionsVelocities

Object Recognition

Physics Engine

Old Puck PositionsVelocity

New Puck PositionsVelocity

Selected Game Info

I/OObject

Positions

Grap

hics

Resume/Pause

Restart

Stored Information:- Game State- Mallet & puck positions- Mallet & puck velocities

Page 41: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Mallet Coordinates Game Logic FSM

Mallet PositionsVelocities

Object Recognition

Physics Engine

Old Puck PositionsVelocity

New Puck PositionsVelocity

Selected Game Info

I/OObject

Positions

Grap

hics

Resume/Pause

Restart

Replay

Stored Information:- Game State- Mallet & puck positions- Mallet & puck velocities

Page 42: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Mallet Coordinates Game Logic FSM

Mallet PositionsVelocities

Object Recognition

Physics Engine

Old Puck PositionsVelocity

New Puck PositionsVelocity

Selected Game Info

I/OObject

Positions

Grap

hics

Resume/Pause

Restart

Replay

Stored Information:- Game State- Mallet & puck positions- Mallet & puck velocities- Last N positions

Page 43: 3D Air Hockeyweb.mit.edu/6.111/www/f2014/projects/axc_Project_Design_Present… · Resume/ Pause Restart Replay Stored Information: - Game State - Mallet & puck positions - Mallet

Timeline10/27 11/3 11/10 11/17 11/24 12/1 12/8

Design

Object Recognition (Yuqing)

Physics (Abe)

Graphics (Alex)

Game Logic

Integration

Testing, Debugging