Used methods in Tutorial part 7 - ilovethisid/Educational-Ascii-Game-engine GitHub Wiki
Tutorial part 7 : Score and End of the game์์ ์ฌ์ฉ๋ EAG engine component๋ค์ ์๊ฐํฉ๋๋ค.
Console
console ์ฐฝ ์ ์ด๋ฅผ ์ํ method๊ฐ ๋ค์ด์์ต๋๋ค.
Used methods
void Console::print(string str, int line, int start)
๋ฌธ์์ด str์ ์ฝ์ ํ๋ฉด์ ์ถ๋ ฅํ๊ธฐ ์ํ ๋ฉ์๋์ ๋๋ค.
Arguments
| Name | Value | Description |
|---|---|---|
| str | string | ์ถ๋ ฅํ ๋ฌธ์์ด |
| line | int | ๋ฌธ์์ด์ ์ถ๋ ฅํ ์ค ์์น |
| start | int | ์ถ๋ ฅํ ์ค ์์์์ ๊ฐ๋ก ๋ฐฉํฅ ์์น |
GameLoop
Game Loop๋ ๋งค Frame๋ณ๋ก ์คํํ ๋ช ๋ น์ ๊ฒฐ์ ํ๊ณ EAG engine์ ๋ชจ๋ component๋ค์ ์ฐ๊ฒฐ์์ผ ์ฃผ๋ ์ญํ ์ ํฉ๋๋ค.
Used methods
exit
void GameLoop::exit()
GameLoop::start()์์ ํ์ถํ์ฌ ๊ฒ์์ ์ข
๋ฃํฉ๋๋ค.