Update to flappybat art
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
jsmem.txt
|
||||
.DS_Store
|
||||
.nova
|
BIN
audio/die.qoa
BIN
audio/point.qoa
BIN
audio/point.wav
Normal file
BIN
audio/swoosh.qoa
BIN
audio/woosh.wav
Normal file
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"draw_layer":-10,
|
||||
"sprite": {
|
||||
"path": "day.png",
|
||||
"path": "day.gif",
|
||||
"enabled": true,
|
||||
"color": [
|
||||
1,
|
||||
|
|
BIN
background/day.gif
Normal file
After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 6.9 KiB |
|
@ -1,6 +1,6 @@
|
|||
this.draw_layer = 5;
|
||||
var sp = this.add_component(component.sprite);
|
||||
sp.path = "yellowbird-midflap.png";
|
||||
sp.path = "mid.gif";
|
||||
|
||||
this.physupdate = function() {
|
||||
Game.camera.pos = [this.pos.x,0];
|
||||
|
@ -11,7 +11,7 @@ this.flap = function()
|
|||
{
|
||||
this.velocity = [this.velocity.x,0];
|
||||
this.pulse([0,400]);
|
||||
this.cry("wing.qoa");
|
||||
this.cry("flap.wav");
|
||||
}
|
||||
|
||||
this.inputs = {};
|
||||
|
@ -24,6 +24,6 @@ this.collide = function(hit)
|
|||
this.velocity = [0,0];
|
||||
player[0].uncontrol(this);
|
||||
game.gameover();
|
||||
this.cry("hit.qoa");
|
||||
this.cry("hit.wav");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"phys": 0,
|
||||
"sprite": {
|
||||
"pos": [
|
||||
-15.758410453796387,
|
||||
|
@ -15,7 +16,6 @@
|
|||
0,
|
||||
0
|
||||
],
|
||||
"sensor": true,
|
||||
"comp": "circle2d"
|
||||
}
|
||||
}
|
||||
|
|
BIN
bird/down.gif
Normal file
After Width: | Height: | Size: 361 B |
BIN
bird/flap.wav
Normal file
BIN
bird/hit.qoa
BIN
bird/hit.wav
Normal file
BIN
bird/mid.gif
Normal file
After Width: | Height: | Size: 365 B |
BIN
bird/up.gif
Normal file
After Width: | Height: | Size: 362 B |
BIN
bird/wing.qoa
Before Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 425 B |
Before Width: | Height: | Size: 427 B |
BIN
clouds.gif
Normal file
After Width: | Height: | Size: 6.2 KiB |
10
game.js
|
@ -61,3 +61,13 @@ this.inputs.space = function()
|
|||
}
|
||||
|
||||
this.prepare();
|
||||
|
||||
var ll = 2;
|
||||
function cast_lightning()
|
||||
{
|
||||
var lp = world.spawn(ur.lightning);
|
||||
lp.pos = bird.pos;
|
||||
this.delay(cast_lightning, 2);
|
||||
}
|
||||
|
||||
this.delay(cast_lightning, ll);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
this.gui = function()
|
||||
{
|
||||
GUI.image("sprites/message.png", [50,100]);
|
||||
GUI.image("message.gif", [50,100]);
|
||||
}
|
||||
|
||||
this.inputs = {};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"sprite": {
|
||||
"path": "sprites/base.png",
|
||||
"path": "clouds.gif",
|
||||
"enabled": true,
|
||||
"color": [
|
||||
1,
|
||||
|
|
BIN
lightning.gif
Normal file
After Width: | Height: | Size: 2.3 KiB |
7
lightning.jso
Normal file
|
@ -0,0 +1,7 @@
|
|||
var sp = this.add_component(component.sprite);
|
||||
sp.path = "lightning";
|
||||
sp.play();
|
||||
var me = this;
|
||||
sp.anim_done = function() {
|
||||
me.kill();
|
||||
}
|
BIN
message.gif
Normal file
After Width: | Height: | Size: 163 KiB |
|
@ -2,5 +2,5 @@ this.collide = function(hit)
|
|||
{
|
||||
if (hit.obj.ur !== 'bird') return;
|
||||
game.score++;
|
||||
this.cry("audio/point.qoa");
|
||||
this.cry("audio/point");
|
||||
}
|
BIN
spacebar.gif
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
sparkle.gif
Normal file
After Width: | Height: | Size: 417 B |
Before Width: | Height: | Size: 1.6 KiB |
BIN
tower/fire.gif
Normal file
After Width: | Height: | Size: 404 B |
BIN
tower/tower.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
27
tower/tower.json
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ "frames": {
|
||||
"tower.gif": {
|
||||
"frame": { "x": 0, "y": 0, "w": 52, "h": 168 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 52, "h": 168 },
|
||||
"sourceSize": { "w": 52, "h": 168 },
|
||||
"duration": 100
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"app": "https://www.aseprite.org/",
|
||||
"version": "1.3.4-x64",
|
||||
"image": "tower.gif",
|
||||
"format": "RGBA8888",
|
||||
"size": { "w": 52, "h": 168 },
|
||||
"scale": "1",
|
||||
"slices": [
|
||||
{ "name": "room_top", "color": "#0000ffff", "keys": [{ "frame": 0, "bounds": {"x": 0, "y": 0, "w": 52, "h": 78 } }] },
|
||||
{ "name": "extender_top", "color": "#0000ffff", "keys": [{ "frame": 0, "bounds": {"x": 0, "y": 78, "w": 52, "h": 6 } }] },
|
||||
{ "name": "window_top", "color": "#0000ffff", "keys": [{ "frame": 0, "bounds": {"x": 0, "y": 84, "w": 52, "h": 7 } }] },
|
||||
{ "name": "window_middle", "color": "#0000ffff", "keys": [{ "frame": 0, "bounds": {"x": 0, "y": 91, "w": 52, "h": 15 } }] },
|
||||
{ "name": "extender_bottom", "color": "#0000ffff", "keys": [{ "frame": 0, "bounds": {"x": 0, "y": 156, "w": 52, "h": 12 } }] },
|
||||
{ "name": "bottom_room", "color": "#0000ffff", "keys": [{ "frame": 0, "bounds": {"x": 0, "y": 106, "w": 52, "h": 50 } }] }
|
||||
]
|
||||
}
|
||||
}
|