Skip to content
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

Discrete coordinate system #3

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Discrete coordinate system #3

wants to merge 29 commits into from

Conversation

mika111
Copy link
Owner

@mika111 mika111 commented Oct 1, 2024

No description provided.

mika111 and others added 27 commits September 24, 2024 15:36
ApocalypseEntity holds shared functionality for both zombie and agent and both human and agent embed it
Reorganised package structure to have the apocalypseEntity, human and zombie in separate files. Also moved the Zombie and Human constructors into the server package. This allows us to pass into it the whole server datastructure (instead of just an IExposedServerFunctions interface) allowing us to construct agents with extended functionality.
use proper pattern for inheritance
Note, you need to manually run the game loop (it saves the json as a file) before running the renderer. This is enough for debugging but for visualisation will create a server with real time updates
Also added renderer colour customisation
adjusted renderer due to coordinate system. simulator unit vectors is (up,right) with (0,0) at bottom left and pygame uses (down,right) with (0,0) at top left
the setupEnv package will contain all the functionality for setting up the maze and spawning in units at the start of a simulation. IMO much cleaner to have in a separate package that cluttering up main.

In setupEnv I am currently adding in code which spawns the walls to produce a maze
made coordinate system discrete, added randomized maze spawner with seed
add separate package for maze generator
@MattSScott MattSScott self-requested a review October 2, 2024 14:16
@MattSScott MattSScott assigned MattSScott and unassigned MattSScott Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants