12
Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

Venom8y Video Game

CSE 378 Final Project

Bart Pietrasik

Can Kulduk

Kevin Van Sickle

Page 2: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

Rules of Venom8y-Two player using two custom made controllers Red Spider and Blue Scorpion

-Using Green Venom you can eliminate your opponent by touching them

-The Spider and Scorpion are surrounded by Green Poisson Frame ,upon contact with the frame you will die

-You have forward movement using red button and two black buttons –the top one for clockwise and the button one for counterclockwise rotation

-The player eliminated by contact with Green Venom or Green Framedies and starts at the starting position and the other player continue…

Page 3: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

ReturnStack

RmuxPmux

PCclrclk

pload

pinc

IRclrclkirload

W8Y_rom

W8Y_control

plus1

R

DS

Rin

P(8) & R T

P (8:0)

Pin (8:0)

M

RPage & M P1

R

M

SW(1:8)

The W8YMicrocontroller

clkclr

rpop

rpush

psel rinsel

dssel(1:0)

rload

rdec

rsel

T

icode

E

BTN(1:4)

DataStack_ALUclkclr

dpop

dpush

ssel

nloadnsel

tload

tsel(1:0)

alusel(3:0)

T

0 11

1

0

0 2 3DSmux

Hit_Reg

E

Hit (1:0)

clk10cl_Hit

Hit (0)Hit (1)

SpiXreg

(7:0)

ldspidx

clr

Graphic2

YScorpPos (7:0)

XScorpPos (7:0)

XSpiPos (7:0)

clk

YSpiPos (7:0)

SpiYreg

(7:0)

ldspidy

clrclk

ScorpXreg

(7:0)

ldscorpx

clrclk ScorpYreg

(7:0)

ldscorpy

clrclk

clrclk10

Spid_RegSTAT

(1:0)

ldspdSTAT

clrclk Scorp_Reg

STAT

(1:0)

ldscpSTAT

clrclk

SpidAng

(2:0)

ldSpidAng

clrclk

ScorpAng

(2:0)

ldScorpAng

clrclk

Hit (1:0)

RGBout(2:0)

Hs

Vs

SpidAng (2:0)

ScorpAng (2:0)

SpdSTAT (1:0)

ScpSTAT (1:0)

T

T

T

M

RPage

incspd & SpidAng

inc

dec

inc

dec

SpdDec(3:0)

incscp & ScorpAng

inc

dec ScpDec(3:0)

inc

dec

Page 4: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

ReturnStack

RmuxPmux

PCclrclk

pload

pinc

IRclrclkirload

W8Y_rom

W8Y_control

plus1

R

DS

Rin

P(8) & R T

P (8:0)

Pin (8:0)

M

RPage & M P1

R

M

SW(1:8)

The W8YMicrocontroller

clkclr

rpop

rpush

psel rinsel

dssel(1:0)

rload

rdec

rsel

T

icode

E

BTN(1:4)

DataStack_ALUclkclr

dpop

dpush

ssel

nloadnsel

tload

tsel(1:0)

alusel(3:0)

T

0 11

1

0

0 2 3DSmux

Hit_Reg

E

Hit (1:0)

clk10cl_Hit

Hit (0)Hit (1)

SpiXreg

(7:0)

ldspidx

clr

Graphic2

YScorpPos (7:0)

XScorpPos (7:0)

XSpiPos (7:0)

clk

YSpiPos (7:0)

SpiYreg

(7:0)

ldspidy

clrclk

ScorpXreg

(7:0)

ldscorpx

clrclk ScorpYreg

(7:0)

ldscorpy

clrclk

clrclk10

Spid_RegSTAT

(1:0)

ldspdSTAT

clrclk Scorp_Reg

STAT

(1:0)

ldscpSTAT

clrclk

SpidAng

(2:0)

ldSpidAng

clrclk

ScorpAng

(2:0)

ldScorpAng

clrclk

Hit (1:0)

RGBout(2:0)

Hs

Vs

SpidAng (2:0)

