Skip to content

Commit

Permalink
added power rangers intro demo
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Westover <[email protected]>
  • Loading branch information
scottwestover committed Dec 3, 2024
1 parent 4b89793 commit 3a27ce6
Show file tree
Hide file tree
Showing 25 changed files with 1,265 additions and 0 deletions.
108 changes: 108 additions & 0 deletions hugo-site/static/games/power-rangers-intro/assets/animations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"anims": [
{
"key": "lightningStrikes",
"type": "frame",
"frames": [
{
"key": "lightning_spritesheet",
"frame": 0,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 1,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 2,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 3,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 0,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 2,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 1,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 0,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 3,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 2,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 0,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 1,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 2,
"duration": 0,
"keyframe": false
},
{
"key": "lightning_spritesheet",
"frame": 3,
"duration": 0,
"keyframe": false
}
],
"frameRate": 14,
"skipMissedFrames": true,
"repeat": -1,
"randomFrame": false
}
],
"globalTimeScale": 1,
"meta": {
"app": "Phaser Editor 2D v3",
"contentType": "Phaser v3 Animations"
},
"settings": {
"sourceLang": "JAVA_SCRIPT",
"esModule": false,
"generateCode": false
}
}
44 changes: 44 additions & 0 deletions hugo-site/static/games/power-rangers-intro/assets/asset-pack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"section1": {
"files": [
{
"url": "assets/animations.json",
"type": "animation",
"key": "animations"
},
{
"url": "assets/power_rangers/lightning_spritesheet.png",
"frameConfig": {
"frameWidth": 256,
"frameHeight": 213,
"startFrame": 0,
"endFrame": -1,
"spacing": 0,
"margin": 0
},
"type": "spritesheet",
"key": "lightning_spritesheet"
},
{
"atlasURL": "assets/power_rangers/logo_spritesheet.json",
"textureURL": "assets/power_rangers/logo_spritesheet.png",
"type": "atlas",
"key": "logo_spritesheet"
},
{
"url": [
"assets/power_glove_power_rangers.mp3"
],
"type": "audio",
"key": "power_glove_power_rangers"
}
]
},
"meta": {
"app": "Phaser Editor 2D - Asset Pack Editor",
"contentType": "phasereditor2d.pack.core.AssetContentType",
"url": "https://phasereditor2d.com",
"version": 2,
"showAllFilesInBlocks": false
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"frames": {
"1.png": {
"frame": {
"x": 0,
"y": 0,
"w": 256,
"h": 193
},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 256,
"h": 193
},
"sourceSize": {
"w": 256,
"h": 193
}
},
"2.png": {
"frame": {
"x": 256,
"y": 0,
"w": 256,
"h": 211
},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 256,
"h": 211
},
"sourceSize": {
"w": 256,
"h": 211
}
},
"3.png": {
"frame": {
"x": 512,
"y": 0,
"w": 256,
"h": 213
},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 256,
"h": 213
},
"sourceSize": {
"w": 256,
"h": 213
}
},
"4.png": {
"frame": {
"x": 768,
"y": 0,
"w": 256,
"h": 183
},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 256,
"h": 183
},
"sourceSize": {
"w": 256,
"h": 183
}
}
},
"meta": {
"app": "http://www.codeandweb.com/texturepacker",
"version": "1.0",
"image": "spritesheet.png",
"format": "RGBA8888",
"size": {
"w": 1024,
"h": 213
},
"scale": "1"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"frames": {
"bolt.png": {
"frame": {
"x": 0,
"y": 0,
"w": 406,
"h": 270
},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 406,
"h": 270
},
"sourceSize": {
"w": 406,
"h": 270
}
},
"mirror.png": {
"frame": {
"x": 406,
"y": 0,
"w": 406,
"h": 270
},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 406,
"h": 270
},
"sourceSize": {
"w": 406,
"h": 270
}
},
"text.png": {
"frame": {
"x": 812,
"y": 0,
"w": 406,
"h": 270
},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 406,
"h": 270
},
"sourceSize": {
"w": 406,
"h": 270
}
}
},
"meta": {
"app": "http://www.codeandweb.com/texturepacker",
"version": "1.0",
"image": "spritesheet.png",
"format": "RGBA8888",
"size": {
"w": 1218,
"h": 270
},
"scale": "1"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"section1": {
"files": [
{
"url": "assets/editorhero-logo.png",
"type": "image",
"key": "editorhero-logo"
},
{
"url": "assets/fonts/PressStart2P-Regular.ttf",
"format": "truetype",
"descriptors": {},
"type": "font",
"key": "PressStart2P-Regular"
}
]
},
"meta": {
"app": "Phaser Editor 2D - Asset Pack Editor",
"contentType": "phasereditor2d.pack.core.AssetContentType",
"url": "https://phasereditor2d.com",
"version": 2,
"showAllFilesInBlocks": false
}
}
28 changes: 28 additions & 0 deletions hugo-site/static/games/power-rangers-intro/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>Power Rangers SNES Intro</title>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser.min.js"></script>
<script src="src/main.js" type="module"></script>

<style>
body {
background: #2f2f2f;
margin: 0;
padding: 0;
}
</style>

</head>

<body>
</body>

</html>


Loading

0 comments on commit 3a27ce6

Please sign in to comment.