Maniacs Feature - Partially implement command GetGameInfo (3021) #3309
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit partially implements command #3021 from Maniac Patch, which can returns things from screen coordinate/size to screen pixel data.
I've opted to implement most of its features, the reason for these omissions were:
I have implemented the following commands:
0- Get Map Size: returns the width and height of the map;
2- Get Window Info: returns the width and height of the screen;
5- Get Tileset ID: returns the current tileset ID;
6- Get Actor/Message Face: returns the face string/index for either the current message box or an actor. Dynamic toggles between the current or default sprite;
7- Get Actor/Vehicle/Event Body: returns the sprite string/index for either a map event or an actor. Dynamic toggles between the current or default sprite;
8- Get Screen Position: returns the X and Y coordinates of the camera;
9- Get Screen Shake: returns the current shake value of the screen;
10- Get BGM: returns the current BGM string/parameters.
I've made a few tests and it seems to be stable, however it deserves some extra shaking, in case of differing behavior or crashes.