https://github.com/deepnight/heapsogmo
Import Ogmo generated maps to Heaps based projects
https://github.com/deepnight/heapsogmo
Last synced: 4 months ago
JSON representation
Import Ogmo generated maps to Heaps based projects
- Host: GitHub
- URL: https://github.com/deepnight/heapsogmo
- Owner: deepnight
- License: apache-2.0
- Created: 2019-09-26T07:32:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-04T13:50:37.000Z (over 3 years ago)
- Last Synced: 2025-06-19T15:52:07.334Z (12 months ago)
- Language: Haxe
- Homepage: https://lib.haxe.org/p/heapsOgmo/
- Size: 868 KB
- Stars: 17
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
A simple lib to import **Ogmo 3** maps to Heaps projects. It only supports basic stuff, and it's not meant to support 100% of all Ogmo features. If you need all advanced Ogmo features, you can install:
``haxelib install ogmo-3``
See: https://github.com/Ogmo-Editor-3/ogmo-3-lib
# Usage
```haxe
hxd.Res.initEmbed(); // init resources in default sub-folder "./res/"
var ogmoProject = new ogmo.Project( hxd.Res.myOgmoProjectFile );
for( level in ogmoProject.levels )
for( layer in level.layers ) {
var obj = layer.render();
myScene.addChild(obj);
}
```
See `./test/src/Main.hx`.
# Credits
"Inca" tileset by Kronbits: https://kronbits.itch.io/inca-game-assets