tank gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · system architecture hardware...

12
Tank Game Zixiang Zheng zz2642 Wenzhe He wh2443

Upload: others

Post on 30-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

Tank GameZixiang Zheng zz2642

Wenzhe He wh2443

Page 2: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

1. Project Overview

• Reimplement 1985 ‘Battle City’tank game

• Player have 3 life.

• Player need to destroy all enemy tank to win.

• If life are used up or base is attack, game will lose.

Page 3: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

2. System architecture

Hardware

Software

VGA Module

AudioModule

Speaker

Avalon Bus Interface

JoystickController

Game Logic Control

VGAMonitor

VGA SignalUSB Signal

Game LogicSignal

Audio SelectSignal

Sprite Signal

SoundSignal

Page 4: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

3. Hardware design

• 1. Graphic Design

Page 5: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

3. Hardware design

• 2. Tile and Sprite Hardware design

Page 6: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

3. Hardware design• 3. Audio Hardware design

Page 7: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

3. Hardware design• 3. Audio Hardware design

Page 8: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

3. Hardware design• 3. Audio Hardware design

Page 9: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

4.Software design

• 1. User Input: iNNEXT joystick gamepad

Button Function Button Function

Up Tank move up Start end game

Down Tank move down A Shoot

Left Tank move left BSummon

Player tank

Right Tank move right

Page 10: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

4.Software design

• 2. Game logic

• Movement logic

• Bullet logic

• Player tank logic

• Enemy Tank logic

• Win Lose Logic

Page 11: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

4.Software design

• 3. Avalon Bus data

19 16bits data per cycle

Page 12: Tank Gamesedwards/classes/2020/4840-spring/... · 2020-05-16 · System architecture Hardware Software VGA Module Audio Module Speaker Avalon Bus Interface Joystick Controller Game

5. Challenge

• 1. Enlarge the whole game.

• 2. Display image correctly using ROM and RAM

• 3. Achieve the movement logic correctly.

• 4. Design the AI of the enemy tank.