Skip to content

Releases: PraxisMapper/PraxisGodotComponents

Release 3

22 Jun 20:14
Compare
Choose a tag to compare

Changelog:

  • Fixed PlusCodes.GetDirection() erroring due to a typo
  • Added GetFile node and 2 functions to it
    • getCell4File() downloads a zip file for a Cell4 area containing all the cell6 json files for that area
    • getCell6File() downloads only the single json file for the requested cell6 area.
  • Added ScrollingCenteredMap, using full offline data, to present a familiar, top-down view of the world centered on the player's location
  • Added Splat demo to show off ScrollingCenteredMap.

Release 2

16 Jun 16:36
Compare
Choose a tag to compare

Changelog:

  • AreaTracker for minimized data now correctly includes stuff in your current Cell6 when scanning for valid places for missions without a fixed distance
  • CellTracker is now automatic, connecting itself to PraxisCore.plusCode_changed() when added to the tree.
  • FullOfflineTiles: Can now draw a thumbnail of the Cell6 that has its tiles drawn. Suggesting a default scale on this of 0.08, which gives a 540x800 image of the area.
  • FullOfflineTiles: Fixed a bug when trying to reload area data that was already loaded.
  • FullOfflineTiles: Fixed a bug on listing the location of a Point in the scanner.
  • FullAreaScanner now exists. Gets a list of all places in the full drawable data for the Cell6 and category (mapTiles or adminBoundsFilled) given. Returns name, type, and estimated center of each place found. Unlike the minimized version, this doesn't detect child areas at this time.
  • PlusCodes: Added GetDirection(code1, code2) to return the heading from point1 to point2. This is an angle, with 0 == north. This matches the heading returned by PraxisCore.GetCompassHeading()
  • PlusCodes: Added GetDistanceDegrees(code1, code2) to return the distance between 2 PlusCodes, in degrees.
  • ProxyPlay is now available on-device. You can set proxyCode in PraxisCore to a PlusCode and the player will be treated as starting there, and their movements will be applied relative to that position.
  • Styles can now be created that only partially cover the items in the data. EX: If you wanted a style that only draws roads and parks, you could use the tids from mapData for those elements and use that style with the mapData entries to draw them and only them.
  • ScrollingCenteredMap control created. This map will automatically stay centered on the player, and will create tiles from OfflineData if it's present. This is intended to be built on in other games, adding in additional layers of drawable stuff on top of the tiles.
  • DrawSingleTile will now not save the results to file if the scene has AlwaysDrawNewTile set to true. No point in saving the file if you're not gonna use it again.
  • This is now self-contained as it's own demo app, instead of being separate.
    • GPS Test shows available GPS data
    • ProxyPlay/ScrollMap demo treats you like you were in Los Angeles, CA, and translates your movements from where the scene is opened to the in-game position.
    • Styles demo shows off the drawing engine, drawing a single tile on the fly in 3 different styles. Maybe more in the future if there's more to show off?
  • Other improvements

Release 1

29 Apr 17:37
Compare
Choose a tag to compare

Release 1 features the following:

  • Godot 4.2 support
  • Built-in Android GPS plugin (GodotGPSPlugin, another repo of mine)
  • Online and Offline functionality (You will need your own PraxisMapper server running for Online functionality. Offline data is available in another repo)
  • Draw map tiles directly on the device from Offline data.
  • Use minimized data to include huge ranges of playable areas with minimum storage requirements.

Installation:
Download the PraxisMapperGodotComponents.zip file, and extract it to the top level of your Godot project. Under Project/Project Settings/Plugins, check PraxisMapperGPSPlugin. Under Autoload, add a reference to PraxisCore (and PraxisServer, if you're using Online functionality)