목록2026/02/21 (2)
발전하는 춘배
[원고, C++/OOP] 로그라이크 게임 만들어보기 10 - 상태 머신
지금 Game.run은 이렇다.void Game::run() { isRunning = true; world->populateMap("map1", 50, 50); player= world->getPlayer(); camera->follow(player->getX(), player->getY(), world->getCurrentMap()->getWidth(), world->getCurrentMap()->getHeight()); while (isRunning) { render(); handleInput(); if (world->isPlayerDead()) { std::cout follow(player->getX(), player->getY(), world->getCurrent..
.원고
2026. 2. 21. 14:57
[원고, C++/OOP] 로그라이크 게임 만들어보기 9 - 아이템과 인벤토리 2 : 엔티티 스탯 시스템, 아이템 데이터화, 데이터 로드, 테스트
이어서 실제 아이템 데이터들을 만들어보자.귀찮아서 gpt한테 만들어달라 했다.[ { "name": "Small Potion", "type": "consumable", "description": "Heals +20 health to the player", "effects": [ { "type": "heal", "value": 20 } ] }, { "name": "Large Potion", "type": "consumable", "description": "Heals +50 health to the player", "effects": [ { "type": "heal", "value": 50 } ] }, { "name": "..
.원고
2026. 2. 21. 12:29
