Skip to content

Commit c8a69ab

Browse files
author
nils
committed
Expand jump and run gameplay and art
1 parent c376257 commit c8a69ab

14 files changed

Lines changed: 262 additions & 93 deletions

File tree

docs/examples.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ Level data lives in `examples/jump-and-run/assets/levels/levels.json` and is com
146146

147147
Assets:
148148

149-
- World, tile, portal, grass, and sign graphics are adapted from GandalfHardcore FREE Platformer Assets: https://gandalfhardcore.itch.io/free-pixel-art-sidescroller-asset-pack-32x32-overworld
149+
- World, tile, portal, grass, sign, and background graphics are adapted from GandalfHardcore FREE Platformer Assets: https://gandalfhardcore.itch.io/free-pixel-art-sidescroller-asset-pack-32x32-overworld
150150
- Player sprites are adapted from OpenGameArt A platformer in the forest, CC0: https://opengameart.org/content/a-platformer-in-the-forest
151151
- Enemy sprites are adapted from OpenGameArt Bat (32x32), CC0: https://opengameart.org/content/bat-32x32
152+
- Additional enemy sprites are adapted from Kenney Pixel Platformer, CC0: https://kenney.nl/assets/pixel-platformer
152153
- The checked-in sheets are compact runtime assets for this example, not a redistribution of the original ZIP.
153154
- The small example sounds were generated for MiniPixels and are released as CC0 with the example.
3.7 KB
Loading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
3+
Pixel Platformer (1.2)
4+
5+
Created/distributed by Kenney (www.kenney.nl)
6+
Creation date: 07-10-2023
7+
8+
------------------------------
9+
10+
License: (Creative Commons Zero, CC0)
11+
http://creativecommons.org/publicdomain/zero/1.0/
12+
13+
You can use this content for personal, educational, and commercial purposes.
14+
15+
Support by crediting 'Kenney' or 'www.kenney.nl' (this is not a requirement)
16+
17+
------------------------------
18+
19+
• Website : www.kenney.nl
20+
• Donate : www.kenney.nl/donate
21+
22+
• Patreon : patreon.com/kenney
23+
24+
Follow on social media for updates:
25+
26+
• Twitter: twitter.com/KenneyNL
27+
• Instagram: instagram.com/kenney_nl
28+
• Mastodon: mastodon.gamedev.place/@kenney

examples/jump-and-run/assets/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Graphics:
44

5-
- World/tiles source: GandalfHardcore FREE Platformer Assets
5+
- World/tiles/background source: GandalfHardcore FREE Platformer Assets
66
- URL: https://gandalfhardcore.itch.io/free-pixel-art-sidescroller-asset-pack-32x32-overworld
77
- License: see `LICENSE-GANDALFHARDCORE.txt`
88
- Player source: OpenGameArt A platformer in the forest
@@ -11,6 +11,9 @@ Graphics:
1111
- Enemy source: OpenGameArt Bat (32x32)
1212
- URL: https://opengameart.org/content/bat-32x32
1313
- License: Creative Commons Zero, CC0. See `LICENSE-OGA-BAT-32X32.txt`
14+
- Enemy source: Kenney Pixel Platformer
15+
- URL: https://kenney.nl/assets/pixel-platformer
16+
- License: Creative Commons Zero, CC0. See `LICENSE-KENNEY-PIXEL-PLATFORMER.txt`
1417

1518
The checked-in PNGs are compact runtime sprite sheets assembled or adapted for this example so MiniPixels can compile them quickly through generated MiniLang assets. The original ZIP is not redistributed with the repository.
1619

examples/jump-and-run/assets/levels/levels.json

