Darrin-Lin / NTNUCSIE-CPII-Final_Project

My final project of Computer Programming II.
GNU General Public License v3.0
0 stars 0 forks source link

NTNUCSIE-CPII-Final_Project

My final project of Computer Programming II.

How to run

You can compile with make under src/. Then you can use engine to run the game.

./engine <related_path>

Requirement files

/novel.toml /font.ttf /sound/switch.mp3 /sound/select.mp3 /sound/change.mp3 /sound/get_item.mp3 /sound/dialogue.mp3 /sound/scene.mp3 /sound/esc.mp3 /music/title.mp3 /music/bgm.mp3 music and sound is **mp3** only You can copy those file from [here](./res/) ## TOML Requirement ```toml name = string [player.] starter = string [character.] name = string avatar = path(string) tachie = path(string) [item.] name = string description = path(string) icon = path(string) [event.] scene = path(string) dialogue = string # or [event.] end = end_id(string) [dialogue.] character = character_id(string) text = string [[dialogue..options]] text = string event = event_id(string) # or [[dialogue..options]] text = string next = dialogue_id(string) [end.] title = string background = path(string) text = string ``` dialogue 要有 character 跟 text 且一定要有至少一個最多五個 option 且只能接 event 或 dialogue,且所有選項需一致 ## TOML Optional ```toml start_background [player] inventory =[item_id(string)] [charater.] avatar_happy = path(string) avatar_sad = path(string) tachie_happy = path(string) tachie_sad = path(string) [event.] item = item_id(string) # in scene only [dialogue.] [[dialogue..options]] favorability_add = int [end.] music = path(string) ``` ## TOML Example [novel.toml](./res/novel.toml)