Cov txheej txheem:

Gaming Siv Arduino: 13 Kauj Ruam
Gaming Siv Arduino: 13 Kauj Ruam

Video: Gaming Siv Arduino: 13 Kauj Ruam

Video: Gaming Siv Arduino: 13 Kauj Ruam
Video: JEE 2023 Aspirants ka Sach - ๐Ÿ’” #JEE2023inApril #jee #shorts #namokaul 2024, Hlis ntuj nqeg
Anonim
Gaming Siv Arduino
Gaming Siv Arduino

Feem ntau ntawm cov uas tuaj xyuas ntawm no yuav tau ua cov haujlwm siv arduino, tab sis tsawg leej paub paub siv nws li cas rau kev ua si. Cov lus qhia no yuav coj koj los ntawm kos ntawm yuav ua li cas ua yeeb yaj kiab game uas tuaj yeem tswj hwm siv Arduino.

Cov lus qhia no yuav qhib daim ntawv thov tshiab ntawm kev siv Arduino thiab ua rau koj cov phiaj xwm zoo dua li ua ntej.

Kauj Ruam 1: Txhim Kho Kos rau Arduino

Thov mus saib lub xaib

Txog S4A S4A yog Scratch kev hloov kho uas tso cai rau kev yooj yim programming ntawm Arduino qhib qhov chaw kho vajtse platform. Nws muab cov thaiv tshiab rau kev tswj hwm cov ntsuas thiab tus ua haujlwm txuas nrog Arduino. Kuj tseem muaj cov ntawv ceeb toom sensor zoo ib yam li PicoBoard ib qho. Lub hom phiaj tseem ceeb ntawm txoj haujlwm yog ua kom tib neeg nyiam mus rau lub ntiaj teb txoj haujlwm. Lub hom phiaj tseem yog txhawm rau muab qib sib cuam tshuam rau Arduino cov programmer nrog kev ua haujlwm xws li cuam tshuam nrog cov pawg ntawm pawg los ntawm cov xwm txheej ntawm cov neeg siv.

Txhim kho Firmware rau hauv koj li Arduino3 cov kauj ruam

Qhov firmware no yog ib qho software uas koj xav tau los nruab rau hauv koj lub Rooj Tswjhwm Saib Arduino kom tuaj yeem sib txuas lus nrog nws los ntawm S4A. Rub tawm thiab teeb tsa Arduino ib puag ncig los ntawm kev ua raws cov lus qhia ntawm https://arduino.cc/en/Main/Software. Coj mus rau hauv tus account Arduino Uno xav tau yam tsawg kawg version 0022. Rub peb cov firmware los ntawm no Txuas koj li Arduino board rau USB chaw nres nkoj hauv koj lub computer Qhib cov ntaub ntawv firmware (S4AFirmware16.ino) los ntawm Arduino ib puag ncig Hauv Cov cuab yeej ntawv qhia zaub mov, xaiv pawg thawj coj thiab ntu chaw nres nkoj uas lub rooj tsav xwm tau txuas nrog thauj khoom firmware rau hauv koj lub rooj tsavxwm los ntawm File> Upload

Kauj ruam 2: Cov ntaub ntawv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Txhawm rau ua kom yooj yim rau cov nyeem peb yuav ua tsuas yog ib lub khawm tswj cov vis dis aus game.

Koj yuav xav tau:

Lub siab xav;)

1 Pawg Arduino

jumper cov xov hlau

1 khob cij

Momentary Pushbutton Hloov

1 tus tiv thaiv 220 ohms (lossis ze rau qhov no)

Kauj Ruam 3: Xaiv Sprites

Xaiv Sprites
Xaiv Sprites

Koj tuaj yeem xaiv ib qho sprite los ntawm qhov tsis xav tau sprites uas koj xav tau los ntawm kev xaiv tshiab sprites tam sim no nyob rau hauv qab txoj cai vaj huam sib luag ntawm lub interface.

Txhawm rau ua kom nws muaj zog koj yuav tsum tau mus rau khaub ncaws thiab ntxiv cov ris tsho rau hauv sprite xaiv

