-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[WIP] Minimap #344
[WIP] Minimap #344
Conversation
…array that fixes uninitialized pixel array
… dimensions, fixed dynamic minimap placement so view port is correctly displayed
* Fixed check for HD-edition in the drs-mounting function * Fixed dir for string resources * Added missing drs-file mounts for AoC * Conditional path for the test for existance of `emires2_x1_p1.dat` * Added jfeo as author
to choose western point and `auto_mapping` for fitting the resolution to the current terrain. * Fixed error with change in the terrain color attributes (variable names changed) * Changed how references are made to Engine singleton. * Only auto-fit map when terrain is changed (update added to input section)
…ata format changes)
The game_main class should only include pure game state data, so its not the best owner for the minimap, I would suggest looking at main.cpp, line 42-44 the where the are other components, and similarly minimap can be made on the stack (no 'new' constructor), You would need to change the constructor parameters to if the result is not null you will just use |
…n through game object, draw only if game exists
oh the video looks awesome! nice work :D I almost forgot about gaben, and chuckled when he popped in the background 😄 |
If you perform your rebase, you might want to use |
Is there any reason for me to keep the commit history of my own commits, or would it be okay to just squash it all into 1 commit? I think it would be easier for me |
Sure, you can squash them into one if you like. Most of the time my work builds up incrementally so it makes sense keeping the history (e.g. |
Yes, I think I need to use a more structured approach in the future, instead of haphazardly adding everything and commiting :-P I'll just squash everything then. |
@@ -23,7 +23,7 @@ add_sources(libopenage | |||
player.cpp | |||
screenshot.cpp | |||
texture.cpp | |||
|
|||
minimap.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whtitespace
Does this predate the python interface and need to be updated for that approach or is this ready to be built on? Debating using this in referencing issue. |
Hey @boombatower. I'm a bit unsure of what you mean by the python interface. I just pulled from master locally, and it works, so there's that :-) In regards to #11, I suppose it would make sense to perhaps use this as a base (perhaps make it more generic?). |
Used in #559 and integrated in the qt ui. |
Here's my progress on a minimap.
There's probably a lot of style issues, etc. and I need to rebase some commits...
Right now, I think it's an issue that the Minimap registers itself with the engine for drawing, but then is deleted when the game is ended (dangling pointer?)
A good way to draw resources is also needed. Where are the colors/palette indices for them?
Video for those who just want to see what it looks like.
implements and fixes #111