-
Notifications
You must be signed in to change notification settings - Fork 0
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
Loading map info from file. #16
Conversation
Implemented functionality to load info about a map from file. Similar to how virus, tower and wave loads from file.
Added last functionality to load the map from file. Next is to make sure that the info actually is used.
Loading the info into gameboard and player. Also renamed hp to cp since it is named control points.
Also fixed type-o's of the available set.
It seems to work now. Though I still have to test to draw out the environment and see if it can affect gameplay. |
I am going to debug it tomorrow.
I found a bug while adding drawing of environment. |
Added a range so they will not depend on the definition of the map size.
Instead reads everything from file in info/<mapid>. Found interesting bug: When drawing the cursor the right side of the frame is erased. But it only seems to appear when the board is large enough. Issue is created on github.
Now we can load map from file. |
The environment now blocks buildings.
Now all environment states != 0 blocks buildings. |
Where they did not travel their range properly.
They are pretty ugly but thet get the work done.
oob = out of bounds
Fixed bug with direction projectiles not working properly with the variable size of the map. |
After aee9f9f towers can now spawn projectiles when standing along the edges, but projectiles can also hit the edge (resulting in the gfx be there after the projectile is destroyed). This must be fixed! |
I cannot recreate this bug. |
NOT READY!!!
This update will make it possible to load maps from file located in the info directory.
Todo: