Skip to content

Commit

Permalink
changed experience to level-xp
Browse files Browse the repository at this point in the history
  • Loading branch information
honzi committed Jul 11, 2024
1 parent b0b87a0 commit 5661157
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion common/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
"collide-range-y": 3,
"collides": true,
"controls": "rpg",
"experience": 0,
"gravity": 1,
"health": 1,
"health-max": 1,
"jump-height": 1,
"level": 0,
"level-xp": 0,
"lives": -1,
"path-direction": 1,
"path-end": "",
Expand Down
8 changes: 4 additions & 4 deletions common/js/webgl.htm
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,6 @@
<td>controls
<td>''
<td>string
<tr>
<td>experience
<td>0
<td>number
<tr>
<td>gravity
<td>0
Expand Down Expand Up @@ -403,6 +399,10 @@
<td>level
<td>-2
<td>number
<tr>
<td>level-xp
<td>0
<td>number
<tr>
<td>lives
<td>-1
Expand Down
8 changes: 4 additions & 4 deletions common/js/webgl_character_init.htm
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@
<td>entities
<td>[]
<td>array of objects
<tr>
<td>experience
<td>0
<td>number
<tr>
<td>gravity
<td>0
Expand All @@ -110,6 +106,10 @@
<td>level
<td>-2
<td>number
<tr>
<td>level-xp
<td>0
<td>number
<tr>
<td>lives
<td>-1
Expand Down
6 changes: 3 additions & 3 deletions common/json.htm
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@
// Optional. Which controls this character will use.
"controls": "rpg",

// Optional. Current character experience.
"experience": 0,

// Optional. Current character gravity multiplier.
"gravity": 1,

Expand All @@ -168,6 +165,9 @@
// -1 means character is just a camera.
"level": 0,

// Optional. Current character experience.
"level-xp": 0,

// Optional. Remaining character lives.
// -1 means character has unlimited lives.
"lives": -1,
Expand Down

0 comments on commit 5661157

Please sign in to comment.