Kuv xaiv tus dev xiav vim nws muaj peb qho khaub ncaws.

Koj tseem tuaj yeem rub tawm sprites tshiab los ntawm ntau lub vev xaib online.

Kauj Ruam 4: Kho Qhov Loj ntawm Sprites Loj

Kho qhov Loj ntawm Sprites Loj
Kho qhov Loj ntawm Sprites Loj

Sprites thiab arduino board pom ntawm cov zaub zaub ntawm sab saum toj txoj cai vaj huam sib luag ntawm lub interface tuaj yeem raug txo los ntawm qhov loj me thiab txav los siv siv qhov me me tab nyob rau sab saum toj ntawm lub vaj huam sib luag.

Kauj Ruam 5: Tom Qab

Keeb kwm yav dhau
Keeb kwm yav dhau

Lub keeb kwm yav dhau yuav muab cov txiaj ntsig zoo rau koj cov vis dis aus.

Mus rau hauv qab vaj huam sib luag sab xis thiab xaiv theem kev xaiv thiab xaiv ib theem los ntawm theem pib lossis koj tuaj yeem ntxiv koj tus kheej.

Kauj Ruam 6: Obstacle Sprites

Txhua qhov vis dis aus muaj cov nyom rau cov neeg ua si kom tau txais kev zoo siab txog.

Yog li ntawm no peb yuav xaiv ntau sprites rau cov nyom.

Kuv xaiv cov pob raws li kuv cov nyom sprites los ntawm kev xaiv sprites tshiab.

Kauj Ruam 7: Upload Arduino Block Code

Upload Arduino Thaiv Txoj Cai
Upload Arduino Thaiv Txoj Cai

Xaiv cov arduino los ntawm lub vaj huam sib luag hauv qab thiab tso cov block thaiv los ntawm rub thiab poob los ntawm sab laug feem ntau thaiv cov cai vaj huam sib luag raws li qhia hauv daim duab.

Kauj Ruam 8: Dog Sprite Code

Aub Sprite Code
Aub Sprite Code

Xaiv Tus dev sprite los ntawm lub vaj huam sib luag hauv qab hauv qab thiab rub cov block thaiv los ntawm rub thiab poob los ntawm sab laug feem ntau thaiv cov cai vaj huam sib luag raws li qhia hauv daim duab.

Kauj Ruam 9: Upload Obstacle Ball Code

Upload Obstacle Ball Code
Upload Obstacle Ball Code

Xaiv Obstacle sprite los ntawm lub vaj huam sib luag hauv qab thiab rub cov block thaiv los ntawm rub thiab poob los ntawm sab laug feem ntau thaiv txoj cai vaj huam sib luag raws li qhia hauv daim duab.

Kauj Ruam 10: Luam Obstacle

Tsuas yog txoj cai ntawm qhov teeb meem sprite ntawm lub vaj huam sib luag zaub thiab xaiv theej tawm thiab koj mus, koj muaj koj qhov teeb meem theej tawm.

Kauj Ruam 11: Kho Kev Tawm Tsam Tawm Tsam Ntawm Obstacle Sprite

Kho Kho Kom Hloov Dua Ntawm Obstacle Sprite
Kho Kho Kom Hloov Dua Ntawm Obstacle Sprite

Xaiv lub pob sprite thiab mus rau lub vaj huam sib luag sab saum toj raws li cim hauv daim duab thiab hloov nws txoj kev taw qhia kom nce.

Kauj Ruam 12: Kev Sib Txuas Kho Vajtse

Kho vajtse sib txuas
Kho vajtse sib txuas

txuas cov khoom siv kho vajtse raws li qhia

Kauj Ruam 13: Kauj Ruam Kawg

Txuas lub arduino board rau lub khoos phis tawj nrog lub xov tooj cua thiab nias tus chij ntsuab ntawm sab xis ntawm lub interface thiab nyob ntawd koj tau txais koj qhov kev ua si tau npaj tiav.

Pom zoo: