I coded the introduction part of my game.

In this milestone I created necessary files such as Starfall, starfall_spawner,
person, and questioner. I used smaple codes from Retro and adjusted them to suit
my purposes. I am proud of the Questioner file. I was intimidated that I would
drop the ball on the dialogue spawn but after frustrating few tries, I manges to make it look
and spawn as I wanted it to. I am now worried about how to make the starfall_spawner
launch and abort as intended (start after answers then pause once player collects 200 points.)
I learned new skills with how to accept input answers. I was reading up on ways to sort the answers
and I learned about strip and upper functions that help remove spaces and lowercase specifications!
This commit is contained in:
caglazir
2025-12-07 16:43:05 -05:00
parent 7fbf24fa70
commit 0975b52301
11 changed files with 125 additions and 0 deletions

11
starfall_game.py Normal file
View File

@@ -0,0 +1,11 @@
from retro.game import Game
from person import Person
from questioner import Questioner
from starfall_spawner import StarfallSpawner
board_size = (50, 30)
player = Person(board_size)
questioner = Questioner(board_size)
spawner = StarfallSpawner()
game = Game([player, questioner, spawner], {"score": 0, "begin": False}, board_size=board_size)
game.play()