Skip to content

Commit

Permalink
make image index non-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinresol committed Apr 27, 2015
1 parent 0493c25 commit d788323
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpg/config/Config.hx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ typedef CharacterData =
typedef ImageData =
{
source:String,
?index:Int,
index:Int,
}

typedef ItemData =
Expand Down
2 changes: 1 addition & 1 deletion samples/flixel/assets/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},

"characters":[
{"name":"Harrison", "image":{"source":"$harrison2.png"}},
{"name":"Harrison", "image":{"source":"$harrison2.png", "index":0}},
{"name":"Pandora", "image":{"source":"4x2_Monster.png", "index":2}}
],

Expand Down

0 comments on commit d788323

Please sign in to comment.