Difference between revisions of "Microduino-Joypad-Standard Game TV-Game"

From Microduino Wiki
Jump to: navigation, search
m (Document Download)
(Principle)
Line 6: Line 6:
 
Use Microduino-Joypad-Standard to play classic TV games  
 
Use Microduino-Joypad-Standard to play classic TV games  
 
==Principle==
 
==Principle==
Use Core module,in PAL or NTSC formats as audio output,by using Microduino-Joypad-Standard as control signals to play TV games。
+
Use Core module,in PAL or NTSC formats as audio output,by using Microduino-Joypad-Standard as control signals to play TV games
 +
 
 
==List of Materials==
 
==List of Materials==
 
*Microduino Equipment
 
*Microduino Equipment

Revision as of 06:35, 26 November 2014

Overview

Use Microduino-Joypad-Standard to play classic TV games

Principle

Use Core module,in PAL or NTSC formats as audio output,by using Microduino-Joypad-Standard as control signals to play TV games

List of Materials

  • Microduino Equipment
Modules Quantity Function
Microduino-Core/zh 1 Core board
Microduino-Joypad-Standard 1 Remote control
Microduino-USBTTL/zh 1 Program download
  • Other Equipment
    • TV with AV port *1
    • USB cable *1
    • jumper wire several
    • RCA cable *1
    • 1k ohm resistor *1
    • 470 ohm resistor *1

Document Download

  • Download libraries:https://github.com/wasdpkj/libraries;
    • you may need following libraries:_01_Microduino_TFT 、_08_Microduino_Shield_Joypad、_11_Microduino_tvout , please unzip the libraries into Arduino IDE folder and cover the libraries,and then restart IDE compiler

Code:https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Joypad/Joypad_TVout

Debugging

  • Step 5:编译代码,成功后选择对应的板卡(Microduino-Core)和COM端口下载。

下载成功后,电视上将选择AV模式,进入就可以开始玩耍了。

Microduino-Joypad-Standard zk.jpg

游戏实验

Game 1:打砖块

  • 按下左摇杆的按键,进入游戏;
  • 按下右摇杆的按键,开始游戏;
  • 过左或右摇杆移动底板来接住小球;
  • 你可以按下【KEY2键】(左边第二个)来暂停,按下右摇杆的按键,恢复游戏;
  • 总共有三条性命,“GAME OVER”后可以输入你的名字三个英文,右摇杆的按键选择名字字母,【KEY1键】选择顺序输入完毕返回起始界面重新开始。
Microduino-Joypad-Standard AV.jpg

Game 2:怪物战斗

  • 按下左或右摇杆的按键,进入游戏;
  • 通过左或右摇杆来行走,左或右摇杆的按键来发射炮弹;
  • 你不能被怪物撞击,否则将失去一条生命,总共有三条生命,
  • 当击落一个怪物,在一定时间内可以去加一条生命
  • 当“GAME OVER”。此时按下左或右摇杆的按键,重新进入游戏。
Microduino-Joypad-Standard gw.jpg

Game 3:玛丽

  • 按下右摇杆的按键,进入游戏;
  • 左右摇杆往上推玛丽则往上跳,左右摇杆往右推则往右走,往左推则往左走;
  • 途中落入陷阱或是撞上蛇就“GAME OVER”。此时按下右摇杆的按键,重新进入游戏。
Microduino-Joypad-Standard ml.jpg