Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tanis2000/overlap2d-net-runtime
Overlap2D C# runtime
https://github.com/tanis2000/overlap2d-net-runtime
Last synced: 4 days ago
JSON representation
Overlap2D C# runtime
- Host: GitHub
- URL: https://github.com/tanis2000/overlap2d-net-runtime
- Owner: tanis2000
- License: mit
- Created: 2015-11-29T09:55:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-29T10:10:34.000Z (almost 9 years ago)
- Last Synced: 2023-03-11T05:44:46.391Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 1.11 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Overlap2D .NET Runtime
======================This is a simple port of the original Java runtime of Overlap2D.
Using this is as simple as referencing the Overlap2D-Net-Runtime project or including the files of the library.
Deserialization can be done with the usual Newtonsoft's JSON serializer like this:```C#
var serializer = JsonSerializer.Create ();
// If you add the Overlap2D exported object to your Resources folder on Mac use the following:
var s = File.OpenText(NSBundle.MainBundle.PathForResource ("export/scenes/MainScene.dt", null));
// Otherwise you can directly reference the file path:
//var s = File.OpenText ("/Users/tanis/Downloads/overlap2d/examples/OverlapDemo/scenes/MainScene.dt");
// And finally deserialize the JSON to a SceneVO object
var scene = JsonConvert.DeserializeObject(s.ReadToEnd());
```