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

From Microduino Wiki
Jump to: navigation, search
m
(Game 3:玛丽)
 
(8 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
|
 
|
 
==Overview==
 
==Overview==
我们采用Microduino-Joypad-Standard来在电视上玩一些经典游戏,用小米电视来做显示器。
+
Use Microduino-Joypad-Standard to play classic TV games
 
==Principle==
 
==Principle==
采用Core为核心,并且以PAL或NTSC制式发送视频输出到屏幕上,再通过Microduino-Joypad-Standard作为控制信号,从而实现游戏控制。
+
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
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
|模块||数量||功能
+
| Modules|| Quantity || Function
 
|-
 
|-
|[[Microduino-Core/zh]]||1||核心板
+
|[[Microduino-Core/zh]]||1||Core board
 
|-
 
|-
|Microduino-Joypad-Standard ||1||遥控
+
|Microduino-Joypad-Standard ||1||Remote control
 
|-
 
|-
|Microduino-USBTTL/zh||1||下载程序
+
|Microduino-USBTTL/zh||1||Program download
 
|}
 
|}
 
*Other Equipment
 
*Other Equipment
**有AV接口的电视  一个
+
**TV with AV port  *1
**USB数据连接线   一根
+
**USB cable   *1 
**跳线            若干
+
**jumper wire    several
**RCA线  一根
+
**RCA cable  *1 
**1k欧电阻  一个
+
**1k ohm resistor  *1 
**470欧电阻   一个
+
**470 ohm resistor   *1
  
 
== Document Download==
 
== Document Download==
*下载库文件:https://github.com/wasdpkj/libraries;
+
*Download libraries:https://github.com/wasdpkj/libraries;
**你需要用到以下库:_01_Microduino_TFT 、_08_Microduino_Shield_Joypad、_11_Microduino_tvout将下载好的库文件解压放到Arduino IDE的libraries中,重新启动下IDE编译器。
+
**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
代码:https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Joypad/Joypad_TVout
+
Code:https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Joypad/Joypad_TVout
  
 
== Debugging ==
 
== Debugging ==
*Step 1:你需要自己制作一个RCA线转接线,参考[[Microduino 视频输出/zh]]
+
*Step 1:You need to make a RCA cable, please refer to [[Microduino 视频输出/zh]]
  
*Step 2:准备Microduino-Joypad-Game,你可以参考:[[Microduino-Joypad_Getting_start]]
+
*Step 2:Build up Microduino-Joypad-Game,please refer to:[[Microduino-Joypad_Getting_start]]
  
