Skip to content
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

Update to LDTK 1.5.3 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Loader for [LDtk](https://ldtk.io/) files. Uses Odin's `core:json` to unmarshal
> LDtk is a modern 2D level editor from the creator of Dead Cells,
with a strong focus on user-friendliness.

Current version: `1.3.3`
Current version: `1.5.3`

The data definitions were generated with [JSON scheme and QuickType](https://ldtk.io/docs/game-dev/loading/?menu=1#2-the-quicktype-way) for rust and then manually edited.

Expand Down
2 changes: 1 addition & 1 deletion example/example.odin
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ main :: proc() {

if project, ok := ldtk.load_from_file("foo.ldtk", context.temp_allocator).?; ok {
for level in project.levels {
for layer in level.layer_instances {
for layer in level.layer_instances.? {
switch layer.type {
case .IntGrid:
tile_columns = layer.c_width
Expand Down
Loading