@origingame/create-game 0.0.0-stage → 0.1.1
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 +57 -2
- package/archetypes/README.md +99 -0
- package/archetypes/idle/.origin/setup +14 -0
- package/archetypes/idle/LICENSES.md +12 -0
- package/archetypes/idle/README.md +234 -0
- package/archetypes/idle/assets/audio/buy.wav +0 -0
- package/archetypes/idle/assets/audio/milestone.wav +0 -0
- package/archetypes/idle/assets/audio/nova.wav +0 -0
- package/archetypes/idle/assets/audio/orbit.wav +0 -0
- package/archetypes/idle/assets/audio/tap.wav +0 -0
- package/archetypes/idle/assets/audio/ui-close.ogt +9 -0
- package/archetypes/idle/assets/audio/ui-error.ogt +9 -0
- package/archetypes/idle/assets/audio/ui-open.ogt +9 -0
- package/archetypes/idle/assets/audio/ui-press.ogt +9 -0
- package/archetypes/idle/assets/audio/ui-success.ogt +9 -0
- package/archetypes/idle/assets/fonts/NotoSansSC-subset.ttf +0 -0
- package/archetypes/idle/assets/fonts/NotoSansSC-subset.ttf.ogt +10 -0
- package/archetypes/idle/assets/fonts/OFL.txt +93 -0
- package/archetypes/idle/assets/fx/drift.ogt +21 -0
- package/archetypes/idle/assets/fx/milestone.ogt +21 -0
- package/archetypes/idle/assets/fx/nova.ogt +22 -0
- package/archetypes/idle/assets/fx/stars.ogt +20 -0
- package/archetypes/idle/assets/fx/tap.ogt +23 -0
- package/archetypes/idle/assets/looks/idle.ogt +17 -0
- package/archetypes/idle/assets/skins/sparkorb/ChakraPetch-BoldItalic.ttf +0 -0
- package/archetypes/idle/assets/skins/sparkorb/ChakraPetch-BoldItalic.ttf.ogt +9 -0
- package/archetypes/idle/assets/skins/sparkorb/LICENSES.md +19 -0
- package/archetypes/idle/assets/skins/sparkorb/OFL.txt +95 -0
- package/archetypes/idle/assets/skins/sparkorb/Orbitron-Medium.ttf +0 -0
- package/archetypes/idle/assets/skins/sparkorb/Orbitron-Medium.ttf.ogt +9 -0
- package/archetypes/idle/assets/skins/sparkorb/Rajdhani-Bold.ttf +0 -0
- package/archetypes/idle/assets/skins/sparkorb/Rajdhani-Bold.ttf.ogt +9 -0
- package/archetypes/idle/assets/skins/sparkorb/atlas.png +0 -0
- package/archetypes/idle/assets/skins/sparkorb/atlas.png.ogt +7 -0
- package/archetypes/idle/assets/skins/sparkorb/icons.png +0 -0
- package/archetypes/idle/assets/skins/sparkorb/icons.png.ogt +7 -0
- package/archetypes/idle/assets/skins/sparkorb/skin.ogt +113 -0
- package/archetypes/idle/assets/sprites/glow.png +0 -0
- package/archetypes/idle/assets/sprites/glow.png.ogt +8 -0
- package/archetypes/idle/assets/sprites/mote-crystal.png +0 -0
- package/archetypes/idle/assets/sprites/mote-crystal.png.ogt +7 -0
- package/archetypes/idle/assets/sprites/mote-ember.png +0 -0
- package/archetypes/idle/assets/sprites/mote-ember.png.ogt +7 -0
- package/archetypes/idle/assets/sprites/mote-star.png +0 -0
- package/archetypes/idle/assets/sprites/mote-star.png.ogt +7 -0
- package/archetypes/idle/assets/sprites/mote-storm.png +0 -0
- package/archetypes/idle/assets/sprites/mote-storm.png.ogt +7 -0
- package/archetypes/idle/assets/sprites/orb.png +0 -0
- package/archetypes/idle/assets/sprites/orb.png.ogt +7 -0
- package/archetypes/idle/assets/sprites/spark.png +0 -0
- package/archetypes/idle/assets/sprites/spark.png.ogt +7 -0
- package/archetypes/idle/assets/strings/en.ogt +62 -0
- package/archetypes/idle/assets/strings/zh-CN.ogt +62 -0
- package/archetypes/idle/gitattributes +22 -0
- package/archetypes/idle/gitignore +8 -0
- package/archetypes/idle/host.d.ts +46 -0
- package/archetypes/idle/package.json +18 -0
- package/archetypes/idle/project.ogt +14 -0
- 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/components.ts +139 -0
- package/archetypes/idle/src/main.ts +247 -0
- package/archetypes/idle/src/numbers.ts +126 -0
- package/archetypes/idle/src/systems.ts +340 -0
- package/archetypes/idle/src/ui.ts +412 -0
- package/archetypes/idle/tests/away.og.ts +42 -0
- package/archetypes/idle/tests/flow.og.ts +57 -0
- package/archetypes/idle/tests/frames.og.ts +33 -0
- package/archetypes/idle/tests/frames.ts +134 -0
- package/archetypes/idle/tests/lib.ts +74 -0
- package/archetypes/idle/tests/milestone.og.ts +32 -0
- package/archetypes/idle/tests/nova.og.ts +52 -0
- package/archetypes/idle/tests/offline.og.ts +60 -0
- package/archetypes/idle/tests/pad.og.ts +55 -0
- package/archetypes/idle/tests/pause.og.ts +68 -0
- package/archetypes/idle/tests/phone.og.ts +50 -0
- package/archetypes/idle/tests/replay.og.ts +28 -0
- package/archetypes/idle/tools/make-assets.py +448 -0
- package/archetypes/idle/tools/oglite.py +285 -0
- package/archetypes/idle/tsconfig.json +17 -0
- package/archetypes/match3/.origin/setup +14 -0
- package/archetypes/match3/LICENSES.md +7 -0
- package/archetypes/match3/README.md +205 -0
- package/archetypes/match3/assets/audio/cascade.wav +0 -0
- package/archetypes/match3/assets/audio/clear.wav +0 -0
- package/archetypes/match3/assets/audio/lost.wav +0 -0
- package/archetypes/match3/assets/audio/refused.wav +0 -0
- package/archetypes/match3/assets/audio/select.wav +0 -0
- package/archetypes/match3/assets/audio/swap.wav +0 -0
- package/archetypes/match3/assets/audio/won.wav +0 -0
- package/archetypes/match3/assets/fonts/OFL.txt +93 -0
- package/archetypes/match3/assets/fonts/ui.ttf +0 -0
- package/archetypes/match3/assets/fonts/ui.ttf.ogt +11 -0
- package/archetypes/match3/assets/scenes/main.ogt +24 -0
- package/archetypes/match3/assets/sprites/backdrop.png +0 -0
- package/archetypes/match3/assets/sprites/board.ogt +21 -0
- package/archetypes/match3/assets/sprites/cells.ogt +7 -0
- package/archetypes/match3/assets/sprites/cells.png +0 -0
- package/archetypes/match3/assets/sprites/cells.png.ogt +7 -0
- package/archetypes/match3/assets/sprites/gems.ogt +75 -0
- package/archetypes/match3/assets/sprites/gems.png +0 -0
- package/archetypes/match3/assets/sprites/panel.png +0 -0
- package/archetypes/match3/assets/sprites/ring.png +0 -0
- package/archetypes/match3/gitattributes +22 -0
- package/archetypes/match3/gitignore +8 -0
- package/archetypes/match3/host.d.ts +46 -0
- package/archetypes/match3/package.json +18 -0
- package/archetypes/match3/project.ogt +18 -0
- package/archetypes/match3/references/metal/cascade.png +0 -0
- package/archetypes/match3/references/metal/clearing.png +0 -0
- package/archetypes/match3/references/metal/dealt.png +0 -0
- package/archetypes/match3/src/art.ts +54 -0
- package/archetypes/match3/src/board.ts +112 -0
- package/archetypes/match3/src/components.ts +95 -0
- package/archetypes/match3/src/layout.ts +25 -0
- package/archetypes/match3/src/main.ts +199 -0
- package/archetypes/match3/src/systems.ts +631 -0
- package/archetypes/match3/tests/drag.og.ts +31 -0
- package/archetypes/match3/tests/endings.og.ts +40 -0
- package/archetypes/match3/tests/frames.og.ts +49 -0
- package/archetypes/match3/tests/frames.ts +134 -0
- package/archetypes/match3/tests/hidpi.og.ts +41 -0
- package/archetypes/match3/tests/lib.ts +64 -0
- package/archetypes/match3/tests/replay.og.ts +28 -0
- package/archetypes/match3/tests/sounds.og.ts +50 -0
- package/archetypes/match3/tests/swap.og.ts +67 -0
- package/archetypes/match3/tools/make-assets.py +404 -0
- package/archetypes/match3/tools/oglite.py +285 -0
- package/archetypes/match3/tsconfig.json +17 -0
- package/archetypes/rhythm/.origin/setup +14 -0
- package/archetypes/rhythm/LICENSES.md +13 -0
- package/archetypes/rhythm/README.md +235 -0
- package/archetypes/rhythm/assets/audio/bass0.wav +0 -0
- package/archetypes/rhythm/assets/audio/bass1.wav +0 -0
- package/archetypes/rhythm/assets/audio/bass2.wav +0 -0
- package/archetypes/rhythm/assets/audio/bass3.wav +0 -0
- package/archetypes/rhythm/assets/audio/chords0.wav +0 -0
- package/archetypes/rhythm/assets/audio/chords1.wav +0 -0
- package/archetypes/rhythm/assets/audio/chords2.wav +0 -0
- package/archetypes/rhythm/assets/audio/chords3.wav +0 -0
- package/archetypes/rhythm/assets/audio/clear.wav +0 -0
- package/archetypes/rhythm/assets/audio/click.wav +0 -0
- package/archetypes/rhythm/assets/audio/drums.wav +0 -0
- package/archetypes/rhythm/assets/audio/fail.wav +0 -0
- package/archetypes/rhythm/assets/audio/leadA.wav +0 -0
- package/archetypes/rhythm/assets/audio/leadB.wav +0 -0
- package/archetypes/rhythm/assets/audio/miss.wav +0 -0
- package/archetypes/rhythm/assets/audio/tap0.wav +0 -0
- package/archetypes/rhythm/assets/audio/tap1.wav +0 -0
- package/archetypes/rhythm/assets/audio/tap2.wav +0 -0
- package/archetypes/rhythm/assets/audio/ui-close.ogt +9 -0
- package/archetypes/rhythm/assets/audio/ui-error.ogt +9 -0
- package/archetypes/rhythm/assets/audio/ui-open.ogt +9 -0
- package/archetypes/rhythm/assets/audio/ui-press.ogt +9 -0
- package/archetypes/rhythm/assets/audio/ui-success.ogt +9 -0
- package/archetypes/rhythm/assets/charts/neon-pulse.ogt +919 -0
- package/archetypes/rhythm/assets/fonts/NotoSansSC-subset.ttf +0 -0
- package/archetypes/rhythm/assets/fonts/NotoSansSC-subset.ttf.ogt +10 -0
- package/archetypes/rhythm/assets/fonts/OFL.txt +93 -0
- package/archetypes/rhythm/assets/fx/hit.ogt +22 -0
- package/archetypes/rhythm/assets/skins/lanebeat/ChakraPetch-Medium.ttf +0 -0
- package/archetypes/rhythm/assets/skins/lanebeat/ChakraPetch-Medium.ttf.ogt +9 -0
- package/archetypes/rhythm/assets/skins/lanebeat/JetBrainsMono-Regular.ttf +0 -0
- package/archetypes/rhythm/assets/skins/lanebeat/JetBrainsMono-Regular.ttf.ogt +9 -0
- package/archetypes/rhythm/assets/skins/lanebeat/LICENSES.md +17 -0
- package/archetypes/rhythm/assets/skins/lanebeat/OFL.txt +95 -0
- package/archetypes/rhythm/assets/skins/lanebeat/Orbitron-Bold.ttf +0 -0
- package/archetypes/rhythm/assets/skins/lanebeat/Orbitron-Bold.ttf.ogt +9 -0
- package/archetypes/rhythm/assets/skins/lanebeat/atlas.png +0 -0
- package/archetypes/rhythm/assets/skins/lanebeat/atlas.png.ogt +7 -0
- package/archetypes/rhythm/assets/skins/lanebeat/icons.png +0 -0
- package/archetypes/rhythm/assets/skins/lanebeat/icons.png.ogt +7 -0
- package/archetypes/rhythm/assets/skins/lanebeat/skin.ogt +110 -0
- package/archetypes/rhythm/assets/sprites/lane.png +0 -0
- package/archetypes/rhythm/assets/sprites/lane.png.ogt +7 -0
- package/archetypes/rhythm/assets/sprites/note.png +0 -0
- package/archetypes/rhythm/assets/sprites/note.png.ogt +7 -0
- package/archetypes/rhythm/assets/sprites/ring.png +0 -0
- package/archetypes/rhythm/assets/sprites/ring.png.ogt +7 -0
- package/archetypes/rhythm/assets/sprites/spark.png +0 -0
- package/archetypes/rhythm/assets/sprites/spark.png.ogt +7 -0
- package/archetypes/rhythm/assets/strings/en.ogt +61 -0
- package/archetypes/rhythm/assets/strings/zh-CN.ogt +61 -0
- package/archetypes/rhythm/gitattributes +22 -0
- package/archetypes/rhythm/gitignore +8 -0
- package/archetypes/rhythm/host.d.ts +46 -0
- package/archetypes/rhythm/package.json +18 -0
- package/archetypes/rhythm/project.ogt +14 -0
- package/archetypes/rhythm/references/metal/highway.png +0 -0
- package/archetypes/rhythm/references/metal/results.png +0 -0
- package/archetypes/rhythm/references/metal/title.png +0 -0
- package/archetypes/rhythm/src/components.ts +147 -0
- package/archetypes/rhythm/src/main.ts +202 -0
- package/archetypes/rhythm/src/systems.ts +490 -0
- package/archetypes/rhythm/src/ui.ts +421 -0
- package/archetypes/rhythm/tests/band.og.ts +45 -0
- package/archetypes/rhythm/tests/calibrate.og.ts +49 -0
- package/archetypes/rhythm/tests/clear.og.ts +51 -0
- package/archetypes/rhythm/tests/fail.og.ts +40 -0
- package/archetypes/rhythm/tests/flow.og.ts +54 -0
- package/archetypes/rhythm/tests/frames.og.ts +35 -0
- package/archetypes/rhythm/tests/frames.ts +134 -0
- package/archetypes/rhythm/tests/lib.ts +123 -0
- package/archetypes/rhythm/tests/pad.og.ts +41 -0
- package/archetypes/rhythm/tests/pause.og.ts +77 -0
- package/archetypes/rhythm/tests/phone.og.ts +44 -0
- package/archetypes/rhythm/tests/replay.og.ts +27 -0
- package/archetypes/rhythm/tests/timing.og.ts +37 -0
- package/archetypes/rhythm/tools/make-assets.py +383 -0
- package/archetypes/rhythm/tools/oglite.py +285 -0
- package/archetypes/rhythm/tsconfig.json +17 -0
- package/archetypes/roguelike/.origin/setup +14 -0
- package/archetypes/roguelike/LICENSES.md +14 -0
- package/archetypes/roguelike/README.md +256 -0
- package/archetypes/roguelike/assets/ai/foe.ogt +28 -0
- package/archetypes/roguelike/assets/ai/guardian.ogt +26 -0
- package/archetypes/roguelike/assets/audio/bump.wav +0 -0
- package/archetypes/roguelike/assets/audio/drink.wav +0 -0
- package/archetypes/roguelike/assets/audio/fall.wav +0 -0
- package/archetypes/roguelike/assets/audio/hit.wav +0 -0
- package/archetypes/roguelike/assets/audio/hurt.wav +0 -0
- package/archetypes/roguelike/assets/audio/item.wav +0 -0
- package/archetypes/roguelike/assets/audio/kill.wav +0 -0
- package/archetypes/roguelike/assets/audio/pickup.wav +0 -0
- package/archetypes/roguelike/assets/audio/roar.wav +0 -0
- package/archetypes/roguelike/assets/audio/stairs.wav +0 -0
- package/archetypes/roguelike/assets/audio/step.ogt +9 -0
- package/archetypes/roguelike/assets/audio/telegraph.wav +0 -0
- package/archetypes/roguelike/assets/audio/tomb.wav +0 -0
- package/archetypes/roguelike/assets/audio/ui-close.ogt +9 -0
- package/archetypes/roguelike/assets/audio/ui-error.ogt +9 -0
- package/archetypes/roguelike/assets/audio/ui-open.ogt +9 -0
- package/archetypes/roguelike/assets/audio/ui-press.ogt +9 -0
- package/archetypes/roguelike/assets/audio/ui-success.ogt +9 -0
- package/archetypes/roguelike/assets/audio/won.wav +0 -0
- package/archetypes/roguelike/assets/fonts/NotoSansSC-subset.ttf +0 -0
- package/archetypes/roguelike/assets/fonts/NotoSansSC-subset.ttf.ogt +10 -0
- package/archetypes/roguelike/assets/fonts/OFL.txt +93 -0
- package/archetypes/roguelike/assets/maps/dive.ogt +106 -0
- package/archetypes/roguelike/assets/skins/lampdive/DotGothic16-Regular.ttf +0 -0
- package/archetypes/roguelike/assets/skins/lampdive/DotGothic16-Regular.ttf.ogt +9 -0
- package/archetypes/roguelike/assets/skins/lampdive/LICENSES.md +16 -0
- package/archetypes/roguelike/assets/skins/lampdive/OFL.txt +93 -0
- package/archetypes/roguelike/assets/skins/lampdive/atlas.png +0 -0
- package/archetypes/roguelike/assets/skins/lampdive/atlas.png.ogt +7 -0
- package/archetypes/roguelike/assets/skins/lampdive/icons.png +0 -0
- package/archetypes/roguelike/assets/skins/lampdive/icons.png.ogt +7 -0
- package/archetypes/roguelike/assets/skins/lampdive/skin.ogt +115 -0
- package/archetypes/roguelike/assets/sprites/dive.ogt +50 -0
- package/archetypes/roguelike/assets/sprites/dive.png +0 -0
- package/archetypes/roguelike/assets/sprites/dive.png.ogt +7 -0
- package/archetypes/roguelike/assets/sprites/glow.png +0 -0
- package/archetypes/roguelike/assets/sprites/glow.png.ogt +7 -0
- package/archetypes/roguelike/assets/strings/en.ogt +57 -0
- package/archetypes/roguelike/assets/strings/zh-CN.ogt +57 -0
- package/archetypes/roguelike/assets/tiles/tomb.ogt +31 -0
- package/archetypes/roguelike/assets/tiles/tomb.png +0 -0
- package/archetypes/roguelike/assets/tiles/tomb.png.ogt +7 -0
- package/archetypes/roguelike/gitattributes +22 -0
- package/archetypes/roguelike/gitignore +8 -0
- package/archetypes/roguelike/host.d.ts +46 -0
- package/archetypes/roguelike/package.json +18 -0
- package/archetypes/roguelike/project.ogt +14 -0
- package/archetypes/roguelike/references/metal/dive.png +0 -0
- package/archetypes/roguelike/references/metal/over.png +0 -0
- package/archetypes/roguelike/references/metal/title.png +0 -0
- package/archetypes/roguelike/src/art.ts +23 -0
- package/archetypes/roguelike/src/components.ts +169 -0
- package/archetypes/roguelike/src/dive.ts +144 -0
- package/archetypes/roguelike/src/foes.ts +174 -0
- package/archetypes/roguelike/src/main.ts +258 -0
- package/archetypes/roguelike/src/systems.ts +620 -0
- package/archetypes/roguelike/src/ui.ts +350 -0
- package/archetypes/roguelike/tests/flow.og.ts +54 -0
- package/archetypes/roguelike/tests/foes.og.ts +45 -0
- package/archetypes/roguelike/tests/frames.og.ts +32 -0
- package/archetypes/roguelike/tests/frames.ts +134 -0
- package/archetypes/roguelike/tests/lib.ts +83 -0
- package/archetypes/roguelike/tests/lose.og.ts +44 -0
- package/archetypes/roguelike/tests/pad.og.ts +54 -0
- package/archetypes/roguelike/tests/pause.og.ts +59 -0
- package/archetypes/roguelike/tests/phone.og.ts +54 -0
- package/archetypes/roguelike/tests/replay.og.ts +24 -0
- package/archetypes/roguelike/tests/win.og.ts +60 -0
- package/archetypes/roguelike/tools/make-assets.py +518 -0
- package/archetypes/roguelike/tools/oglite.py +285 -0
- package/archetypes/roguelike/tsconfig.json +17 -0
- package/archetypes/runner/.origin/setup +14 -0
- package/archetypes/runner/LICENSES.md +10 -0
- package/archetypes/runner/README.md +225 -0
- package/archetypes/runner/assets/audio/coin.wav +0 -0
- package/archetypes/runner/assets/audio/crash.wav +0 -0
- package/archetypes/runner/assets/audio/hold.ogt +9 -0
- package/archetypes/runner/assets/audio/jump.wav +0 -0
- package/archetypes/runner/assets/audio/start.wav +0 -0
- package/archetypes/runner/assets/fonts/OFL.txt +93 -0
- package/archetypes/runner/assets/fonts/ui.ttf +0 -0
- package/archetypes/runner/assets/fonts/ui.ttf.ogt +11 -0
- package/archetypes/runner/assets/maps/far.ogt +25 -0
- package/archetypes/runner/assets/maps/near.ogt +25 -0
- package/archetypes/runner/assets/maps/roofs.ogt +19 -0
- package/archetypes/runner/assets/scenes/main.ogt +35 -0
- package/archetypes/runner/assets/sprites/coin.ogt +11 -0
- package/archetypes/runner/assets/sprites/coin.png +0 -0
- package/archetypes/runner/assets/sprites/coin.png.ogt +7 -0
- package/archetypes/runner/assets/sprites/courier.ogt +32 -0
- package/archetypes/runner/assets/sprites/courier.png +0 -0
- package/archetypes/runner/assets/sprites/courier.png.ogt +7 -0
- package/archetypes/runner/assets/sprites/props.ogt +21 -0
- package/archetypes/runner/assets/sprites/props.png +0 -0
- package/archetypes/runner/assets/sprites/props.png.ogt +7 -0
- package/archetypes/runner/assets/sprites/sky.png +0 -0
- package/archetypes/runner/assets/sprites/sky.png.ogt +7 -0
- package/archetypes/runner/assets/tiles/city.ogt +18 -0
- package/archetypes/runner/assets/tiles/city.png +0 -0
- package/archetypes/runner/assets/tiles/city.png.ogt +7 -0
- package/archetypes/runner/gitattributes +22 -0
- package/archetypes/runner/gitignore +8 -0
- package/archetypes/runner/host.d.ts +46 -0
- package/archetypes/runner/package.json +18 -0
- package/archetypes/runner/project.ogt +18 -0
- package/archetypes/runner/references/metal/frames-coin.png +0 -0
- package/archetypes/runner/references/metal/frames-crash.png +0 -0
- package/archetypes/runner/references/metal/frames-title.png +0 -0
- package/archetypes/runner/src/art.ts +57 -0
- package/archetypes/runner/src/components.ts +94 -0
- package/archetypes/runner/src/main.ts +241 -0
- package/archetypes/runner/src/systems.ts +553 -0
- package/archetypes/runner/tests/coins.og.ts +30 -0
- package/archetypes/runner/tests/flow.og.ts +72 -0
- package/archetypes/runner/tests/frames.og.ts +37 -0
- package/archetypes/runner/tests/frames.ts +134 -0
- package/archetypes/runner/tests/jump.og.ts +44 -0
- package/archetypes/runner/tests/lib.ts +42 -0
- package/archetypes/runner/tests/records.og.ts +43 -0
- package/archetypes/runner/tests/replay.og.ts +36 -0
- package/archetypes/runner/tests/sounds.og.ts +43 -0
- package/archetypes/runner/tests/tune.og.ts +36 -0
- package/archetypes/runner/tools/make-assets.py +603 -0
- package/archetypes/runner/tools/oglite.py +285 -0
- package/archetypes/runner/tsconfig.json +17 -0
- package/archetypes/third-person/.origin/setup +14 -0
- package/archetypes/third-person/LICENSES.md +23 -0
- package/archetypes/third-person/README.md +249 -0
- package/archetypes/third-person/assets/ai/sentinel-east.ogt +69 -0
- package/archetypes/third-person/assets/ai/sentinel-north.ogt +69 -0
- package/archetypes/third-person/assets/ai/sentinel-west.ogt +69 -0
- package/archetypes/third-person/assets/anims/humanoid-clips.glb +0 -0
- package/archetypes/third-person/assets/audio/alarm.wav +0 -0
- package/archetypes/third-person/assets/audio/dawn.wav +0 -0
- package/archetypes/third-person/assets/audio/grab.wav +0 -0
- package/archetypes/third-person/assets/audio/ignite.wav +0 -0
- package/archetypes/third-person/assets/audio/jump.wav +0 -0
- package/archetypes/third-person/assets/audio/night.wav +0 -0
- package/archetypes/third-person/assets/audio/splash.wav +0 -0
- package/archetypes/third-person/assets/audio/step.ogt +9 -0
- package/archetypes/third-person/assets/audio/ui-close.ogt +9 -0
- package/archetypes/third-person/assets/audio/ui-error.ogt +9 -0
- package/archetypes/third-person/assets/audio/ui-open.ogt +9 -0
- package/archetypes/third-person/assets/audio/ui-press.ogt +9 -0
- package/archetypes/third-person/assets/audio/ui-success.ogt +9 -0
- package/archetypes/third-person/assets/audio/vale.wav +0 -0
- package/archetypes/third-person/assets/fonts/NotoSansSC-subset.ttf +0 -0
- package/archetypes/third-person/assets/fonts/NotoSansSC-subset.ttf.ogt +10 -0
- package/archetypes/third-person/assets/fonts/OFL.txt +93 -0
- package/archetypes/third-person/assets/fx/burst.ogt +25 -0
- package/archetypes/third-person/assets/fx/fire.ogt +24 -0
- package/archetypes/third-person/assets/fx/smoke.ogt +24 -0
- package/archetypes/third-person/assets/fx/splash.ogt +24 -0
- package/archetypes/third-person/assets/luts/teal-orange.cube +4917 -0
- package/archetypes/third-person/assets/models/stout.glb +0 -0
- package/archetypes/third-person/assets/models/strider.glb +0 -0
- package/archetypes/third-person/assets/models/strider.glb.ogt +9 -0
- package/archetypes/third-person/assets/nav/vale.ogt +43 -0
- package/archetypes/third-person/assets/rigs/strider.ogt +6 -0
- package/archetypes/third-person/assets/skins/ember/Cinzel-Bold.ttf +0 -0
- package/archetypes/third-person/assets/skins/ember/Cinzel-Bold.ttf.ogt +9 -0
- package/archetypes/third-person/assets/skins/ember/LICENSES.md +13 -0
- package/archetypes/third-person/assets/skins/ember/Newsreader-Medium.ttf +0 -0
- package/archetypes/third-person/assets/skins/ember/Newsreader-Medium.ttf.ogt +9 -0
- package/archetypes/third-person/assets/skins/ember/OFL.txt +94 -0
- package/archetypes/third-person/assets/skins/ember/atlas.png +0 -0
- package/archetypes/third-person/assets/skins/ember/atlas.png.ogt +7 -0
- package/archetypes/third-person/assets/skins/ember/icons.png +0 -0
- package/archetypes/third-person/assets/skins/ember/icons.png.ogt +7 -0
- package/archetypes/third-person/assets/skins/ember/skin.ogt +109 -0
- package/archetypes/third-person/assets/strings/en.ogt +47 -0
- package/archetypes/third-person/assets/strings/zh-CN.ogt +47 -0
- package/archetypes/third-person/assets/terrain/vale-control.png +0 -0
- package/archetypes/third-person/assets/terrain/vale.ogt +42 -0
- package/archetypes/third-person/assets/terrain/vale.png +0 -0
- package/archetypes/third-person/assets/textures/decals.png +0 -0
- package/archetypes/third-person/assets/textures/flame.png +0 -0
- package/archetypes/third-person/assets/textures/smoke.png +0 -0
- package/archetypes/third-person/assets/textures/spark.png +0 -0
- package/archetypes/third-person/assets/textures/terrain-grass.png +0 -0
- package/archetypes/third-person/assets/textures/terrain-path.png +0 -0
- package/archetypes/third-person/assets/textures/terrain-rock.png +0 -0
- package/archetypes/third-person/assets/textures/terrain-sand.png +0 -0
- package/archetypes/third-person/gitattributes +22 -0
- package/archetypes/third-person/gitignore +8 -0
- package/archetypes/third-person/host.d.ts +46 -0
- package/archetypes/third-person/package.json +18 -0
- package/archetypes/third-person/project.ogt +14 -0
- 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/anim.ts +87 -0
- package/archetypes/third-person/src/beacons.ts +80 -0
- package/archetypes/third-person/src/components.ts +148 -0
- package/archetypes/third-person/src/hero.ts +293 -0
- package/archetypes/third-person/src/main.ts +164 -0
- package/archetypes/third-person/src/sentinels.ts +159 -0
- package/archetypes/third-person/src/sound.ts +66 -0
- package/archetypes/third-person/src/ui.ts +451 -0
- package/archetypes/third-person/src/world.ts +212 -0
- package/archetypes/third-person/tests/flow.og.ts +70 -0
- package/archetypes/third-person/tests/frames.og.ts +35 -0
- package/archetypes/third-person/tests/frames.ts +134 -0
- package/archetypes/third-person/tests/hitstop.og.ts +26 -0
- package/archetypes/third-person/tests/lib.ts +87 -0
- package/archetypes/third-person/tests/lose.og.ts +44 -0
- package/archetypes/third-person/tests/pause.og.ts +64 -0
- package/archetypes/third-person/tests/phone.og.ts +65 -0
- package/archetypes/third-person/tests/replay.og.ts +32 -0
- package/archetypes/third-person/tests/restart.og.ts +28 -0
- package/archetypes/third-person/tests/sentinels.og.ts +48 -0
- package/archetypes/third-person/tests/win.og.ts +62 -0
- package/archetypes/third-person/tools/make-assets.py +353 -0
- package/archetypes/third-person/tools/oglite.py +285 -0
- package/archetypes/third-person/tsconfig.json +17 -0
- package/archetypes/topdown/.origin/setup +14 -0
- package/archetypes/topdown/LICENSES.md +10 -0
- package/archetypes/topdown/README.md +235 -0
- package/archetypes/topdown/assets/ai/slime.ogt +49 -0
- package/archetypes/topdown/assets/audio/coin.wav +0 -0
- package/archetypes/topdown/assets/audio/door.wav +0 -0
- package/archetypes/topdown/assets/audio/hit.wav +0 -0
- package/archetypes/topdown/assets/audio/hurt.wav +0 -0
- package/archetypes/topdown/assets/audio/key.wav +0 -0
- package/archetypes/topdown/assets/audio/step.ogt +9 -0
- package/archetypes/topdown/assets/fonts/OFL.txt +93 -0
- package/archetypes/topdown/assets/fonts/ui.ttf +0 -0
- package/archetypes/topdown/assets/fonts/ui.ttf.ogt +9 -0
- package/archetypes/topdown/assets/maps/tomb.tmj +2183 -0
- package/archetypes/topdown/assets/sprites/hero.ogt +58 -0
- package/archetypes/topdown/assets/sprites/hero.png +0 -0
- package/archetypes/topdown/assets/sprites/hero.png.ogt +7 -0
- package/archetypes/topdown/assets/sprites/items.ogt +15 -0
- package/archetypes/topdown/assets/sprites/items.png +0 -0
- package/archetypes/topdown/assets/sprites/items.png.ogt +7 -0
- package/archetypes/topdown/assets/sprites/slime.ogt +17 -0
- package/archetypes/topdown/assets/sprites/slime.png +0 -0
- package/archetypes/topdown/assets/sprites/slime.png.ogt +7 -0
- package/archetypes/topdown/assets/tiles/dungeon.ogt +65 -0
- package/archetypes/topdown/assets/tiles/dungeon.png +0 -0
- package/archetypes/topdown/assets/tiles/dungeon.png.ogt +7 -0
- package/archetypes/topdown/gitattributes +22 -0
- package/archetypes/topdown/gitignore +8 -0
- package/archetypes/topdown/host.d.ts +46 -0
- package/archetypes/topdown/package.json +18 -0
- package/archetypes/topdown/project.ogt +14 -0
- package/archetypes/topdown/references/metal/crit.png +0 -0
- package/archetypes/topdown/references/metal/dash.png +0 -0
- package/archetypes/topdown/references/metal/east.png +0 -0
- package/archetypes/topdown/references/metal/start.png +0 -0
- package/archetypes/topdown/src/art.ts +48 -0
- package/archetypes/topdown/src/components.ts +128 -0
- package/archetypes/topdown/src/main.ts +275 -0
- package/archetypes/topdown/src/systems.ts +503 -0
- package/archetypes/topdown/tests/ai.og.ts +64 -0
- package/archetypes/topdown/tests/combat.og.ts +72 -0
- package/archetypes/topdown/tests/door.og.ts +62 -0
- package/archetypes/topdown/tests/flee.og.ts +49 -0
- package/archetypes/topdown/tests/frames.og.ts +45 -0
- package/archetypes/topdown/tests/frames.ts +134 -0
- package/archetypes/topdown/tests/lib.ts +71 -0
- package/archetypes/topdown/tests/replay.og.ts +40 -0
- package/archetypes/topdown/tests/walk.og.ts +46 -0
- package/archetypes/topdown/tools/make-assets.py +623 -0
- package/archetypes/topdown/tools/oglite.py +285 -0
- package/archetypes/topdown/tsconfig.json +17 -0
- package/archetypes/tower-defense/.origin/setup +14 -0
- package/archetypes/tower-defense/LICENSES.md +15 -0
- package/archetypes/tower-defense/README.md +240 -0
- package/archetypes/tower-defense/assets/ai/plant.ogt +16 -0
- package/archetypes/tower-defense/assets/audio/clear.wav +0 -0
- package/archetypes/tower-defense/assets/audio/frost.wav +0 -0
- package/archetypes/tower-defense/assets/audio/leak.wav +0 -0
- package/archetypes/tower-defense/assets/audio/lost.wav +0 -0
- package/archetypes/tower-defense/assets/audio/night.wav +0 -0
- package/archetypes/tower-defense/assets/audio/plant.wav +0 -0
- package/archetypes/tower-defense/assets/audio/pop.wav +0 -0
- package/archetypes/tower-defense/assets/audio/thorn.wav +0 -0
- package/archetypes/tower-defense/assets/audio/ui-close.ogt +9 -0
- package/archetypes/tower-defense/assets/audio/ui-error.ogt +9 -0
- package/archetypes/tower-defense/assets/audio/ui-open.ogt +9 -0
- package/archetypes/tower-defense/assets/audio/ui-press.ogt +9 -0
- package/archetypes/tower-defense/assets/audio/ui-success.ogt +9 -0
- package/archetypes/tower-defense/assets/audio/wave.wav +0 -0
- package/archetypes/tower-defense/assets/audio/won.wav +0 -0
- package/archetypes/tower-defense/assets/fonts/NotoSansSC-subset.ttf +0 -0
- package/archetypes/tower-defense/assets/fonts/NotoSansSC-subset.ttf.ogt +10 -0
- package/archetypes/tower-defense/assets/fonts/OFL.txt +93 -0
- package/archetypes/tower-defense/assets/fx/fireflies.ogt +21 -0
- package/archetypes/tower-defense/assets/fx/pop.ogt +21 -0
- package/archetypes/tower-defense/assets/maps/garden.ogt +91 -0
- package/archetypes/tower-defense/assets/skins/pathguard/Fredoka-SemiBold.ttf +0 -0
- package/archetypes/tower-defense/assets/skins/pathguard/Fredoka-SemiBold.ttf.ogt +9 -0
- package/archetypes/tower-defense/assets/skins/pathguard/LICENSES.md +13 -0
- package/archetypes/tower-defense/assets/skins/pathguard/LilitaOne-Regular.ttf +0 -0
- package/archetypes/tower-defense/assets/skins/pathguard/LilitaOne-Regular.ttf.ogt +9 -0
- package/archetypes/tower-defense/assets/skins/pathguard/OFL.txt +94 -0
- package/archetypes/tower-defense/assets/skins/pathguard/atlas.png +0 -0
- package/archetypes/tower-defense/assets/skins/pathguard/atlas.png.ogt +7 -0
- package/archetypes/tower-defense/assets/skins/pathguard/icons.png +0 -0
- package/archetypes/tower-defense/assets/skins/pathguard/icons.png.ogt +7 -0
- package/archetypes/tower-defense/assets/skins/pathguard/skin.ogt +111 -0
- package/archetypes/tower-defense/assets/sprites/garden.ogt +66 -0
- package/archetypes/tower-defense/assets/sprites/garden.png +0 -0
- package/archetypes/tower-defense/assets/sprites/garden.png.ogt +7 -0
- package/archetypes/tower-defense/assets/sprites/glow.png +0 -0
- package/archetypes/tower-defense/assets/sprites/glow.png.ogt +7 -0
- package/archetypes/tower-defense/assets/sprites/ring.png +0 -0
- package/archetypes/tower-defense/assets/sprites/ring.png.ogt +7 -0
- package/archetypes/tower-defense/assets/sprites/spark.png +0 -0
- package/archetypes/tower-defense/assets/sprites/spark.png.ogt +7 -0
- package/archetypes/tower-defense/assets/strings/en.ogt +47 -0
- package/archetypes/tower-defense/assets/strings/zh-CN.ogt +47 -0
- package/archetypes/tower-defense/assets/tiles/garden.ogt +10 -0
- package/archetypes/tower-defense/assets/tiles/garden.png +0 -0
- package/archetypes/tower-defense/assets/tiles/garden.png.ogt +7 -0
- package/archetypes/tower-defense/gitattributes +22 -0
- package/archetypes/tower-defense/gitignore +8 -0
- package/archetypes/tower-defense/host.d.ts +46 -0
- package/archetypes/tower-defense/package.json +18 -0
- package/archetypes/tower-defense/project.ogt +14 -0
- 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/art.ts +24 -0
- package/archetypes/tower-defense/src/components.ts +156 -0
- package/archetypes/tower-defense/src/main.ts +253 -0
- package/archetypes/tower-defense/src/systems.ts +658 -0
- package/archetypes/tower-defense/src/ui.ts +382 -0
- package/archetypes/tower-defense/tests/flow.og.ts +56 -0
- package/archetypes/tower-defense/tests/frames.og.ts +31 -0
- package/archetypes/tower-defense/tests/frames.ts +134 -0
- package/archetypes/tower-defense/tests/lib.ts +81 -0
- package/archetypes/tower-defense/tests/lose.og.ts +40 -0
- package/archetypes/tower-defense/tests/maze.og.ts +53 -0
- package/archetypes/tower-defense/tests/pad.og.ts +41 -0
- package/archetypes/tower-defense/tests/pause.og.ts +59 -0
- package/archetypes/tower-defense/tests/phone.og.ts +49 -0
- package/archetypes/tower-defense/tests/replay.og.ts +28 -0
- package/archetypes/tower-defense/tests/win.og.ts +58 -0
- package/archetypes/tower-defense/tools/make-assets.py +640 -0
- package/archetypes/tower-defense/tools/oglite.py +285 -0
- package/archetypes/tower-defense/tsconfig.json +17 -0
- package/bin/create.ts +503 -0
- package/looks/catalogue.json +1871 -0
- package/package.json +31 -4
- package/template/.origin/setup +14 -0
- package/template/LICENSES.md +23 -0
- package/template/README.md +37 -0
- package/template/assets/ai/guard.ogt +48 -0
- package/template/assets/audio/blip.wav +0 -0
- package/template/assets/audio/click.ogt +9 -0
- package/template/assets/fonts/NotoSansSC-Regular-subset.ttf +0 -0
- package/template/assets/fonts/NotoSansSC-Regular-subset.ttf.ogt +12 -0
- package/template/assets/fonts/OFL.txt +93 -0
- package/template/assets/looks/origin-game.ogt +12 -0
- package/template/assets/models/dropship.glb +0 -0
- package/template/assets/models/walker.glb +0 -0
- package/template/assets/nav/yard.ogt +27 -0
- package/template/assets/scenes/main.ogt +34 -0
- package/template/assets/strings/en.ogt +14 -0
- package/template/assets/textures/stone.png +0 -0
- package/template/assets/textures/stone_n.png +0 -0
- package/template/assets/textures/stone_n.png.ogt +7 -0
- package/template/gitattributes +22 -0
- package/template/gitignore +8 -0
- package/template/package.json +18 -0
- package/template/project.ogt +25 -0
- package/template/src/main.ts +246 -0
- package/template/tests/guard.og.ts +67 -0
- package/template/tests/smoke.og.ts +43 -0
- package/template/tsconfig.json +17 -0
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Regenerates Lamp Dive's self-made assets (CC0), byte for byte:
|
|
3
|
+
|
|
4
|
+
python3 tools/make-assets.py # from the archetype directory
|
|
5
|
+
|
|
6
|
+
- assets/tiles/tomb.png + tomb.ogt: a 16 px pixel-art tileset: the wall
|
|
7
|
+
terrain's sixteen bitmask shapes (stone tops with a lit rim and a brick
|
|
8
|
+
face where the floor is), three floor slabs, the stairs, the relic's
|
|
9
|
+
pedestal and the two fog tiles (unseen, remembered),
|
|
10
|
+
- assets/maps/dive.ogt: the 28 x 20 floor every dive carves at run time
|
|
11
|
+
(all wall at first; layers ground, walls, decor, fog),
|
|
12
|
+
- assets/sprites/dive.png + dive.ogt: the flipbook sheet (the lamp-bearer,
|
|
13
|
+
the rat, the skeleton, the guardian, the items, the relic) and
|
|
14
|
+
assets/sprites/glow.png (the lamp's light),
|
|
15
|
+
- assets/audio/*.wav: steps, hits, hurts, pickups, the stairs, the
|
|
16
|
+
guardian, the fall and the win, and the tomb's music loop,
|
|
17
|
+
- assets/fonts/NotoSansSC-subset.ttf + .ogt: Noto Sans SC subset to the
|
|
18
|
+
characters of assets/strings/zh-CN.ogt (needs fontTools and the project
|
|
19
|
+
template's font; skipped with a note when either is missing).
|
|
20
|
+
|
|
21
|
+
Standard library only except the font subset; deterministic.
|
|
22
|
+
"""
|
|
23
|
+
import math, os, sys
|
|
24
|
+
|
|
25
|
+
here = os.path.dirname(os.path.abspath(__file__))
|
|
26
|
+
sys.path.insert(0, here)
|
|
27
|
+
from oglite import png_bytes, write_wav, tone, noise, mix, concat, subset_font # noqa: E402
|
|
28
|
+
|
|
29
|
+
root = os.path.dirname(here)
|
|
30
|
+
assets = os.path.join(root, "assets")
|
|
31
|
+
T = 16
|
|
32
|
+
W, H = 28, 20 # the floor's cells
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def write(path, data):
|
|
36
|
+
path = os.path.join(assets, path)
|
|
37
|
+
os.makedirs(os.path.dirname(path), exist_ok=True)
|
|
38
|
+
with open(path, "wb" if isinstance(data, bytes) else "w") as f:
|
|
39
|
+
f.write(data)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def rgb(h, a=255):
|
|
43
|
+
h = h.lstrip("#")
|
|
44
|
+
return (int(h[0:2], 16), int(h[2:4], 16), int(h[4:6], 16), a)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
CLEAR = (0, 0, 0, 0)
|
|
48
|
+
INK = "#0b0910"
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class Pix:
|
|
52
|
+
"""Hard-edged pixels (no antialiasing): pixel art, sampled nearest."""
|
|
53
|
+
|
|
54
|
+
def __init__(self, w, h):
|
|
55
|
+
self.w, self.h = w, h
|
|
56
|
+
self.p = [CLEAR] * (w * h)
|
|
57
|
+
|
|
58
|
+
def set(self, x, y, c):
|
|
59
|
+
if 0 <= x < self.w and 0 <= y < self.h:
|
|
60
|
+
self.p[y * self.w + x] = rgb(c) if isinstance(c, str) else c
|
|
61
|
+
|
|
62
|
+
def rect(self, x, y, w, h, c):
|
|
63
|
+
for yy in range(y, y + h):
|
|
64
|
+
for xx in range(x, x + w):
|
|
65
|
+
self.set(xx, yy, c)
|
|
66
|
+
|
|
67
|
+
def blit(self, other, ox, oy):
|
|
68
|
+
for y in range(other.h):
|
|
69
|
+
for x in range(other.w):
|
|
70
|
+
c = other.p[y * other.w + x]
|
|
71
|
+
if c[3]:
|
|
72
|
+
self.set(ox + x, oy + y, c)
|
|
73
|
+
|
|
74
|
+
def outline(self, colour=INK):
|
|
75
|
+
src = list(self.p)
|
|
76
|
+
for y in range(self.h):
|
|
77
|
+
for x in range(self.w):
|
|
78
|
+
if src[y * self.w + x][3]:
|
|
79
|
+
continue
|
|
80
|
+
for dx, dy in ((1, 0), (-1, 0), (0, 1), (0, -1)):
|
|
81
|
+
xx, yy = x + dx, y + dy
|
|
82
|
+
if 0 <= xx < self.w and 0 <= yy < self.h and src[yy * self.w + xx][3]:
|
|
83
|
+
self.set(x, y, colour)
|
|
84
|
+
break
|
|
85
|
+
|
|
86
|
+
def png(self):
|
|
87
|
+
rows = [bytes(v for c in self.p[y * self.w:(y + 1) * self.w] for v in c) for y in range(self.h)]
|
|
88
|
+
return png_bytes(self.w, self.h, rows)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def hashn(*v):
|
|
92
|
+
h = 2166136261
|
|
93
|
+
for x in v:
|
|
94
|
+
h = ((h ^ (x & 0xFFFFFFFF)) * 16777619) & 0xFFFFFFFF
|
|
95
|
+
return h
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# ── the tileset ────────────────────────────────────────────────────────────
|
|
99
|
+
|
|
100
|
+
N, E, S, Wm = 1, 2, 4, 8
|
|
101
|
+
STONE = ("#211b27", "#271f2e", "#2d2535")
|
|
102
|
+
RIM = "#6b5c7a"
|
|
103
|
+
FACE = ("#3a3044", "#43384e")
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def wall_tile(mask):
|
|
107
|
+
"""A wall cell whose neighbours in `mask` (N E S W) are walls too: a
|
|
108
|
+
stone top, a lit rim where it meets the floor, a brick face below."""
|
|
109
|
+
t = Pix(T, T)
|
|
110
|
+
for y in range(T):
|
|
111
|
+
for x in range(T):
|
|
112
|
+
t.set(x, y, STONE[hashn(x // 4, y // 3, mask & 0) % 3])
|
|
113
|
+
if not mask & N:
|
|
114
|
+
t.rect(0, 0, T, 1, RIM)
|
|
115
|
+
if not mask & Wm:
|
|
116
|
+
t.rect(0, 0, 1, T, RIM)
|
|
117
|
+
if not mask & E:
|
|
118
|
+
t.rect(T - 1, 0, 1, T, "#1a1520")
|
|
119
|
+
if not mask & S:
|
|
120
|
+
# The face the floor below sees: two rows of bricks.
|
|
121
|
+
for y in range(T - 6, T):
|
|
122
|
+
for x in range(T):
|
|
123
|
+
t.set(x, y, FACE[(x // 4 + (y // 3)) % 2])
|
|
124
|
+
t.rect(0, T - 6, T, 1, RIM)
|
|
125
|
+
for y in (T - 3,):
|
|
126
|
+
t.rect(0, y, T, 1, INK)
|
|
127
|
+
return t
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def floor_tile(v):
|
|
131
|
+
t = Pix(T, T)
|
|
132
|
+
base = ("#6a5a6e", "#66566a", "#6e5e72")[v]
|
|
133
|
+
t.rect(0, 0, T, T, base)
|
|
134
|
+
t.rect(0, 0, T, 1, "#57495c")
|
|
135
|
+
t.rect(0, 0, 1, T, "#57495c")
|
|
136
|
+
for k in range(3):
|
|
137
|
+
h = hashn(v, k, 3)
|
|
138
|
+
t.set(2 + h % 12, 2 + (h >> 8) % 12, "#7a6a7e")
|
|
139
|
+
if v == 2:
|
|
140
|
+
t.rect(4, 9, 5, 1, "#57495c")
|
|
141
|
+
return t
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def stairs_tile():
|
|
145
|
+
t = floor_tile(0)
|
|
146
|
+
for i in range(5):
|
|
147
|
+
y = 3 + i * 2
|
|
148
|
+
shade = ("#2a2230", "#221b28", "#1a1520", "#130f18", "#0b0910")[i]
|
|
149
|
+
t.rect(2 + i, y, 12 - 2 * i, 2, shade)
|
|
150
|
+
t.rect(2 + i, y, 12 - 2 * i, 1, "#6b5c7a" if i == 0 else shade)
|
|
151
|
+
return t
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def pedestal_tile():
|
|
155
|
+
t = floor_tile(1)
|
|
156
|
+
for y in range(T):
|
|
157
|
+
for x in range(T):
|
|
158
|
+
d = math.hypot(x - 7.5, y - 7.5)
|
|
159
|
+
if 5.5 <= d <= 6.6:
|
|
160
|
+
t.set(x, y, "#c9a24a")
|
|
161
|
+
elif d < 5.5:
|
|
162
|
+
t.set(x, y, "#5e5068")
|
|
163
|
+
return t
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def fog_tile(alpha):
|
|
167
|
+
t = Pix(T, T)
|
|
168
|
+
t.rect(0, 0, T, T, rgb("#08060b", alpha))
|
|
169
|
+
return t
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def tileset():
|
|
173
|
+
sheet = Pix(8 * T, 4 * T)
|
|
174
|
+
tiles = [wall_tile(m) for m in range(16)] + [floor_tile(0), floor_tile(1), floor_tile(2), stairs_tile(), pedestal_tile(), fog_tile(255), fog_tile(150)]
|
|
175
|
+
for i, t in enumerate(tiles):
|
|
176
|
+
sheet.blit(t, (i % 8) * T, (i // 8) * T)
|
|
177
|
+
return sheet
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
TILESET = """type tileset
|
|
181
|
+
version 1
|
|
182
|
+
---
|
|
183
|
+
# Written by tools/make-assets.py: 0-15 the wall terrain's bitmask shapes
|
|
184
|
+
# (N 1, E 2, S 4, W 8 filled), 16-18 floor slabs, 19 the stairs down, 20 the
|
|
185
|
+
# relic's pedestal, 21 fog never seen, 22 fog remembered.
|
|
186
|
+
texture "tiles/tomb.png"
|
|
187
|
+
grid 16 16 8 4
|
|
188
|
+
filter nearest
|
|
189
|
+
solid 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
|
190
|
+
terrain wall {
|
|
191
|
+
mode bitmask16
|
|
192
|
+
""" + "".join(f" rule {m} {m}\n" for m in range(16)) + """ default 15
|
|
193
|
+
edge filled
|
|
194
|
+
}
|
|
195
|
+
"""
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def map_text():
|
|
199
|
+
full = "#" * W
|
|
200
|
+
empty = "." * W
|
|
201
|
+
out = ["type tilemap", "version 1", "---",
|
|
202
|
+
"# The floor every dive carves at run time (tools/make-assets.py): 28 x 20",
|
|
203
|
+
"# cells of 16 px, one world unit each, all wall until og.tilemap.setTile",
|
|
204
|
+
"# opens the rooms and corridors; the fog layer starts dark.",
|
|
205
|
+
f"size {W} {H}", "tile 16 16", "unit 1", 'tileset "tiles/tomb.ogt"',
|
|
206
|
+
"layer ground {", " z -12"]
|
|
207
|
+
out += [f' row "{empty}"' for _ in range(H)]
|
|
208
|
+
out += ["}", "layer walls {", " z -11", " terrain wall", " collision true", ' legend "#" 1']
|
|
209
|
+
out += [f' row "{full}"' for _ in range(H)]
|
|
210
|
+
out += ["}", "layer decor {", " z -10"]
|
|
211
|
+
out += [f' row "{empty}"' for _ in range(H)]
|
|
212
|
+
out += ["}", "layer fog {", " z 30", ' legend "#" 21']
|
|
213
|
+
out += [f' row "{full}"' for _ in range(H)]
|
|
214
|
+
out += ["}"]
|
|
215
|
+
return "\n".join(out) + "\n"
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
# ── sprites ────────────────────────────────────────────────────────────────
|
|
219
|
+
|
|
220
|
+
def hero(k):
|
|
221
|
+
t = Pix(T, T)
|
|
222
|
+
# The lamp-bearer: a hooded figure in ochre, the lamp held out to the right.
|
|
223
|
+
t.rect(5, 3, 6, 5, "#6b4a2e") # hood
|
|
224
|
+
t.rect(6, 5, 4, 3, "#e8c9a0") # face
|
|
225
|
+
t.set(7, 6, INK); t.set(9, 6, INK)
|
|
226
|
+
t.rect(4, 8, 8, 6, "#a8743a") # cloak
|
|
227
|
+
t.rect(5, 8, 6, 1, "#c48a45")
|
|
228
|
+
t.rect(5, 14, 2, 2, "#3a2a1c"); t.rect(9, 14, 2, 2, "#3a2a1c")
|
|
229
|
+
t.rect(12, 8, 1, 2, "#6b4a2e") # arm
|
|
230
|
+
lamp = ("#ffd27a", "#ffe9b0")[k]
|
|
231
|
+
t.rect(12, 10, 3, 3, lamp)
|
|
232
|
+
t.set(13, 9, "#3a2a1c")
|
|
233
|
+
t.outline()
|
|
234
|
+
return t
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def rat(k):
|
|
238
|
+
t = Pix(T, T)
|
|
239
|
+
y = 9 + (k & 1)
|
|
240
|
+
t.rect(3, y, 9, 4, "#7a7480")
|
|
241
|
+
t.rect(10, y - 1, 3, 3, "#8a8490")
|
|
242
|
+
t.set(12, y, INK)
|
|
243
|
+
t.set(13, y + 1, "#e08a9a")
|
|
244
|
+
t.rect(1, y + 2, 2, 1, "#e08a9a")
|
|
245
|
+
t.set(0, y + 1 - (k & 1), "#e08a9a")
|
|
246
|
+
t.rect(4, y + 4, 1, 1, "#5a5460"); t.rect(9, y + 4, 1, 1, "#5a5460")
|
|
247
|
+
t.outline()
|
|
248
|
+
return t
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
def skeleton(k):
|
|
252
|
+
t = Pix(T, T)
|
|
253
|
+
b = 1 if k else 0
|
|
254
|
+
t.rect(5, 1 + b, 6, 5, "#e6e0cf") # skull
|
|
255
|
+
t.set(6, 3 + b, INK); t.set(9, 3 + b, INK)
|
|
256
|
+
t.rect(7, 5 + b, 2, 1, INK)
|
|
257
|
+
t.rect(7, 6 + b, 2, 6, "#d8d2c0") # spine
|
|
258
|
+
for y in (7, 9):
|
|
259
|
+
t.rect(5, y + b, 6, 1, "#d8d2c0") # ribs
|
|
260
|
+
t.rect(4, 7 + b, 1, 4, "#d8d2c0"); t.rect(11, 7 + b, 1, 4, "#d8d2c0")
|
|
261
|
+
t.rect(6, 12, 1, 4, "#d8d2c0"); t.rect(9, 12, 1, 4, "#d8d2c0")
|
|
262
|
+
t.rect(12, 4 + b, 1, 7, "#8a8f9a") # a rusty blade
|
|
263
|
+
t.outline()
|
|
264
|
+
return t
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
def guardian(k):
|
|
268
|
+
t = Pix(T, T)
|
|
269
|
+
# The moss-faced guardian: a stone bulk with a mossy face and two embers for eyes.
|
|
270
|
+
t.rect(2, 2, 12, 13, "#5a5662")
|
|
271
|
+
t.rect(3, 3, 10, 5, "#4f7a3a") # moss
|
|
272
|
+
for x in (4, 7, 10):
|
|
273
|
+
t.rect(x, 7, 2, 2, "#4f7a3a")
|
|
274
|
+
eye = ("#ff8a3a", "#ffc06a")[k]
|
|
275
|
+
t.rect(5, 5, 2, 2, eye); t.rect(9, 5, 2, 2, eye)
|
|
276
|
+
t.rect(4, 10, 8, 1, "#3c3944")
|
|
277
|
+
t.rect(1, 9, 2, 5, "#5a5662"); t.rect(13, 9, 2, 5, "#5a5662")
|
|
278
|
+
t.outline()
|
|
279
|
+
return t
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def potion(_):
|
|
283
|
+
t = Pix(T, T)
|
|
284
|
+
t.rect(7, 3, 2, 3, "#c9c2a8")
|
|
285
|
+
t.rect(5, 6, 6, 7, "#d9405a")
|
|
286
|
+
t.rect(6, 7, 2, 2, "#ff8a9a")
|
|
287
|
+
t.outline()
|
|
288
|
+
return t
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
def blade(_):
|
|
292
|
+
t = Pix(T, T)
|
|
293
|
+
for i in range(8):
|
|
294
|
+
t.set(4 + i, 11 - i, "#d8dde6")
|
|
295
|
+
t.set(5 + i, 11 - i, "#a8afbc")
|
|
296
|
+
t.rect(3, 11, 3, 1, "#c9a24a"); t.rect(4, 10, 1, 3, "#c9a24a")
|
|
297
|
+
t.rect(2, 12, 2, 2, "#6b4a2e")
|
|
298
|
+
t.outline()
|
|
299
|
+
return t
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
def ward(_):
|
|
303
|
+
t = Pix(T, T)
|
|
304
|
+
t.rect(4, 3, 8, 7, "#5d7fb5")
|
|
305
|
+
t.rect(5, 10, 6, 2, "#5d7fb5"); t.rect(6, 12, 4, 1, "#5d7fb5")
|
|
306
|
+
t.rect(7, 4, 2, 7, "#c9a24a"); t.rect(5, 6, 6, 2, "#c9a24a")
|
|
307
|
+
t.outline()
|
|
308
|
+
return t
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
def oil(_):
|
|
312
|
+
t = Pix(T, T)
|
|
313
|
+
t.rect(5, 6, 6, 7, "#8a5a2e")
|
|
314
|
+
t.rect(6, 4, 4, 2, "#6b4a2e")
|
|
315
|
+
t.rect(10, 5, 3, 1, "#6b4a2e")
|
|
316
|
+
t.rect(6, 8, 4, 3, "#ffd27a")
|
|
317
|
+
t.outline()
|
|
318
|
+
return t
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
def coin(k):
|
|
322
|
+
t = Pix(T, T)
|
|
323
|
+
w = (6, 4)[k]
|
|
324
|
+
t.rect(8 - w // 2, 5, w, 7, "#ffcd4a")
|
|
325
|
+
t.rect(8 - w // 2 + 1, 6, 1, 4, "#fff0b0")
|
|
326
|
+
t.outline()
|
|
327
|
+
return t
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
def relic(k):
|
|
331
|
+
t = Pix(T, T)
|
|
332
|
+
# The relic: a small sun disc on a stem, shining.
|
|
333
|
+
t.rect(7, 9, 2, 5, "#c9a24a")
|
|
334
|
+
t.rect(5, 13, 6, 2, "#c9a24a")
|
|
335
|
+
for y in range(T):
|
|
336
|
+
for x in range(T):
|
|
337
|
+
if math.hypot(x - 7.5, y - 5.5) <= 3.6:
|
|
338
|
+
t.set(x, y, "#ffd27a" if k else "#ffe9b0")
|
|
339
|
+
if k:
|
|
340
|
+
for (x, y) in ((7, 0), (12, 5), (2, 5), (7, 10)):
|
|
341
|
+
t.set(x, y, "#fff6d8")
|
|
342
|
+
t.outline()
|
|
343
|
+
return t
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
# Frames in sheet order, eight a row: the clips name them (src/art.ts reads clips by position).
|
|
347
|
+
FRAMES = [hero(0), hero(1), rat(0), rat(1), skeleton(0), skeleton(1), guardian(0), guardian(1),
|
|
348
|
+
potion(0), blade(0), ward(0), oil(0), coin(0), coin(1), relic(0), relic(1)]
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def sheet():
|
|
352
|
+
s = Pix(8 * T, 2 * T)
|
|
353
|
+
for i, f in enumerate(FRAMES):
|
|
354
|
+
s.blit(f, (i % 8) * T, (i // 8) * T)
|
|
355
|
+
return s
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
SHEET = """type flipbook
|
|
359
|
+
version 1
|
|
360
|
+
---
|
|
361
|
+
# Written by tools/make-assets.py: 16 px frames. Everything breathes on the
|
|
362
|
+
# spot (a turn-based dive has no walk cycle: steps are tweens).
|
|
363
|
+
texture "dive.png"
|
|
364
|
+
pivot 0.5 0.5
|
|
365
|
+
grid 16 16 8 2
|
|
366
|
+
clip hero {
|
|
367
|
+
frames 0 1
|
|
368
|
+
durations 0.5 0.18
|
|
369
|
+
}
|
|
370
|
+
clip rat {
|
|
371
|
+
frames 2 3
|
|
372
|
+
fps 4
|
|
373
|
+
}
|
|
374
|
+
clip skeleton {
|
|
375
|
+
frames 4 5
|
|
376
|
+
fps 2
|
|
377
|
+
mode pingPong
|
|
378
|
+
}
|
|
379
|
+
clip guardian {
|
|
380
|
+
frames 6 7
|
|
381
|
+
durations 0.6 0.3
|
|
382
|
+
}
|
|
383
|
+
clip potion {
|
|
384
|
+
frames 8
|
|
385
|
+
fps 1
|
|
386
|
+
}
|
|
387
|
+
clip blade {
|
|
388
|
+
frames 9
|
|
389
|
+
fps 1
|
|
390
|
+
}
|
|
391
|
+
clip ward {
|
|
392
|
+
frames 10
|
|
393
|
+
fps 1
|
|
394
|
+
}
|
|
395
|
+
clip oil {
|
|
396
|
+
frames 11
|
|
397
|
+
fps 1
|
|
398
|
+
}
|
|
399
|
+
clip coin {
|
|
400
|
+
frames 12 13
|
|
401
|
+
fps 5
|
|
402
|
+
mode pingPong
|
|
403
|
+
}
|
|
404
|
+
clip relic {
|
|
405
|
+
frames 14 15
|
|
406
|
+
durations 0.4 0.25
|
|
407
|
+
}
|
|
408
|
+
"""
|
|
409
|
+
|
|
410
|
+
PIXEL = """type import
|
|
411
|
+
version 1
|
|
412
|
+
---
|
|
413
|
+
# Pixel art: lossless, no mips, sampled nearest.
|
|
414
|
+
texture {
|
|
415
|
+
kind pixel
|
|
416
|
+
}
|
|
417
|
+
"""
|
|
418
|
+
|
|
419
|
+
LINEAR = """type import
|
|
420
|
+
version 1
|
|
421
|
+
---
|
|
422
|
+
# A soft light: lossless, sampled linear.
|
|
423
|
+
texture {
|
|
424
|
+
kind color
|
|
425
|
+
}
|
|
426
|
+
"""
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
def glow():
|
|
430
|
+
n = 64
|
|
431
|
+
rows = []
|
|
432
|
+
for y in range(n):
|
|
433
|
+
row = bytearray()
|
|
434
|
+
for x in range(n):
|
|
435
|
+
d = math.hypot(x + 0.5 - n / 2, y + 0.5 - n / 2) / (n / 2)
|
|
436
|
+
a = max(0.0, 1 - d) ** 1.8
|
|
437
|
+
row += bytes([255, 255, 255, round(a * 255)])
|
|
438
|
+
rows.append(bytes(row))
|
|
439
|
+
return png_bytes(n, n, rows)
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
# ── sounds ─────────────────────────────────────────────────────────────────
|
|
443
|
+
|
|
444
|
+
RATE = 22050
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
def music():
|
|
448
|
+
"""Eight bars at 66 BPM in D minor: a low drone and a bell that answers itself, looped seamlessly."""
|
|
449
|
+
beat = 60 / 66
|
|
450
|
+
total = int(32 * beat * RATE)
|
|
451
|
+
out = [0.0] * total
|
|
452
|
+
for i in range(total):
|
|
453
|
+
t = i / RATE
|
|
454
|
+
swell = 0.6 + 0.4 * math.sin(2 * math.pi * t / (16 * beat))
|
|
455
|
+
out[i] += 0.05 * swell * (math.sin(2 * math.pi * 73.42 * t) + 0.5 * math.sin(2 * math.pi * 110.0 * t))
|
|
456
|
+
bells = [(0, 587.33), (3, 523.25), (6, 440.0), (8, 466.16), (12, 587.33), (14, 698.46), (19, 659.25), (22, 587.33), (24, 440.0), (28, 523.25)]
|
|
457
|
+
for b, f in bells:
|
|
458
|
+
s0 = int(b * beat * RATE)
|
|
459
|
+
for i in range(int(3 * beat * RATE)):
|
|
460
|
+
t = i / RATE
|
|
461
|
+
v = 0.07 * math.exp(-t / 1.1) * (math.sin(2 * math.pi * f * t) + 0.35 * math.sin(2 * math.pi * f * 2.76 * t))
|
|
462
|
+
out[(s0 + i) % total] += v
|
|
463
|
+
return out
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def sounds():
|
|
467
|
+
a = os.path.join(assets, "audio")
|
|
468
|
+
os.makedirs(a, exist_ok=True)
|
|
469
|
+
w = lambda name, s: write_wav(os.path.join(a, name), s) # noqa: E731
|
|
470
|
+
w("hit.wav", mix(noise(0.1, decay=0.03, gain=0.45, seed=3), tone(0.12, 260, 120, shape="square", decay=0.05, gain=0.3)))
|
|
471
|
+
w("hurt.wav", mix(tone(0.25, 330, 110, shape="square", decay=0.1, gain=0.35), noise(0.15, decay=0.05, gain=0.2, seed=9)))
|
|
472
|
+
w("kill.wav", concat(tone(0.06, 220, 440, shape="square", decay=0.04, gain=0.3), noise(0.25, decay=0.1, gain=0.35, seed=4)))
|
|
473
|
+
w("pickup.wav", concat(tone(0.06, 784, shape="square", decay=0.05, gain=0.28), tone(0.16, 1175, shape="square", decay=0.07, gain=0.28)))
|
|
474
|
+
w("item.wav", concat(*[tone(0.07, f, shape="tri", gain=0.35, decay=0.06) for f in (523.25, 659.25, 783.99)], tone(0.22, 1046.5, shape="tri", gain=0.35, decay=0.12)))
|
|
475
|
+
w("drink.wav", concat(*[tone(0.07, f, f * 0.8, shape="sine", gain=0.4, decay=0.05) for f in (330, 392, 440)]))
|
|
476
|
+
w("stairs.wav", mix(noise(0.6, decay=0.25, gain=0.25, seed=21), tone(0.6, 220, 110, shape="tri", decay=0.3, gain=0.4)))
|
|
477
|
+
w("roar.wav", mix(tone(0.7, 110, 70, shape="square", decay=0.3, gain=0.3), noise(0.7, decay=0.3, gain=0.3, seed=13)))
|
|
478
|
+
w("telegraph.wav", concat(tone(0.08, 880, shape="square", decay=0.05, gain=0.25), tone(0.08, 880, shape="square", decay=0.05, gain=0.25)))
|
|
479
|
+
w("fall.wav", concat(*[tone(0.26, f, shape="tri", gain=0.4, decay=0.2) for f in (392.0, 349.23, 293.66)], tone(0.8, 220.0, shape="tri", gain=0.4, decay=0.45)))
|
|
480
|
+
w("won.wav", concat(*[tone(0.14, f, shape="tri", gain=0.4, decay=0.12) for f in (587.33, 698.46, 880.0, 698.46)], tone(0.7, 1174.66, shape="tri", gain=0.4, decay=0.4)))
|
|
481
|
+
w("bump.wav", tone(0.06, 140, 100, shape="tri", decay=0.03, gain=0.4))
|
|
482
|
+
w("tomb.wav", music())
|
|
483
|
+
presets = {"ui-press": "click", "ui-open": "select", "ui-close": "back", "ui-error": "error", "ui-success": "levelup", "step": "footstep"}
|
|
484
|
+
for name, preset in presets.items():
|
|
485
|
+
write(f"audio/{name}.ogt", f'type sfx\nversion 1\n---\n# og sfx\'s "{preset}" preset, synthesised by og cook.\npreset "{preset}"\nseed 0\npitch 1\nlength 1\nvolume 0.8\n')
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
# ── the font ───────────────────────────────────────────────────────────────
|
|
489
|
+
|
|
490
|
+
def font():
|
|
491
|
+
text = open(os.path.join(assets, "strings", "zh-CN.ogt"), encoding="utf-8").read()
|
|
492
|
+
chars = "".join(sorted({ch for ch in text if ord(ch) > 0x2E7F}))
|
|
493
|
+
src = os.path.join(root, "..", "..", "game", "assets", "fonts", "NotoSansSC-Regular-subset.ttf")
|
|
494
|
+
try:
|
|
495
|
+
subset_font(src, os.path.join(assets, "fonts", "NotoSansSC-subset.ttf"), chars)
|
|
496
|
+
except Exception as e: # noqa: BLE001
|
|
497
|
+
print(f"font subset skipped ({e}); the committed assets/fonts/NotoSansSC-subset.ttf stays")
|
|
498
|
+
write("fonts/NotoSansSC-subset.ttf.ogt", "type import\nversion 1\n---\n"
|
|
499
|
+
"# Latin-1, CJK punctuation and every character of assets/strings/zh-CN.ogt (tools/make-assets.py).\n"
|
|
500
|
+
f'font {{\n charset latin cjk-punct\n chars "{chars}"\n em_px 32\n px_range 4\n}}\n')
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
def main():
|
|
504
|
+
write("tiles/tomb.png", tileset().png())
|
|
505
|
+
write("tiles/tomb.png.ogt", PIXEL)
|
|
506
|
+
write("tiles/tomb.ogt", TILESET)
|
|
507
|
+
write("maps/dive.ogt", map_text())
|
|
508
|
+
write("sprites/dive.png", sheet().png())
|
|
509
|
+
write("sprites/dive.png.ogt", PIXEL)
|
|
510
|
+
write("sprites/dive.ogt", SHEET)
|
|
511
|
+
write("sprites/glow.png", glow())
|
|
512
|
+
write("sprites/glow.png.ogt", LINEAR)
|
|
513
|
+
sounds()
|
|
514
|
+
font()
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
if __name__ == "__main__":
|
|
518
|
+
main()
|