Battle of the Old SK00L: Nintendo meets Simon - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Battle of the Old SK00L: Nintendo meets Simon

Description:

To simulate the Simon game with an original Nintendo remote control. ... to the user to key in that same sequence using the Nintendo controller in his/her hand. ... – PowerPoint PPT presentation

Number of Views:64
Avg rating:3.0/5.0
Slides: 13
Provided by: Replac
Category:
Tags: sk00l | battle | meets | nintendo | old | simon

less

Transcript and Presenter's Notes

Title: Battle of the Old SK00L: Nintendo meets Simon


1
Battle of the Old SK00LNintendo meets Simon
  • Jason Rosenthal
  • Troy Latchman

2
Objective
  • To simulate the Simon game with an original
    Nintendo remote control. The player will observe
    a lighted sequence on a monitor and try to press
    those same buttons on their controller.

3
Equipment
Genuine NES controller
Altera Development Board
DevaSys USB I/O Interface
4
Project
5
Hardware Operation
  • Altera board generates Latch and Clock signals
    for NES controller.
  • Altera board reads the data serially from NES
    controller, using a FSM.
  • Altera board has the serial data ready in
    parallel form for DevaSys USB interface.
  • USB interface communicates with C API and Simon
    software.

6
Hardware
Altera Graphic View
Data(7..0) Out
Data In
Latch Out
Clock Out
7
Oscilloscope Screenshots
12us Latch
8 12us Clocks
No Data
Data is active low
8
Hardware
DevaSys USB Pinout
NES Serial Data
B, Start, Left
Data is active low
9
Software Setup
  • Borland C Compiler v5.5 for Windows
  • Qt v3.3.3 Evaluation Software for Windows
  • MaxPlus II Student Edition Software
  • USB I2cIo driver files
  • UsbI2cIo API dll file explicitly linked in C
    code
  • UsbI2cIo API header file

10
The C Code
  • moc_qdisplay.h
  • nintendo.cpp - the main program
  • nintendo.pro - needed by qmake which is a utility
    bundled with the Qt software
  • qdisplay.cpp
  • qdisplay.h
  • USB.h - explicitly links nintendo.cpp to the
    UsbI2cIo API DLL functions
  • UsbI2cIo.dll - dynamically linked library
    provided by Devasys
  • USBI2CIO.H - header file provided by Devasys
  • These files were created by George F. Riley
    (for use in ECE3090).
  • The files create an interface to the Qt
    software which simplifies the Qt
  • function calls.

11
The Simon Game
Two windows are needed to play the Qt frame with
the picture of a Nintendo controller and the
command prompt. The command prompt display
helpful messages to the player, such as their
score and a history of buttons pressed.
12
Rules
  • The player will observe a lighted random sequence
    that Simon generates on the Nintendo GUI. The
    number of keys in the sequence is the level
    number that the player is currently on. The
    sequence of a particular level is the same
    sequence as the previous level, with just 1 more
    key appended to the end of the sequence.
  • It is up to the user to key in that same sequence
    using the Nintendo controller in his/her hand. It
    is important to note that the user must not only
    press the same sequences of keys, but also press
    the keys for approximately the same duration that
    Simon did. The key press duration is constant for
    every level and decreases as the player
    progresses through the levels.
  • The game will end at the first player mistake
    (pressing a wrong key or pressing the correct key
    for the wrong duration).
  • The player must complete 20 levels in order to
    beat the game.
Write a Comment
User Comments (0)
About PowerShow.com