ScorpAng (2:0)

SpdSTAT (1:0)

ScpSTAT (1:0)

T

T

T

M

RPage

incspd & SpidAng

inc

dec

inc

dec

SpdDec(3:0)

incscp & ScorpAng

inc

dec ScpDec(3:0)

inc

dec

Page 5: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

Graphic2scanVGA

-RGB signals-10 MHZ Clock

-Provides timing for Horizontal & Vertical

Synch

Hit_Reg-Tells The W8Y that hit occurs -

collision between Blue-Green (1st Bit) and Red –Green (2nd Bit)

The W8Y Microcontroller

-Designed in Lab 9 Modified for Venom8y

Coordinate Registers-angle registers

Modifications Coordinate Registers -The X and Y coordinate registers

Angle Decoders-Output the direction

increment or decrement according

to the angle

STAT_Registers-Sets the images to

alive or dead

ReturnStack

RmuxPmux

PCclrclk

pload

pinc

IRclrclkirload

W8Y_rom

W8Y_control

plus1

R

DS

Rin

P(8) & R T

P (8:0)

Pin (8:0)

M

RPage & M P1

R

M

SW(1:8)

The W8YMicrocontroller

clkclr

rpop

rpush

psel rinsel

dssel(1:0)

rload

rdec

rsel

T

icode

E

BTN(1:4)

DataStack_ALUclkclr

dpop

dpush

ssel

nloadnsel

tload

tsel(1:0)

alusel(3:0)

T

0 11

1

0

0 2 3DSmux

Hit_Reg

E

Hit (1:0)

clk10cl_Hit

Hit (0)Hit (1)

SpiXreg

(7:0)

ldspidx

clr

Graphic2

YScorpPos (7:0)

XScorpPos (7:0)

XSpiPos (7:0)

clk

YSpiPos (7:0)

SpiYreg

(7:0)

ldspidy

clrclk

ScorpXreg

(7:0)

ldscorpx

clrclk ScorpYreg

(7:0)

ldscorpy

clrclk

clrclk10

Spid_RegSTAT

(1:0)

ldspdSTAT

clrclk Scorp_Reg

STAT

(1:0)

ldscpSTAT

clrclk

SpidAng

(2:0)

ldSpidAng

clrclk

ScorpAng

(2:0)

ldScorpAng

clrclk

Hit (1:0)

RGBout(2:0)

Hs

Vs

SpidAng (2:0)

ScorpAng (2:0)

SpdSTAT (1:0)

ScpSTAT (1:0)

T

T

T

M

RPage

incspd & SpidAng

inc

dec

inc

dec

SpdDec(3:0)

incscp & ScorpAng

inc

dec ScpDec(3:0)

inc

dec

Page 6: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

Hit_RegisterOR-gate is used to

Latch the possibility for both players

getting hit

Input from Graphic2 The W8Y controller is used

to know if one of the players is hit or not

Hit_Reg

E

Hit (1:0)

clk10cl_Hit

Hit (0)Hit (1)

Page 7: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

Graphic2

Graphic2

YScorpPos (7:0)

XScorpPos (7:0)

XSpiPos (7:0)

YSpiPos (7:0)

clrclk10

Hit (1:0)

RGBout(2:0)

Hs

Vs

SpidAng (2:0)

ScorpAng (2:0)

SpdSTAT (1:0)

ScpSTAT (1:0)

Spider and Scorpion X & Y

position coordinates

Outputs if collision occurs between player color and green

Red, Green, Blue signals

Output to monitor

Horizontal and Vertical

Synch.Output to monitor

10 MHz clock

Spider and Scorpion Status and Angle

Page 8: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

WHYP

Page 9: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

WHYP

Page 10: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

WHYP

Page 11: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

WHYPFlowchart

INITL

DEL

CHECK HITS

DO BUTTON

Page 12: Venom8y Video Game CSE 378 Final Project Bart Pietrasik Can Kulduk Kevin Van Sickle

Any Questions !!!

Have a Nice Holidays and Happy New Year