Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Tsim Game
- Kauj Ruam 2: Ua Ntej
- Kauj Ruam 3: Hierarchy Chav Kawm
- Kauj Ruam 4: Hloov Kho Lub Vev Xaib
- Kauj Ruam 5: Game Logic
- Kauj Ruam 6: Easter Egg
Video: LCD Invaders: Qhov Chaw Invaders Zoo Li Kev Ua Si ntawm 16x2 LCD Cov Cim Cim: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Tsis tas yuav tsum qhia cov lus dab neeg "Space Invaders" game. Qhov tshwj xeeb tshaj plaws ntawm qhov haujlwm no yog tias nws siv cov ntawv nyeem rau cov duab tso tawm. Nws ua tiav los ntawm kev ua 8 tus cim kev cai.
Koj tuaj yeem rub tawm daim duab tiav Arduino ntawm no:
github.com/arduinocelentano/LCD_invaders/
Khoom siv
Arduino UNO pawg thawj coj saib
LCD keypad tiv thaiv
USB cable rau kos duab uploading
Kauj Ruam 1: Tsim Game
Lub vijtsam tsis tso cai tswj cais cov pixels thiab muab tsuas yog ob kab ntawv uas tsis txaus rau kev ua si. Tab sis nws tso cai rau siv txog li 8 tus cim kev cai. Qhov ua kom yuam kev yog ua txhua tus 5x8 pixels cim ua ob 5x4 pixels game cells. Ntawd yog hais, peb yuav muaj 16x4 qhov chaw ua si, uas ua rau muaj kev nkag siab. 8 tus cim tsuas yog txaus los siv sprites rau cov neeg ua si lub dav hlau, cov mos txwv thiab cov neeg txawv teb chaws ua yeeb yam. Txij li cov sprites yog 5x4 thiab cov cim yog 5x8, peb yuav xav tau qee tus cim nrog ob tus sprites zoo li "lub dav hlau thiab lub mos txwv" sprite, "tus neeg txawv teb chaws thiab tus mos txwv sprite" thiab lwm yam.
Kauj Ruam 2: Ua Ntej
Feem ntau, tag nrho cov nyees khawm ntawm daim iav thaiv LCD tau txuas nrog tib tus pin analog. Muaj ntau qhov sib txawv ntawm LCD ntaub thaiv npog, yog li koj yuav zaum yuav tsum tau hloov me ntsis cov ntsiab lus hauv kuv lub khawm ua cov cai.
Kauj Ruam 3: Hierarchy Chav Kawm
Kuv tau ua tiav chav kawm hauv paus GameObject uas muaj kev tswj hwm thiab ua haujlwm nrawm thiab txheej txheem kev sib tsoo. Classes Ship, Alien thiab Bullet tau txais los ntawm nws.
Kauj Ruam 4: Hloov Kho Lub Vev Xaib
Rendering logic yuav zoo li nyuab me ntsis vim tias peb yuav tsum hloov pauv 16x4 game logic rau hauv 16x2 zaub. Thov nyeem cov lus hauv kab lus rau kev siv ntxiv. Txhawm rau zam kev yoo mov, Kuv tau siv ob txoj kab sib txawv ua kab ntawv ua kab ntawv. Nws tso cai siv ob peb (ib qho rau txhua kab) ntawm kev ua haujlwm luam ntawv los hloov kho lub vijtsam.
Kauj Ruam 5: Game Logic
Nov yog lub plawv ntawm qhov kev ua si. Lub voj loj hloov pauv kev tswj hwm ntawm txhua yam khoom, tshuaj xyuas txhua yam kev sib tsoo thiab khawm cov xwm txheej. Kev ceev ntawm cov neeg txawv teb chaws thiab lawv qhov kev tshwm sim tua nce ntxiv los ntawm qib mus rau qib. Tab sis cov qhab nia khoom plig nce ntxiv ib yam.
Kauj Ruam 6: Easter Egg
Tsis muaj qib tom qab qib 42. Tiag tiag. Nws yog Qib Kawg ntawm Lub Neej, Lub Ntiaj Teb, thiab Txhua Yam.:)
Pom zoo:
Cov Ntawv Cim Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Cov Ntawv Cim - Cov Khoom Siv Soldering: 11 Kauj Ruam
Cov Khoom Siv Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Daim Npav - Cov Khoom Siv Soldering: Kab lus no tau txaus siab txhawb nqa los ntawm PCBWAY.PCBWAY ua cov qauv zoo PCBs rau tib neeg thoob plaws ntiaj teb. Sim nws rau koj tus kheej thiab tau txais 10 PCBs rau tsuas yog $ 5 ntawm PCBWAY nrog qhov ua tau zoo heev, Ua tsaug PCBWAY. Robadge#1 uas kuv tau tsim rau
Ua kom muaj kev sib nrug deb ntawm lub dav hlau tooj liab thiab Cov Cim Cim: 3 Kauj Ruam
Ua kom pom kev deb ntawm lub dav hlau tooj liab thiab Cov Cim Cim: Kuv yog tus nyiam ua haujlwm thiab kuv tsim Cov Ntawv Luam Circuit Court (PCB) rau kuv cov blog thiab Youtube Videos. Kuv xaj kuv li PCB online los ntawm LionCircuits. Nws yog lub tuam txhab Indian thiab lawv muaj lub tshuab siv tshuab rau kev tsim khoom. Nws cia li tshuaj xyuas koj Ger
Yuav Ua Li Cas Tsim Lub Chaw Nres Tsheb txhawm rau daws qhov mob ntawm Nrhiav Qhov Chaw Dawb: 12 Kauj Ruam
Yuav Ua Li Cas Tsim Lub Chaw Nres Tsheb txhawm rau daws qhov Mob ntawm Nrhiav Qhov Chaw Dawb: Hauv qhov haujlwm no peb yuav tsim lub chaw nres tsheb yooj yim uas siv Raspberry Pi. Nws hloov tawm tias txhua tag kis kuv yuav tsum ntsib cov lus nug no: Puas yog XAUS qhov chaw nres tsheb nyob rau ntawm kuv lub chaw haujlwm twb tau coj lawm? Vim tias thaum nws yog qhov tseeb, Kuv yuav tsum tau mus ncig
Ua Qhov Zoo Tshaj Plaws Ntawm Koj Li Kev Txiav Txim PCB (thiab Kho Qhov Yuam Kev): 4 Cov Kauj Ruam
Ua Qhov Zoo Tshaj Plaws Ntawm Koj Li Kev Txiav Txim PCB (thiab Kho Cov Yuam Kev): Thaum xaj PCBs online, koj feem ntau tau txais 5 lossis ntau dua ntawm PCB zoo ib yam thiab tsis tas yuav xav tau txhua tus. Tus nqi qis ntawm kev muaj cov kev cai ua-rau-xaj PCBs yog qhov txaus nyiam heev thiab peb feem ntau tsis txhawj xeeb txog yuav ua dab tsi ntxiv. Hauv ib
Rov Qab Pab Chaw Nres Tsheb Hauv Lub Nkoj Siv Kev Nyab Xeeb Muaj Kev Nyab Xeeb Zoo thiab Cov Cim Hluav Taws Xob: 5 Cov Kauj Ruam
Tsheb Rov Qab Pab Hauv Qhov Chaw Nkag Siv Kev Nyab Xeeb Uas Muaj Kev Nyab Xeeb Zoo thiab Cov Hluav Taws Xob Hluav Taws Xob: Kuv xav tias ntau qhov kev tsim tawm hauv keeb kwm ntawm noob neej tau ua vim kev yws yws poj niam. Tshuab ntxhua khaub ncaws thiab tub yees yeej zoo li zoo li cov neeg sib tw siv tau. Kuv me me " invention " piav qhia hauv Cov Lus Qhia no yog hluav taws xob