Skip to content

Commit

Permalink
added draw-range test level
Browse files Browse the repository at this point in the history
  • Loading branch information
honzi committed Nov 1, 2024
1 parent aec327b commit 6493341
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/common-webgl-levels.htm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<tr>
<td><a href=multiverse/test-death.json>test-death.json</a>
<td>2kb
<tr>
<td><a href=multiverse/test-draw-range.json>test-draw-range.json</a>
<td>3kb
<tr>
<td><a href=multiverse/test-events.json>test-events.json</a>
<td>5kb
Expand Down
92 changes: 92 additions & 0 deletions tests/multiverse/test-draw-range.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"title": "Billboard Test",
"spawn-rotate-x": 20,
"spawn-translate-y": 3,
"spawn-translate-z": 10,
"characters": [
{
"id": "test-billboard",
"entities": [
{
"id": "base",
"texture-id": "grid.png",
"texture-repeat-x": 10,
"texture-repeat-y": 10,
"vertex-colors": [
0.2, 0.2, 0.2, 1
],
"vertices": [
50, 0, -50,
-50, 0, -50,
-50, 0, 50,
50, 0, 50
]
},
{
"id": "entity-0",
"attach-x": -40,
"attach-y": 2,
"attach-z": -40,
"billboard": true,
"collision": false,
"draw-range": 10,
"texture-id": "grid.png",
"vertices": [
2, 2, 0,
-2, 2, 0,
-2, -2, 0,
2, -2, 0
]
},
{
"id": "entity-1",
"attach-x": 40,
"attach-y": 2,
"attach-z": -40,
"billboard": true,
"collision": false,
"draw-range": 20,
"texture-id": "grid.png",
"vertices": [
2, 2, 0,
-2, 2, 0,
-2, -2, 0,
2, -2, 0
]
},
{
"id": "entity-2",
"attach-x": 40,
"attach-y": 2,
"attach-z": 40,
"billboard": true,
"collision": false,
"draw-range": 30,
"texture-id": "grid.png",
"vertices": [
2, 2, 0,
-2, 2, 0,
-2, -2, 0,
2, -2, 0
]
},
{
"id": "entity-3",
"attach-x": -40,
"attach-y": 2,
"attach-z": 40,
"billboard": true,
"collision": false,
"draw-range": 40,
"texture-id": "grid.png",
"vertices": [
2, 2, 0,
-2, 2, 0,
-2, -2, 0,
2, -2, 0
]
}
]
}
]
}

0 comments on commit 6493341

Please sign in to comment.