Update to flappybat art

This commit is contained in:
John Alanbrook 2024-03-13 12:15:02 -05:00
parent 3a723b8b69
commit aec9971922
39 changed files with 57 additions and 11 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
jsmem.txt
.DS_Store
.DS_Store
.nova

Binary file not shown.

Binary file not shown.

BIN
audio/point.wav Normal file

Binary file not shown.

Binary file not shown.

BIN
audio/woosh.wav Normal file

Binary file not shown.

View file

@ -1,4 +1,4 @@
this.physupdate = function()
{
this.pos = Game.camera.pos;
}
}

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -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");
}
}

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

BIN
bird/flap.wav Normal file

Binary file not shown.

Binary file not shown.

BIN
bird/hit.wav Normal file

Binary file not shown.

BIN
bird/mid.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

BIN
bird/up.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 B

BIN
clouds.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

@ -1,2 +1,3 @@
Game.width = 288;
Game.height = 512;

BIN
game.cdb Normal file

Binary file not shown.

10
game.js
View file

@ -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);

View file

@ -1,6 +1,6 @@
this.gui = function()
{
GUI.image("sprites/message.png", [50,100]);
GUI.image("message.gif", [50,100]);
}
this.inputs = {};

View file

@ -1,6 +1,6 @@
{
"sprite": {
"path": "sprites/base.png",
"path": "clouds.gif",
"enabled": true,
"color": [
1,

BIN
lightning.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

7
lightning.jso Normal file
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

View file

@ -1,4 +1,4 @@
{
{
"sprite": {
"pos": [
-25.87109375,

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
sparkle.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
tower/fire.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

BIN
tower/tower.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

27
tower/tower.json Normal file
View 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 } }] }
]
}
}