Lines changed: 87 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,120 @@
11
{
22
"levels": [
33
{
4-
"width": 46,
4+
"width": 92,
55
"height": 9,
66
"spawn": { "x": 48, "y": 192 },
7-
"exit": { "x": 1376, "y": 160 },
7+
"exit": { "x": 2848, "y": 160 },
88
"platforms": [
9-
{ "x": 0, "y": 7, "w": 46 },
10-
{ "x": 0, "y": 8, "w": 46 },
11-
{ "x": 5, "y": 5, "w": 6 },
12-
{ "x": 13, "y": 4, "w": 7 },
13-
{ "x": 20, "y": 5, "w": 8 }
9+
{ "x": 0, "y": 7, "w": 92, "tile": 8, "left": 8, "middle": 9, "alt": 10, "right": 11 },
10+
{ "x": 0, "y": 8, "w": 92, "tile": 14, "left": 14, "middle": 15, "alt": 16, "right": 17 },
11+
{ "x": 5, "y": 5, "w": 8, "tile": 8, "left": 8, "middle": 9, "alt": 12, "right": 11 },
12+
{ "x": 16, "y": 4, "w": 6, "tile": 8, "left": 8, "middle": 9, "alt": 10, "right": 11 },
13+
{ "x": 27, "y": 5, "w": 9, "tile": 8, "left": 8, "middle": 9, "alt": 12, "right": 11 },
14+
{ "x": 39, "y": 3, "w": 7, "tile": 8, "left": 8, "middle": 9, "alt": 10, "right": 11 },
15+
{ "x": 51, "y": 5, "w": 8, "tile": 8, "left": 8, "middle": 9, "alt": 12, "right": 11 },
16+
{ "x": 65, "y": 4, "w": 6, "tile": 8, "left": 8, "middle": 9, "alt": 10, "right": 11 },
17+
{ "x": 76, "y": 5, "w": 8, "tile": 8, "left": 8, "middle": 9, "alt": 12, "right": 11 }
1418
],
1519
"enemies": [
16-
{ "x": 360, "y": 192, "minX": 330, "maxX": 490 },
17-
{ "x": 760, "y": 192, "minX": 710, "maxX": 900 }
20+
{ "kind": 1, "x": 360, "y": 192, "minX": 320, "maxX": 520 },
21+
{ "kind": 0, "x": 640, "y": 118, "minX": 580, "maxX": 760 },
22+
{ "kind": 1, "x": 920, "y": 192, "minX": 850, "maxX": 1060 },
23+
{ "kind": 0, "x": 1310, "y": 92, "minX": 1230, "maxX": 1430 },
24+
{ "kind": 1, "x": 1780, "y": 192, "minX": 1680, "maxX": 1900 },
25+
{ "kind": 0, "x": 2330, "y": 118, "minX": 2240, "maxX": 2460 }
1826
],
1927
"coins": [
20-
{ "x": 210, "y": 124 },
21-
{ "x": 455, "y": 92 },
22-
{ "x": 720, "y": 124 },
23-
{ "x": 910, "y": 124 },
24-
{ "x": 1322, "y": 124 }
28+
{ "x": 214, "y": 124 }, { "x": 270, "y": 124 }, { "x": 326, "y": 124 },
29+
{ "x": 530, "y": 92 }, { "x": 594, "y": 92 },
30+
{ "x": 878, "y": 124 }, { "x": 942, "y": 124 }, { "x": 1006, "y": 124 },
31+
{ "x": 1288, "y": 60 }, { "x": 1352, "y": 60 },
32+
{ "x": 1660, "y": 124 }, { "x": 1724, "y": 124 }, { "x": 1788, "y": 124 },
33+
{ "x": 2110, "y": 92 }, { "x": 2174, "y": 92 },
34+
{ "x": 2500, "y": 124 }, { "x": 2564, "y": 124 }
2535
]
2636
},
2737
{
28-
"width": 54,
38+
"width": 112,
2939
"height": 9,
3040
"spawn": { "x": 48, "y": 192 },
31-
"exit": { "x": 1632, "y": 160 },
41+
"exit": { "x": 3488, "y": 160 },
3242
"platforms": [
33-
{ "x": 0, "y": 7, "w": 54 },
34-
{ "x": 0, "y": 8, "w": 54 },
35-
{ "x": 5, "y": 5, "w": 6 },
36-
{ "x": 14, "y": 4, "w": 6 },
37-
{ "x": 24, "y": 3, "w": 5 },
38-
{ "x": 33, "y": 5, "w": 8 },
39-
{ "x": 45, "y": 4, "w": 7 }
43+
{ "x": 0, "y": 7, "w": 112, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
44+
{ "x": 0, "y": 8, "w": 112, "tile": 14, "left": 14, "middle": 15, "alt": 16, "right": 17 },
45+
{ "x": 6, "y": 5, "w": 7, "tile": 18, "left": 18, "middle": 19, "alt": 22, "right": 21 },
46+
{ "x": 17, "y": 4, "w": 6, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
47+
{ "x": 28, "y": 3, "w": 5, "tile": 18, "left": 18, "middle": 19, "alt": 22, "right": 21 },
48+
{ "x": 39, "y": 5, "w": 9, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
49+
{ "x": 53, "y": 4, "w": 7, "tile": 18, "left": 18, "middle": 19, "alt": 22, "right": 21 },
50+
{ "x": 66, "y": 3, "w": 6, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
51+
{ "x": 78, "y": 5, "w": 8, "tile": 18, "left": 18, "middle": 19, "alt": 22, "right": 21 },
52+
{ "x": 92, "y": 4, "w": 9, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 }
4053
],
4154
"enemies": [
42-
{ "x": 360, "y": 192, "minX": 330, "maxX": 490 },
43-
{ "x": 760, "y": 192, "minX": 710, "maxX": 900 },
44-
{ "x": 1080, "y": 128, "minX": 1030, "maxX": 1210 }
55+
{ "kind": 1, "x": 380, "y": 192, "minX": 320, "maxX": 540 },
56+
{ "kind": 0, "x": 610, "y": 114, "minX": 560, "maxX": 760 },
57+
{ "kind": 1, "x": 930, "y": 192, "minX": 840, "maxX": 1110 },
58+
{ "kind": 1, "x": 1260, "y": 128, "minX": 1210, "maxX": 1480 },
59+
{ "kind": 0, "x": 1670, "y": 88, "minX": 1580, "maxX": 1800 },
60+
{ "kind": 1, "x": 2020, "y": 192, "minX": 1910, "maxX": 2210 },
61+
{ "kind": 0, "x": 2470, "y": 118, "minX": 2390, "maxX": 2630 },
62+
{ "kind": 1, "x": 2950, "y": 192, "minX": 2820, "maxX": 3100 }
4563
],
4664
"coins": [
47-
{ "x": 210, "y": 124 },
48-
{ "x": 455, "y": 92 },
49-
{ "x": 720, "y": 124 },
50-
{ "x": 910, "y": 124 },
51-
{ "x": 1578, "y": 124 },
52-
{ "x": 1160, "y": 92 }
65+
{ "x": 220, "y": 124 }, { "x": 284, "y": 124 }, { "x": 348, "y": 124 },
66+
{ "x": 570, "y": 92 }, { "x": 634, "y": 92 }, { "x": 698, "y": 92 },
67+
{ "x": 918, "y": 60 }, { "x": 982, "y": 60 },
68+
{ "x": 1288, "y": 124 }, { "x": 1352, "y": 124 }, { "x": 1416, "y": 124 },
69+
{ "x": 1710, "y": 92 }, { "x": 1774, "y": 92 },
70+
{ "x": 2120, "y": 60 }, { "x": 2184, "y": 60 },
71+
{ "x": 2532, "y": 124 }, { "x": 2596, "y": 124 }, { "x": 2660, "y": 124 },
72+
{ "x": 3028, "y": 92 }, { "x": 3092, "y": 92 },
73+
{ "x": 3416, "y": 124 }
5374
]
5475
},
5576
{
56-
"width": 62,
77+
"width": 132,
5778
"height": 9,
5879
"spawn": { "x": 48, "y": 192 },
59-
"exit": { "x": 1888, "y": 160 },
80+
"exit": { "x": 4128, "y": 160 },
6081
"platforms": [
61-
{ "x": 0, "y": 7, "w": 62 },
62-
{ "x": 0, "y": 8, "w": 62 },
63-
{ "x": 4, "y": 5, "w": 5 },
64-
{ "x": 12, "y": 4, "w": 6 },
65-
{ "x": 22, "y": 3, "w": 6 },
66-
{ "x": 32, "y": 5, "w": 7 },
67-
{ "x": 42, "y": 4, "w": 7 },
68-
{ "x": 53, "y": 5, "w": 9 }
82+
{ "x": 0, "y": 7, "w": 132, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
83+
{ "x": 0, "y": 8, "w": 132, "tile": 14, "left": 14, "middle": 15, "alt": 16, "right": 17 },
84+
{ "x": 5, "y": 5, "w": 7, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
85+
{ "x": 16, "y": 4, "w": 6, "tile": 18, "left": 18, "middle": 19, "alt": 22, "right": 21 },
86+
{ "x": 26, "y": 3, "w": 7, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
87+
{ "x": 39, "y": 5, "w": 8, "tile": 18, "left": 18, "middle": 19, "alt": 22, "right": 21 },
88+
{ "x": 51, "y": 4, "w": 7, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
89+
{ "x": 64, "y": 3, "w": 7, "tile": 18, "left": 18, "middle": 19, "alt": 22, "right": 21 },
90+
{ "x": 78, "y": 5, "w": 8, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 },
91+
{ "x": 93, "y": 4, "w": 7, "tile": 18, "left": 18, "middle": 19, "alt": 22, "right": 21 },
92+
{ "x": 108, "y": 5, "w": 10, "tile": 18, "left": 18, "middle": 19, "alt": 20, "right": 21 }
6993
],
7094
"enemies": [
71-
{ "x": 360, "y": 192, "minX": 330, "maxX": 490 },
72-
{ "x": 760, "y": 192, "minX": 710, "maxX": 900 },
73-
{ "x": 1080, "y": 128, "minX": 1030, "maxX": 1210 },
74-
{ "x": 1370, "y": 192, "minX": 1310, "maxX": 1510 }
95+
{ "kind": 1, "x": 360, "y": 192, "minX": 320, "maxX": 560 },
96+
{ "kind": 0, "x": 610, "y": 112, "minX": 540, "maxX": 760 },
97+
{ "kind": 1, "x": 880, "y": 96, "minX": 830, "maxX": 1030 },
98+
{ "kind": 1, "x": 1250, "y": 192, "minX": 1160, "maxX": 1420 },
99+
{ "kind": 0, "x": 1640, "y": 82, "minX": 1540, "maxX": 1780 },
100+
{ "kind": 1, "x": 2040, "y": 128, "minX": 1980, "maxX": 2240 },
101+
{ "kind": 1, "x": 2510, "y": 192, "minX": 2390, "maxX": 2690 },
102+
{ "kind": 0, "x": 2930, "y": 118, "minX": 2830, "maxX": 3100 },
103+
{ "kind": 1, "x": 3400, "y": 192, "minX": 3300, "maxX": 3580 },
104+
{ "kind": 0, "x": 3780, "y": 112, "minX": 3680, "maxX": 3950 }
75105
],
76106
"coins": [
77-
{ "x": 210, "y": 124 },
78-
{ "x": 455, "y": 92 },
79-
{ "x": 720, "y": 124 },
80-
{ "x": 910, "y": 124 },
81-
{ "x": 1834, "y": 124 },
82-
{ "x": 1160, "y": 92 },
83-
{ "x": 1480, "y": 124 }
107+
{ "x": 214, "y": 124 }, { "x": 278, "y": 124 }, { "x": 342, "y": 124 },
108+
{ "x": 550, "y": 92 }, { "x": 614, "y": 92 }, { "x": 678, "y": 92 },
109+
{ "x": 870, "y": 60 }, { "x": 934, "y": 60 }, { "x": 998, "y": 60 },
110+
{ "x": 1280, "y": 124 }, { "x": 1344, "y": 124 }, { "x": 1408, "y": 124 },
111+
{ "x": 1684, "y": 92 }, { "x": 1748, "y": 92 },
112+
{ "x": 2078, "y": 60 }, { "x": 2142, "y": 60 }, { "x": 2206, "y": 60 },
113+
{ "x": 2540, "y": 124 }, { "x": 2604, "y": 124 }, { "x": 2668, "y": 124 },
114+
{ "x": 2980, "y": 92 }, { "x": 3044, "y": 92 },
115+
{ "x": 3470, "y": 124 }, { "x": 3534, "y": 124 }, { "x": 3598, "y": 124 },
116+
{ "x": 3890, "y": 92 }, { "x": 3954, "y": 92 },
117+
{ "x": 4064, "y": 124 }
84118
]
85119
}
86120
]
379 Bytes
Loading
3.56 KB
Loading
2.64 KB
Loading

examples/jump-and-run/minipixels.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@
4343
"spacing": 0,
4444
"margin": 0
4545
}
46+
},
47+
{
48+
"id": "backgrounds",
49+
"type": "image",
50+
"path": "assets/tiles/backgrounds.png",
51+
"sheet": {
52+
"frameWidth": 40,
53+
"frameHeight": 23,
54+
"spacing": 0,
55+
"margin": 0
56+
}
4657
}
4758
]
4859
}

0 commit comments

Comments
 (0)