---
# System prepended metadata

title: 遊戲架構
tags: [ASM Final Project]

---

# 遊戲架構
###### tags: `ASM Final Project`

## Before Game
### Menu
- Game Name
- Instructions
- Show `Press any key to start`
    - Use `ReadChar`

## In Game
### 主角
- Position
    - `getPosition`
    - `defaultPosition COORD <10, 5>`
- Move
    - up
    - down
    - left
    - right
- Poperties
    - `isGrounded`
        - True
            - move up with platform
        - False
            - free fall
    - `isOutOfBorder`
        - True
        - False

### 平台
- Move
    - up only
- Generate
    - `getRandomNumber`
    - `getNewLine`
- `isOutOfBorder`

### 畫出畫面
- 角色
- 平台

### 分數
- 計算分數
- 

## Game Over
### Go Back to Menu