Pertemuan 1
Algoritma, Flowchart, dan Game Rules
Memahami algoritma dan flowchart melalui analisis aturan game: input, process, output.
Tujuan Pembelajaran
Memahami algoritma dari aturan game sederhana.
Membaca dan membuat flowchart untuk game logic.
Menganalisis input-process-output pada game.
Game Rules
Coin Collection
Pemain bergerak, mengambil coin, score bertambah.
Enemy Dodge
Pemain menghindari enemy, health berkurang saat terkena.
Input-Process-Output
Input
Keyboard / Click
Keyboard / Click
>
Process
Update posisi, score, health
Update posisi, score, health
>
Output
HUD, win/lose, feedback
HUD, win/lose, feedback
Flowchart Game Logic
Start
>
Player Move
>
Check Coin?
>
Add Score
>
Check Win
Pseudocode
START SET score = 0 WHILE game is running READ player input MOVE player IF player touches coin THEN score = score + 10 END IF IF score > 100 THEN SHOW win screen END IF END WHILE
Activity
- Analisis aturan game coin collection atau enemy dodge.
- Buat flowchart untuk game logic.
- Tulis input-process-output analysis.
- Ubah flowchart menjadi pseudocode.
Mini Quiz
Dalam game coin collection, score bertambah termasuk bagian...
Output Pertemuan
Game flowchart dan pseudocode.