Skip to content

Load quests and buildings from JSON #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

aolson078
Copy link
Owner

Summary

  • add JSON files describing buildings, quests and sidequests
  • create loader helpers that read these files and build game objects
  • load this information in game.py and quests.py

Testing

  • python -m py_compile game.py quests.py businesses.py inventory.py entities.py loaders.py
  • python - <<'EOF' import loaders print('buildings', len(loaders.load_buildings())) import quests print('quests', len(quests.QUESTS)) print('sidequests', len(quests.SIDE_QUESTS)) EOF

https://chatgpt.com/codex/tasks/task_e_688101b596f48326a4caa9a92ab09908

@aolson078 aolson078 merged commit f918c62 into main Jul 24, 2025
@aolson078 aolson078 deleted the codex/create-json-files-for-game-data branch July 25, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant