Skip to content

Commit

Permalink
Add version information and schema information
Browse files Browse the repository at this point in the history
  • Loading branch information
aliciaxw authored Apr 17, 2020
1 parent f5ae0f1 commit 3317a8e
Showing 1 changed file with 95 additions and 1 deletion.
96 changes: 95 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,95 @@
## Night-Bite Level Editor
## Night Bite Level Editor

Current version: `pre-beta`

Current board size: `20x10`

## Hotkeys

`r`: rotate
`f`: flip
`e`: eraser

## Level JSON Export
### Schema
```
{
"tiles": { "height": 64, "width": 64, "rows": 12, "columns": 25 },
"grounds": { elements },
"walls": { elements },
"holes": { elements },
"teams": { elements },
"characters": { elements },
"items": { elements },
"decorations": { elements }
}
// All elements follow the same format:
"type_x_y || teamName": {
"x": 0, // tile Xcoordinate
"y": 0, // tile Ycoordinate
"texture": "pathToAsset",
"flip": false, // horizontal flip
"rotate": 0 // Number of clockwise 90 degree rotations from the original texture
}
```
### Example
```
{
"tiles": { "height": 64, "width": 64, "rows": 12, "columns": 25 },
"grounds": {
"ground_11_24": {
"x": 11,
"y": 24,
"texture": "background/ground_64.png",
"flip": false,
"rotate": 0
}
},
"walls": {
"wall_11_11": {
"x": 11,
"y": 11,
"texture": "environment/StallOther1_64.png",
"flip": false,
"rotate": 0
}
},
"holes": {
"hole_7_22": {
"x": 7,
"y": 22,
"texture": "background/hole4_64.png",
"flip": false,
"rotate": 0
}
},
"teams": {
"teamA": {
"x": 0,
"y": 0,
"texture": "environment/StallHome1_64.png",
"flip": false,
"rotate": 0
}
},
"characters": {
"teamA": { "x": 1,
"y": 2,
"texture": "character/P1_64.png",
"flip": false,
"rotate": 0
}
},
"items": {},
"decorations": {
"decoration_9_20": {
"x": 9,
"y": 20,
"texture": "environment/HangingLantern_64.png",
"flip": false,
"rotate": 0
}
}
}
```

0 comments on commit 3317a8e

Please sign in to comment.