@origingame/create-game 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -9
- package/archetypes/README.md +5 -2
- package/archetypes/arena/.origin/setup +14 -0
- package/archetypes/arena/LICENSES.md +8 -0
- package/archetypes/arena/README.md +67 -0
- package/archetypes/arena/assets/audio/coin.ogt +9 -0
- package/archetypes/arena/assets/audio/dash.ogt +9 -0
- package/archetypes/arena/assets/audio/win.ogt +9 -0
- package/archetypes/arena/assets/fx/coin.ogt +20 -0
- package/archetypes/arena/assets/looks/arena.ogt +10 -0
- package/archetypes/arena/gitattributes +22 -0
- package/archetypes/arena/gitignore +8 -0
- package/archetypes/arena/host.d.ts +46 -0
- package/archetypes/arena/package.json +18 -0
- package/archetypes/arena/project.ogt +14 -0
- package/archetypes/arena/src/game.ts +314 -0
- package/archetypes/arena/src/main.ts +100 -0
- package/archetypes/arena/tests/duel.og.ts +32 -0
- package/archetypes/arena/tests/solo.og.ts +22 -0
- package/archetypes/arena/tsconfig.json +17 -0
- package/archetypes/idle/LICENSES.md +1 -1
- package/archetypes/idle/README.md +3 -3
- package/archetypes/idle/assets/looks/idle.ogt +1 -1
- package/archetypes/idle/assets/{skins → styles}/sparkorb/LICENSES.md +4 -4
- package/archetypes/idle/assets/{skins/sparkorb/skin.ogt → styles/sparkorb/style.ogt} +47 -47
- package/archetypes/idle/package.json +1 -1
- package/archetypes/idle/project.ogt +1 -1
- package/archetypes/idle/references/metal/card.png +0 -0
- package/archetypes/idle/references/metal/orbit.png +0 -0
- package/archetypes/idle/references/metal/title.png +0 -0
- package/archetypes/idle/src/main.ts +2 -2
- package/archetypes/idle/src/ui.ts +11 -11
- package/archetypes/idle/tools/make-assets.py +4 -4
- package/archetypes/match3/package.json +1 -1
- package/archetypes/match3/project.ogt +1 -1
- package/archetypes/rhythm/LICENSES.md +1 -1
- package/archetypes/rhythm/README.md +3 -3
- package/archetypes/rhythm/assets/{skins → styles}/lanebeat/LICENSES.md +4 -4
- package/archetypes/rhythm/assets/{skins/lanebeat/skin.ogt → styles/lanebeat/style.ogt} +45 -45
- package/archetypes/rhythm/package.json +1 -1
- package/archetypes/rhythm/project.ogt +1 -1
- package/archetypes/rhythm/references/metal/results.png +0 -0
- package/archetypes/rhythm/references/metal/title.png +0 -0
- package/archetypes/rhythm/src/main.ts +2 -2
- package/archetypes/rhythm/src/ui.ts +11 -11
- package/archetypes/roguelike/LICENSES.md +1 -1
- package/archetypes/roguelike/README.md +3 -3
- package/archetypes/roguelike/assets/{skins → styles}/lampdive/LICENSES.md +4 -4
- package/archetypes/roguelike/assets/{skins/lampdive/skin.ogt → styles/lampdive/style.ogt} +41 -41
- package/archetypes/roguelike/package.json +1 -1
- package/archetypes/roguelike/project.ogt +1 -1
- package/archetypes/roguelike/references/metal/over.png +0 -0
- package/archetypes/roguelike/references/metal/title.png +0 -0
- package/archetypes/roguelike/src/main.ts +2 -2
- package/archetypes/roguelike/src/ui.ts +7 -7
- package/archetypes/runner/package.json +1 -1
- package/archetypes/runner/project.ogt +1 -1
- package/archetypes/third-person/LICENSES.md +1 -1
- package/archetypes/third-person/README.md +3 -3
- package/archetypes/third-person/assets/{skins → styles}/ember/LICENSES.md +2 -2
- package/archetypes/third-person/assets/{skins/ember/skin.ogt → styles/ember/style.ogt} +40 -41
- package/archetypes/third-person/package.json +1 -1
- package/archetypes/third-person/project.ogt +1 -1
- package/archetypes/third-person/references/metal/beacon.png +0 -0
- package/archetypes/third-person/references/metal/dawn.png +0 -0
- package/archetypes/third-person/references/metal/title.png +0 -0
- package/archetypes/third-person/references/webgl2/beacon.png +0 -0
- package/archetypes/third-person/src/main.ts +2 -2
- package/archetypes/third-person/src/ui.ts +10 -10
- package/archetypes/topdown/package.json +1 -1
- package/archetypes/topdown/project.ogt +1 -1
- package/archetypes/tower-defense/LICENSES.md +1 -1
- package/archetypes/tower-defense/README.md +5 -5
- package/archetypes/tower-defense/assets/{skins → styles}/pathguard/LICENSES.md +4 -4
- package/archetypes/tower-defense/assets/styles/pathguard/atlas.png +0 -0
- package/archetypes/tower-defense/assets/styles/pathguard/style.ogt +111 -0
- package/archetypes/tower-defense/package.json +1 -1
- package/archetypes/tower-defense/project.ogt +1 -1
- package/archetypes/tower-defense/references/metal/end.png +0 -0
- package/archetypes/tower-defense/references/metal/title.png +0 -0
- package/archetypes/tower-defense/references/metal/wave.png +0 -0
- package/archetypes/tower-defense/src/main.ts +2 -2
- package/archetypes/tower-defense/src/ui.ts +19 -17
- package/bin/create.ts +80 -20
- package/looks/catalogue.json +40 -40
- package/package.json +5 -4
- package/template/README.md +2 -1
- package/template/assets/audio/sting.ogt +10 -0
- package/template/assets/timelines/intro.ogt +101 -0
- package/template/assets/timelines/narration.srt +11 -0
- package/template/host.d.ts +46 -0
- package/template/package.json +1 -1
- package/template/project.ogt +1 -1
- package/template/references/metal/intro-4.png +0 -0
- package/template/references/metal/intro-8.png +0 -0
- package/template/src/main.ts +1 -1
- package/template/tests/frames.ts +134 -0
- package/template/tests/intro.og.ts +65 -0
- package/template/tests/smoke.og.ts +30 -36
- package/template/tsconfig.json +1 -1
- package/template-2d/.origin/setup +14 -0
- package/template-2d/LICENSES.md +15 -0
- package/template-2d/README.md +42 -0
- package/template-2d/assets/audio/coin.wav +0 -0
- package/template-2d/assets/audio/jump.wav +0 -0
- package/template-2d/assets/fonts/OFL.txt +93 -0
- package/template-2d/assets/fonts/ui.ttf +0 -0
- package/template-2d/assets/fonts/ui.ttf.ogt +11 -0
- package/template-2d/assets/looks/origin-game-2d.ogt +12 -0
- package/template-2d/assets/maps/level.ogt +112 -0
- package/template-2d/assets/rigs/keeper.ogt +292 -0
- package/template-2d/assets/rigs/keeper.png +0 -0
- package/template-2d/assets/rigs/keeper.png.ogt +7 -0
- package/template-2d/assets/sprites/coin.ogt +11 -0
- package/template-2d/assets/sprites/coin.png +0 -0
- package/template-2d/assets/sprites/coin.png.ogt +7 -0
- package/template-2d/assets/sprites/courier.ogt +34 -0
- package/template-2d/assets/sprites/courier.png +0 -0
- package/template-2d/assets/sprites/courier.png.ogt +7 -0
- package/template-2d/assets/strings/en.ogt +11 -0
- package/template-2d/assets/tiles/city.ogt +17 -0
- package/template-2d/assets/tiles/city.png +0 -0
- package/template-2d/assets/tiles/city.png.ogt +7 -0
- package/template-2d/gitattributes +22 -0
- package/template-2d/gitignore +8 -0
- package/template-2d/package.json +18 -0
- package/template-2d/project.ogt +21 -0
- package/template-2d/src/main.ts +460 -0
- package/template-2d/tests/keeper.og.ts +93 -0
- package/template-2d/tests/smoke.og.ts +60 -0
- package/template-2d/tsconfig.json +17 -0
- package/archetypes/tower-defense/assets/skins/pathguard/atlas.png +0 -0
- package/archetypes/tower-defense/assets/skins/pathguard/skin.ogt +0 -111
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/ChakraPetch-BoldItalic.ttf +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/ChakraPetch-BoldItalic.ttf.ogt +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/OFL.txt +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/Orbitron-Medium.ttf +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/Orbitron-Medium.ttf.ogt +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/Rajdhani-Bold.ttf +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/Rajdhani-Bold.ttf.ogt +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/atlas.png +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/atlas.png.ogt +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/icons.png +0 -0
- /package/archetypes/idle/assets/{skins → styles}/sparkorb/icons.png.ogt +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/ChakraPetch-Medium.ttf +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/ChakraPetch-Medium.ttf.ogt +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/JetBrainsMono-Regular.ttf +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/JetBrainsMono-Regular.ttf.ogt +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/OFL.txt +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/Orbitron-Bold.ttf +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/Orbitron-Bold.ttf.ogt +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/atlas.png +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/atlas.png.ogt +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/icons.png +0 -0
- /package/archetypes/rhythm/assets/{skins → styles}/lanebeat/icons.png.ogt +0 -0
- /package/archetypes/roguelike/assets/{skins → styles}/lampdive/DotGothic16-Regular.ttf +0 -0
- /package/archetypes/roguelike/assets/{skins → styles}/lampdive/DotGothic16-Regular.ttf.ogt +0 -0
- /package/archetypes/roguelike/assets/{skins → styles}/lampdive/OFL.txt +0 -0
- /package/archetypes/roguelike/assets/{skins → styles}/lampdive/atlas.png +0 -0
- /package/archetypes/roguelike/assets/{skins → styles}/lampdive/atlas.png.ogt +0 -0
- /package/archetypes/roguelike/assets/{skins → styles}/lampdive/icons.png +0 -0
- /package/archetypes/roguelike/assets/{skins → styles}/lampdive/icons.png.ogt +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/Cinzel-Bold.ttf +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/Cinzel-Bold.ttf.ogt +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/Newsreader-Medium.ttf +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/Newsreader-Medium.ttf.ogt +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/OFL.txt +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/atlas.png +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/atlas.png.ogt +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/icons.png +0 -0
- /package/archetypes/third-person/assets/{skins → styles}/ember/icons.png.ogt +0 -0
- /package/archetypes/tower-defense/assets/{skins → styles}/pathguard/Fredoka-SemiBold.ttf +0 -0
- /package/archetypes/tower-defense/assets/{skins → styles}/pathguard/Fredoka-SemiBold.ttf.ogt +0 -0
- /package/archetypes/tower-defense/assets/{skins → styles}/pathguard/LilitaOne-Regular.ttf +0 -0
- /package/archetypes/tower-defense/assets/{skins → styles}/pathguard/LilitaOne-Regular.ttf.ogt +0 -0
- /package/archetypes/tower-defense/assets/{skins → styles}/pathguard/OFL.txt +0 -0
- /package/archetypes/tower-defense/assets/{skins → styles}/pathguard/atlas.png.ogt +0 -0
- /package/archetypes/tower-defense/assets/{skins → styles}/pathguard/icons.png +0 -0
- /package/archetypes/tower-defense/assets/{skins → styles}/pathguard/icons.png.ogt +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type import
|
|
2
|
+
version 1
|
|
3
|
+
---
|
|
4
|
+
# The HUD's font: Noto Sans SC Regular subset to Latin-1 (the runner
|
|
5
|
+
# archetype's assets/fonts/ui.ttf). A language with other characters needs
|
|
6
|
+
# a font that holds them (og-i18n §2).
|
|
7
|
+
font {
|
|
8
|
+
charset latin
|
|
9
|
+
em_px 48
|
|
10
|
+
px_range 6
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type look
|
|
2
|
+
version 1
|
|
3
|
+
---
|
|
4
|
+
# The game's look (og-taste §12): the frame's art direction as data, named
|
|
5
|
+
# by GameDesc.look in src/main.ts and applied before start runs. It starts
|
|
6
|
+
# from the catalogue's 16bit-pixel preset (a 224-pixel-tall frame, eight-tone
|
|
7
|
+
# ramps, a Bayer dither: the camera's 14 units are 16 pixels each, one per
|
|
8
|
+
# texel of the tiles); a block written below wins over the preset field by
|
|
9
|
+
# field, and `extends` takes any catalogue slug. `npm create @origingame/game`
|
|
10
|
+
# writes the game's own look from its premise, or from --look <slug>.
|
|
11
|
+
name "Origin Game 2D"
|
|
12
|
+
extends "16bit-pixel"
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
type tilemap
|
|
2
|
+
version 1
|
|
3
|
+
---
|
|
4
|
+
# The level (og-game §8's grammar): 48 x 14 cells of 16 px, one world unit
|
|
5
|
+
# each, over the city tileset. The roofs collide on og.Tilemap.colliderLayers
|
|
6
|
+
# (1); the ledges name their own collider layer (2), which the courier's
|
|
7
|
+
# og.PlatformerController.oneWayLayers makes one-way: it jumps up through
|
|
8
|
+
# them and lands on top, and Down drops it through.
|
|
9
|
+
size 48 14
|
|
10
|
+
tile 16 16
|
|
11
|
+
unit 1
|
|
12
|
+
tileset "tiles/city.ogt"
|
|
13
|
+
layer skyline {
|
|
14
|
+
z -2
|
|
15
|
+
parallax 0.5 1
|
|
16
|
+
repeat x
|
|
17
|
+
legend "^" 6
|
|
18
|
+
legend "f" 4
|
|
19
|
+
legend "w" 5
|
|
20
|
+
row "................................................"
|
|
21
|
+
row "................................................"
|
|
22
|
+
row "................................................"
|
|
23
|
+
row "...........................^^^^^^^.............."
|
|
24
|
+
row ".....^^^^^^................fffffff...........^^^"
|
|
25
|
+
row ".....ffffff.....^^^^^......fwfwfwf.....^^^^^.fff"
|
|
26
|
+
row "^^^^.fwfwff.....fffff.^^^^.fffffff.....fffff.fwf"
|
|
27
|
+
row "ffff.ffffff.^^^.fwfwf.ffff.fwfwfwf.^^^.fwfwf.fff"
|
|
28
|
+
row "fwff.fwfwff.fff.fffff.fwff.fffffff.fff.fffff.fwf"
|
|
29
|
+
row "ffff.ffffff.fwf.fwfwf.ffff.fwfwfwf.fwf.fwfwf.fff"
|
|
30
|
+
row "fwff.fwfwff.fff.fffff.fwff.fffffff.fff.fffff.fwf"
|
|
31
|
+
row "ffff.ffffff.fwf.fwfwf.ffff.fwfwfwf.fwf.fwfwf.fff"
|
|
32
|
+
row "fwff.fwfwff.fff.fffff.fwff.fffffff.fff.fffff.fwf"
|
|
33
|
+
row "ffff.ffffff.fwf.fwfwf.ffff.fwfwfwf.fwf.fwfwf.fff"
|
|
34
|
+
}
|
|
35
|
+
layer roofs {
|
|
36
|
+
z 0
|
|
37
|
+
collision true
|
|
38
|
+
legend "=" 0
|
|
39
|
+
legend "b" 1
|
|
40
|
+
legend "L" 2
|
|
41
|
+
legend "D" 3
|
|
42
|
+
row "b..............................................b"
|
|
43
|
+
row "b..............................................b"
|
|
44
|
+
row "D..............................................D"
|
|
45
|
+
row "b..............................................b"
|
|
46
|
+
row "b..............................................b"
|
|
47
|
+
row "b..............................................b"
|
|
48
|
+
row "b..............................................b"
|
|
49
|
+
row "D..............................................D"
|
|
50
|
+
row "b..............................................b"
|
|
51
|
+
row "b..............................................b"
|
|
52
|
+
row "b.............................======...........b"
|
|
53
|
+
row "b.............................bbLbbb...........b"
|
|
54
|
+
row "====================...========================="
|
|
55
|
+
row "bbbLbbDbbbLbbbbbbLbb...bLbbbDbbLbbbbbbLDbbbbbLbb"
|
|
56
|
+
}
|
|
57
|
+
layer ledges {
|
|
58
|
+
z 0
|
|
59
|
+
collision true
|
|
60
|
+
colliderLayers 2
|
|
61
|
+
legend "=" 0
|
|
62
|
+
row "................................................"
|
|
63
|
+
row "................................................"
|
|
64
|
+
row "................................................"
|
|
65
|
+
row "................................................"
|
|
66
|
+
row "................................................"
|
|
67
|
+
row "................................................"
|
|
68
|
+
row ".......................=====...................."
|
|
69
|
+
row "................................................"
|
|
70
|
+
row "................................................"
|
|
71
|
+
row "...........=====................................"
|
|
72
|
+
row "................................................"
|
|
73
|
+
row "................................................"
|
|
74
|
+
row "................................................"
|
|
75
|
+
row "................................................"
|
|
76
|
+
}
|
|
77
|
+
object spawn {
|
|
78
|
+
kind "spawn"
|
|
79
|
+
at 2.5 12
|
|
80
|
+
}
|
|
81
|
+
object coin-0 {
|
|
82
|
+
kind "coin"
|
|
83
|
+
at 6.5 11.2
|
|
84
|
+
}
|
|
85
|
+
object coin-1 {
|
|
86
|
+
kind "coin"
|
|
87
|
+
at 9.5 11.2
|
|
88
|
+
}
|
|
89
|
+
object coin-2 {
|
|
90
|
+
kind "coin"
|
|
91
|
+
at 13.5 8.2
|
|
92
|
+
}
|
|
93
|
+
object coin-3 {
|
|
94
|
+
kind "coin"
|
|
95
|
+
at 21.5 9.5
|
|
96
|
+
}
|
|
97
|
+
object coin-4 {
|
|
98
|
+
kind "coin"
|
|
99
|
+
at 25.5 5.2
|
|
100
|
+
}
|
|
101
|
+
object coin-5 {
|
|
102
|
+
kind "coin"
|
|
103
|
+
at 32.5 9.2
|
|
104
|
+
}
|
|
105
|
+
object coin-6 {
|
|
106
|
+
kind "coin"
|
|
107
|
+
at 40.5 11.2
|
|
108
|
+
}
|
|
109
|
+
object goal {
|
|
110
|
+
kind "goal"
|
|
111
|
+
rect 45 10 1 2
|
|
112
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
type rig2d
|
|
2
|
+
version 1
|
|
3
|
+
---
|
|
4
|
+
# The lamp keeper (templates/game-2d): a 2D rig drawn as textured triangles.
|
|
5
|
+
# Bones are pixels with +y up, unit 20 pixels to a world unit; the legs are
|
|
6
|
+
# two-bone IK chains planted on the ramp by og.IkTarget2D (src/main.ts, Plant),
|
|
7
|
+
# the cape a weighted mesh over the hip and two cape bones, fluttered by the
|
|
8
|
+
# idle clip's deform keys. The walk clip bobs the hip on Bézier keys, swings
|
|
9
|
+
# the arm and trails the cape; its "step" events mark each foot's contact,
|
|
10
|
+
# and src/main.ts's Plant moves the feet's IK targets in step with it (a
|
|
11
|
+
# 0.8 s cycle of a 0.4 m stride: the keeper walks 0.5 m/s). Written by hand
|
|
12
|
+
# (og-game §8, the rig2d grammar).
|
|
13
|
+
texture "keeper.png"
|
|
14
|
+
filter nearest
|
|
15
|
+
unit 20
|
|
16
|
+
bone root {
|
|
17
|
+
}
|
|
18
|
+
bone hip {
|
|
19
|
+
parent root
|
|
20
|
+
at 0 22
|
|
21
|
+
rotation 90
|
|
22
|
+
length 16
|
|
23
|
+
}
|
|
24
|
+
bone head {
|
|
25
|
+
parent hip
|
|
26
|
+
at 16 0
|
|
27
|
+
rotation -90
|
|
28
|
+
}
|
|
29
|
+
bone arm {
|
|
30
|
+
parent hip
|
|
31
|
+
at 14 -5
|
|
32
|
+
rotation 180
|
|
33
|
+
length 13
|
|
34
|
+
}
|
|
35
|
+
bone thigh-b {
|
|
36
|
+
parent hip
|
|
37
|
+
at 0 2
|
|
38
|
+
rotation 180
|
|
39
|
+
length 11
|
|
40
|
+
}
|
|
41
|
+
bone shin-b {
|
|
42
|
+
parent thigh-b
|
|
43
|
+
at 11 0
|
|
44
|
+
length 11
|
|
45
|
+
}
|
|
46
|
+
bone thigh-f {
|
|
47
|
+
parent hip
|
|
48
|
+
at 0 -2
|
|
49
|
+
rotation 180
|
|
50
|
+
length 11
|
|
51
|
+
}
|
|
52
|
+
bone shin-f {
|
|
53
|
+
parent thigh-f
|
|
54
|
+
at 11 0
|
|
55
|
+
length 11
|
|
56
|
+
}
|
|
57
|
+
bone cape-1 {
|
|
58
|
+
parent hip
|
|
59
|
+
at 15 4
|
|
60
|
+
rotation 180
|
|
61
|
+
length 12
|
|
62
|
+
}
|
|
63
|
+
bone cape-2 {
|
|
64
|
+
parent cape-1
|
|
65
|
+
at 12 0
|
|
66
|
+
length 12
|
|
67
|
+
}
|
|
68
|
+
bone foot-b {
|
|
69
|
+
parent root
|
|
70
|
+
at -3 0
|
|
71
|
+
}
|
|
72
|
+
bone foot-f {
|
|
73
|
+
parent root
|
|
74
|
+
at 3 0
|
|
75
|
+
}
|
|
76
|
+
slot cape {
|
|
77
|
+
bone hip
|
|
78
|
+
attachment cape
|
|
79
|
+
}
|
|
80
|
+
slot thigh-b {
|
|
81
|
+
bone thigh-b
|
|
82
|
+
attachment thigh-b
|
|
83
|
+
color 0.72 0.72 0.8 1
|
|
84
|
+
}
|
|
85
|
+
slot shin-b {
|
|
86
|
+
bone shin-b
|
|
87
|
+
attachment shin-b
|
|
88
|
+
color 0.72 0.72 0.8 1
|
|
89
|
+
}
|
|
90
|
+
slot boot-b {
|
|
91
|
+
bone shin-b
|
|
92
|
+
attachment boot-b
|
|
93
|
+
color 0.72 0.72 0.8 1
|
|
94
|
+
}
|
|
95
|
+
slot torso {
|
|
96
|
+
bone hip
|
|
97
|
+
attachment torso
|
|
98
|
+
}
|
|
99
|
+
slot thigh-f {
|
|
100
|
+
bone thigh-f
|
|
101
|
+
attachment thigh-f
|
|
102
|
+
}
|
|
103
|
+
slot shin-f {
|
|
104
|
+
bone shin-f
|
|
105
|
+
attachment shin-f
|
|
106
|
+
}
|
|
107
|
+
slot boot-f {
|
|
108
|
+
bone shin-f
|
|
109
|
+
attachment boot-f
|
|
110
|
+
}
|
|
111
|
+
slot head {
|
|
112
|
+
bone head
|
|
113
|
+
attachment head
|
|
114
|
+
}
|
|
115
|
+
slot arm {
|
|
116
|
+
bone arm
|
|
117
|
+
attachment arm
|
|
118
|
+
}
|
|
119
|
+
slot lantern {
|
|
120
|
+
bone arm
|
|
121
|
+
attachment lantern
|
|
122
|
+
}
|
|
123
|
+
region torso {
|
|
124
|
+
slot torso
|
|
125
|
+
rect 0 0 12 20
|
|
126
|
+
at 8 0
|
|
127
|
+
rotation -90
|
|
128
|
+
size 12 20
|
|
129
|
+
}
|
|
130
|
+
region head {
|
|
131
|
+
slot head
|
|
132
|
+
rect 15 0 14 12
|
|
133
|
+
at 0 5
|
|
134
|
+
rotation 0
|
|
135
|
+
size 14 12
|
|
136
|
+
}
|
|
137
|
+
region arm {
|
|
138
|
+
slot arm
|
|
139
|
+
rect 32 16 4 14
|
|
140
|
+
at 6.5 0
|
|
141
|
+
rotation 90
|
|
142
|
+
size 4 14
|
|
143
|
+
}
|
|
144
|
+
region lantern {
|
|
145
|
+
slot lantern
|
|
146
|
+
rect 52 16 8 10
|
|
147
|
+
at 15 0
|
|
148
|
+
rotation 90
|
|
149
|
+
size 8 10
|
|
150
|
+
}
|
|
151
|
+
region thigh-b {
|
|
152
|
+
slot thigh-b
|
|
153
|
+
rect 32 0 5 12
|
|
154
|
+
at 5.5 0
|
|
155
|
+
rotation 90
|
|
156
|
+
size 5 12
|
|
157
|
+
}
|
|
158
|
+
region shin-b {
|
|
159
|
+
slot shin-b
|
|
160
|
+
rect 40 0 5 12
|
|
161
|
+
at 5.5 0
|
|
162
|
+
rotation 90
|
|
163
|
+
size 5 12
|
|
164
|
+
}
|
|
165
|
+
region boot-b {
|
|
166
|
+
slot boot-b
|
|
167
|
+
rect 48 0 10 5
|
|
168
|
+
at 10.5 2
|
|
169
|
+
rotation 90
|
|
170
|
+
size 10 5
|
|
171
|
+
}
|
|
172
|
+
region thigh-f {
|
|
173
|
+
slot thigh-f
|
|
174
|
+
rect 32 0 5 12
|
|
175
|
+
at 5.5 0
|
|
176
|
+
rotation 90
|
|
177
|
+
size 5 12
|
|
178
|
+
}
|
|
179
|
+
region shin-f {
|
|
180
|
+
slot shin-f
|
|
181
|
+
rect 40 0 5 12
|
|
182
|
+
at 5.5 0
|
|
183
|
+
rotation 90
|
|
184
|
+
size 5 12
|
|
185
|
+
}
|
|
186
|
+
region boot-f {
|
|
187
|
+
slot boot-f
|
|
188
|
+
rect 48 0 10 5
|
|
189
|
+
at 10.5 2
|
|
190
|
+
rotation 90
|
|
191
|
+
size 10 5
|
|
192
|
+
}
|
|
193
|
+
mesh cape {
|
|
194
|
+
slot cape
|
|
195
|
+
vertex 0 32 hip 16.000 16.000 1
|
|
196
|
+
vertex 6 32 hip 16.000 9.000 1
|
|
197
|
+
vertex 12 32 hip 16.000 2.000 1
|
|
198
|
+
vertex 0 40 hip 7.000 16.000 0.4 cape-1 8.000 -12.000 0.6
|
|
199
|
+
vertex 6 40 hip 7.000 9.000 0.4 cape-1 8.000 -5.000 0.6
|
|
200
|
+
vertex 12 40 hip 7.000 2.000 0.4 cape-1 8.000 2.000 0.6
|
|
201
|
+
vertex 0 48 cape-1 17.000 -12.000 0.5 cape-2 5.000 -12.000 0.5
|
|
202
|
+
vertex 6 48 cape-1 17.000 -5.000 0.5 cape-2 5.000 -5.000 0.5
|
|
203
|
+
vertex 12 48 cape-1 17.000 2.000 0.5 cape-2 5.000 2.000 0.5
|
|
204
|
+
vertex 0 56 cape-2 14.000 -12.000 1
|
|
205
|
+
vertex 6 56 cape-2 14.000 -5.000 1
|
|
206
|
+
vertex 12 56 cape-2 14.000 2.000 1
|
|
207
|
+
triangles 0 3 1 1 3 4 1 4 2 2 4 5 3 6 4 4 6 7 4 7 5 5 7 8 6 9 7 7 9 10 7 10 8 8 10 11
|
|
208
|
+
}
|
|
209
|
+
ik leg-b {
|
|
210
|
+
bones thigh-b shin-b
|
|
211
|
+
target foot-b
|
|
212
|
+
bend clockwise
|
|
213
|
+
}
|
|
214
|
+
ik leg-f {
|
|
215
|
+
bones thigh-f shin-f
|
|
216
|
+
target foot-f
|
|
217
|
+
bend clockwise
|
|
218
|
+
}
|
|
219
|
+
clip idle {
|
|
220
|
+
duration 2
|
|
221
|
+
loop true
|
|
222
|
+
bone hip {
|
|
223
|
+
translate 0 0 0
|
|
224
|
+
translate 1 0 -1.5
|
|
225
|
+
translate 2 0 0
|
|
226
|
+
}
|
|
227
|
+
bone head {
|
|
228
|
+
rotate 0 0
|
|
229
|
+
rotate 1 4
|
|
230
|
+
rotate 2 0
|
|
231
|
+
}
|
|
232
|
+
bone arm {
|
|
233
|
+
rotate 0 4
|
|
234
|
+
rotate 1 -8
|
|
235
|
+
rotate 2 4
|
|
236
|
+
}
|
|
237
|
+
bone cape-1 {
|
|
238
|
+
rotate 0 -4
|
|
239
|
+
rotate 1 8
|
|
240
|
+
rotate 2 -4
|
|
241
|
+
}
|
|
242
|
+
bone cape-2 {
|
|
243
|
+
rotate 0 -6
|
|
244
|
+
rotate 1 12
|
|
245
|
+
rotate 2 -6
|
|
246
|
+
}
|
|
247
|
+
deform cape {
|
|
248
|
+
key 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
249
|
+
key 0.5 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -3 0 -3 0 -3 0 -3 0 -3 0 -3 0 -5 0 -5 0 -5
|
|
250
|
+
key 1 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 2 0 2 0 2 0 2 0 2 0 2 0 3 0 3 0 3
|
|
251
|
+
key 1.5 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -3.5 0 -3.5 0 -3.5 0 -3.5 0 -3.5 0 -3.5 0 -6 0 -6 0 -6
|
|
252
|
+
key 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
253
|
+
}
|
|
254
|
+
event 0 "inhale"
|
|
255
|
+
}
|
|
256
|
+
clip walk {
|
|
257
|
+
duration 0.8
|
|
258
|
+
loop true
|
|
259
|
+
bone hip {
|
|
260
|
+
translate 0 0 -1 curve 0.3 0 0.6 1
|
|
261
|
+
translate 0.2 0 0.6 curve 0.4 0 0.7 1
|
|
262
|
+
translate 0.4 0 -1 curve 0.3 0 0.6 1
|
|
263
|
+
translate 0.6 0 0.6 curve 0.4 0 0.7 1
|
|
264
|
+
translate 0.8 0 -1
|
|
265
|
+
}
|
|
266
|
+
bone head {
|
|
267
|
+
rotate 0 -2
|
|
268
|
+
rotate 0.4 2
|
|
269
|
+
rotate 0.8 -2
|
|
270
|
+
}
|
|
271
|
+
bone arm {
|
|
272
|
+
rotate 0 16 curve 0.42 0 0.58 1
|
|
273
|
+
rotate 0.4 -12 curve 0.42 0 0.58 1
|
|
274
|
+
rotate 0.8 16
|
|
275
|
+
}
|
|
276
|
+
bone cape-1 {
|
|
277
|
+
rotate 0 -10
|
|
278
|
+
rotate 0.2 -14
|
|
279
|
+
rotate 0.4 -10
|
|
280
|
+
rotate 0.6 -14
|
|
281
|
+
rotate 0.8 -10
|
|
282
|
+
}
|
|
283
|
+
bone cape-2 {
|
|
284
|
+
rotate 0 -12
|
|
285
|
+
rotate 0.3 -20
|
|
286
|
+
rotate 0.5 -12
|
|
287
|
+
rotate 0.7 -20
|
|
288
|
+
rotate 0.8 -12
|
|
289
|
+
}
|
|
290
|
+
event 0 "step"
|
|
291
|
+
event 0.4 "step"
|
|
292
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type flipbook
|
|
2
|
+
version 1
|
|
3
|
+
---
|
|
4
|
+
# The courier (the runner archetype's sheet, tools/make-assets.py there):
|
|
5
|
+
# 32 x 40 frames standing on their feet (the pivot: the entity's position is
|
|
6
|
+
# the feet, so a squash keeps them down). Clips are numbered in file order:
|
|
7
|
+
# idle 0, run 1, jump 2, fall 3, crash 4 (src/main.ts's CLIP checks them).
|
|
8
|
+
texture "courier.png"
|
|
9
|
+
pivot 0.5 0
|
|
10
|
+
grid 32 40 8 2
|
|
11
|
+
spacing 2
|
|
12
|
+
clip idle {
|
|
13
|
+
frames 14 15
|
|
14
|
+
fps 2
|
|
15
|
+
}
|
|
16
|
+
clip run {
|
|
17
|
+
frames 0 1 2 3 4 5 6 7
|
|
18
|
+
fps 14
|
|
19
|
+
event 2 "step"
|
|
20
|
+
event 6 "step"
|
|
21
|
+
}
|
|
22
|
+
clip jump {
|
|
23
|
+
frames 8
|
|
24
|
+
fps 1
|
|
25
|
+
}
|
|
26
|
+
clip fall {
|
|
27
|
+
frames 9
|
|
28
|
+
fps 1
|
|
29
|
+
}
|
|
30
|
+
clip crash {
|
|
31
|
+
frames 10 11 12 13
|
|
32
|
+
fps 12
|
|
33
|
+
mode once
|
|
34
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type strings
|
|
2
|
+
version 1
|
|
3
|
+
---
|
|
4
|
+
# The starter's strings (og.i18n, og-i18n §1): every word the HUD shows is
|
|
5
|
+
# a key here, never a literal in a system. A locale is its own file beside
|
|
6
|
+
# it (`zh-CN.ogt`, the same keys and its `fonts` line), loaded in `start`.
|
|
7
|
+
locale "en"
|
|
8
|
+
base true
|
|
9
|
+
string "hud.level" "The Rooftops"
|
|
10
|
+
string "hud.clear" "Rooftops clear!"
|
|
11
|
+
string "pause.resume" "Resume"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type tileset
|
|
2
|
+
version 1
|
|
3
|
+
---
|
|
4
|
+
# The city (the runner archetype's tileset, tools/make-assets.py there):
|
|
5
|
+
# 0 roof, 1-3 bricks, 4-7 far skyline, 8-14 near buildings, 15 the
|
|
6
|
+
# antenna's light on. The roof and the bricks collide as whole cells on a
|
|
7
|
+
# layer marked `collision true` (og-game §8).
|
|
8
|
+
texture "tiles/city.png"
|
|
9
|
+
grid 16 16 4 4
|
|
10
|
+
spacing 2
|
|
11
|
+
filter nearest
|
|
12
|
+
solid 0 1 2 3
|
|
13
|
+
# A far window that goes on and off.
|
|
14
|
+
tile 5 {
|
|
15
|
+
frames 5 4 5
|
|
16
|
+
durations 2.5 0.4 1.8
|
|
17
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Media to Git LFS, as the platform's other scaffolds route them; text stays
|
|
2
|
+
# diffable (.ogt scenes and settings are line-based text by design).
|
|
3
|
+
*.glb filter=lfs diff=lfs merge=lfs -text
|
|
4
|
+
*.gltf filter=lfs diff=lfs merge=lfs -text
|
|
5
|
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
6
|
+
*.png filter=lfs diff=lfs merge=lfs -text
|
|
7
|
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
|
8
|
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
|
9
|
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
10
|
+
*.ktx2 filter=lfs diff=lfs merge=lfs -text
|
|
11
|
+
*.hdr filter=lfs diff=lfs merge=lfs -text
|
|
12
|
+
*.exr filter=lfs diff=lfs merge=lfs -text
|
|
13
|
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
14
|
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
|
15
|
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
|
16
|
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
|
17
|
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
18
|
+
*.ttf filter=lfs diff=lfs merge=lfs -text
|
|
19
|
+
*.otf filter=lfs diff=lfs merge=lfs -text
|
|
20
|
+
*.woff2 filter=lfs diff=lfs merge=lfs -text
|
|
21
|
+
*.ogt text eol=lf
|
|
22
|
+
*.ts text eol=lf
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "origin-game-2d",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "og dev .",
|
|
8
|
+
"start": "og run .",
|
|
9
|
+
"build": "og build .",
|
|
10
|
+
"publish-build": "og build . --publish",
|
|
11
|
+
"cook": "og cook .",
|
|
12
|
+
"check": "og check .",
|
|
13
|
+
"test": "og test ."
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@origingame/engine": "0.3.0"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type project
|
|
2
|
+
version 1
|
|
3
|
+
---
|
|
4
|
+
# The project manifest (docs/design.md §2.5): `og run`, `og build`, `og cook`,
|
|
5
|
+
# `og dev` and `og test` read it. `npm create @origingame/game` writes this
|
|
6
|
+
# 2D starter for a 2D premise (or `--profile 2d`) and fills in the name and id.
|
|
7
|
+
name "Origin Game 2D"
|
|
8
|
+
id "origin-game-2d"
|
|
9
|
+
# The engine this game is written against (design §9: upgrades are explicit).
|
|
10
|
+
engine "0.3.0"
|
|
11
|
+
entry "src/main.ts"
|
|
12
|
+
# 2d: an orthographic camera, sprites, flipbooks, tilemaps and 2D physics.
|
|
13
|
+
profile "2d"
|
|
14
|
+
tick 60
|
|
15
|
+
seed 1
|
|
16
|
+
publish {
|
|
17
|
+
# `og build --publish` keeps only the player-facing probe members
|
|
18
|
+
# (hello, tick, state, pick, entity, input, capture).
|
|
19
|
+
probe player
|
|
20
|
+
out "dist"
|
|
21
|
+
}
|