*Step 3:将[[Microduino-Core/zh]]、[[Microduino-USBTTL/zh]]、自制的RCA转接线叠加在Microduino-Joypad-Game底板的Upin27上;
+
*Step 3:Stack [[Microduino-Core/zh]]、[[Microduino-USBTTL/zh]]、and RCA cable on Upin27(in Microduino-Joypad 's baseboard);
  
*Step 4:下载使用到的库和代码,把库更新到编译器中【[[安装Arduino IDE Microduino程序库支持包]]】
+
*Step 4:Download the libraries and code,update them into compiler  install the Arduino IDE Microduino support pack here>> 【[[安装Arduino IDE Microduino程序库支持包]]】
  
*Step 5:编译代码,成功后选择对应的板卡(Microduino-Core)和COM端口下载。
+
*Step 5:After compiled code,choose the right board (Microduino-Core)  and COM port to download
  
下载成功后,电视上将选择AV模式,进入就可以开始玩耍了。
+
when download complete,choose AV mode on TV,now it's time to PLAY! 
 
[[File: Microduino-Joypad-Standard_zk.jpg|800px|center|thumb]]
 
[[File: Microduino-Joypad-Standard_zk.jpg|800px|center|thumb]]
  
==游戏实验==
+
==Game Test==
===Game 1:打砖块===
+
===Game 1:Break the Bricks===
*按下左摇杆的按键,进入游戏;
+
*Push left stick, enter the game;
*按下右摇杆的按键,开始游戏;
+
*Push right stick, start game;
*过左或右摇杆移动底板来接住小球;
+
*Use left or right stick to catch the ball; 
*你可以按下【KEY2键】(左边第二个)来暂停,按下右摇杆的按键,恢复游戏;
+
*You can push KEY2 (second button on the left side)button to pause, and push right stick to resume; 
*总共有三条性命,“GAME OVER”后可以输入你的名字三个英文,右摇杆的按键选择名字字母,【KEY1键】选择顺序输入完毕返回起始界面重新开始。
+
*You have 3 chances,3 letter can be input after “GAME OVER”,use right stick to pick letters,【KEY1】choose the orders, and then return to start. 
 
[[File: Microduino-Joypad-Standard_AV.jpg|800px|center|thumb]]
 
[[File: Microduino-Joypad-Standard_AV.jpg|800px|center|thumb]]
  
===Game 2:怪物战斗===
+
===Game 2:Monster Rivals===
*按下左或右摇杆的按键,进入游戏;
+
*Push left or right button to enter;
*通过左或右摇杆来行走,左或右摇杆的按键来发射炮弹;
+
*Move the left or right stick to run,  left or right button to fire;
*你不能被怪物撞击,否则将失去一条生命,总共有三条生命,
+
*You cannot be hit by monsters, or you'll lose lives;
*当击落一个怪物,在一定时间内可以去加一条生命
+
*When shoot down a monster, you can add one live afterwards;
*当“GAME OVER”。此时按下左或右摇杆的按键,重新进入游戏。
+
*When “GAME OVER”, push left or right stick/button to restart.
 
[[File: Microduino-Joypad-Standard_gw.jpg|800px|center|thumb]]
 
[[File: Microduino-Joypad-Standard_gw.jpg|800px|center|thumb]]
  
===Game 3:玛丽===
+
===Game 3:Super Mary===
*按下右摇杆的按键,进入游戏;
+
*Push right stick to enter; 
*左右摇杆往上推玛丽则往上跳,左右摇杆往右推则往右走,往左推则往左走;
+
*Push-uplist to jump,  left or right stick to move;
*途中落入陷阱或是撞上蛇就“GAME OVER”。此时按下右摇杆的按键,重新进入游戏。
+
*If you fall into a trap or hit the snake, then it's “GAME OVER",push right stick to restart.
 
[[File: Microduino-Joypad-Standard_ml.jpg|800px|center|thumb]]
 
[[File: Microduino-Joypad-Standard_ml.jpg|800px|center|thumb]]
 
|}
 
|}

Latest revision as of 07:09, 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:After compiled code,choose the right board (Microduino-Core) and COM port to download

when download complete,choose AV mode on TV,now it's time to PLAY!

Microduino-Joypad-Standard zk.jpg

Game Test

Game 1:Break the Bricks

  • Push left stick, enter the game;
  • Push right stick, start game;
  • Use left or right stick to catch the ball;
  • You can push KEY2 (second button on the left side)button to pause, and push right stick to resume;
  • You have 3 chances,3 letter can be input after “GAME OVER”,use right stick to pick letters,【KEY1】choose the orders, and then return to start.
Microduino-Joypad-Standard AV.jpg

Game 2:Monster Rivals

  • Push left or right button to enter;
  • Move the left or right stick to run, left or right button to fire;
  • You cannot be hit by monsters, or you'll lose lives;
  • When shoot down a monster, you can add one live afterwards;
  • When “GAME OVER”, push left or right stick/button to restart.
Microduino-Joypad-Standard gw.jpg

Game 3:Super Mary

  • Push right stick to enter;
  • Push-uplist to jump, left or right stick to move;
  • If you fall into a trap or hit the snake, then it's “GAME OVER",push right stick to restart.
Microduino-Joypad-Standard ml.jpg