/
trilirium
/
Pacman
Обзор
Документация
Войти
/
trilirium
/
Pacman
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
InitSubstate.cpp
33 строки
757 B
Trilirium
first commit
19 июн 2026, 11:07
19 июн 2026, 11:07
d44591e
Код
Авторство
О чём код?
// InitSubstate.cpp // ///////////////////////////////////////////////////////////////////////////// #include "InitSubstate.h" #include "Video.h" #include "Game.h" #include "Writer.h" using namespace Puckman; void InitSubstate::run() { // init VRAM and CRAM Video::clearVRAM(false); Video::clearCRAM(); Video::initCRAM(0); // read DIPSW and save current settings theGame->settings.getSettings(); // init and print scores Writer::initAndPrintScores(); // init pacman and ghosts positions, tile positions, orientation vars and sprite data theGame->initCharacterState(false); // reset pacman, fruit and ghost positions theGame->resetCharacterPositions(); // changes to demo state theGame->state = DEMO; }