Skip to content

Commit

Permalink
nice
Browse files Browse the repository at this point in the history
  • Loading branch information
prosif committed Jan 16, 2024
1 parent 5b595bc commit 48c2a02
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/games/draw/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { Asset, Colors, Game, GameNode, Shapes, ShapeUtils } = require('squish-0767');
const { Asset, Colors, Game, GameNode, Shapes, ShapeUtils } = require('squish-1006');

const COLORS = Colors.COLORS;

class Draw extends Game {
static metadata() {
return {
aspectRatio: {x: 16, y: 9},
squishVersion: '0767',
squishVersion: '1006',
author: 'Joseph Garcia',
thumbnail: '1e844026921f7662a62ce72da869da63'
};
Expand Down
11 changes: 8 additions & 3 deletions src/games/sponge/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const dictionary = require('../../common/util/dictionary');

const { Asset, Game, GameNode, Colors, Shapes, ShapeUtils, Physics, GeometryUtils, subtypes } = require('squish-1005');
const { Asset, Game, GameNode, Colors, Shapes, ShapeUtils, Physics, GeometryUtils, subtypes } = require('squish-1006');

const COLORS = Colors.COLORS;

Expand All @@ -13,11 +13,16 @@ class Sponge extends Game {
description: 'sponge',
author: 'Joseph Garcia',
thumbnail: '8727eec293b562692fa6c7e3901a2274',
squishVersion: '1005',
maxPlayers: 2
squishVersion: '1006',
maxPlayers: 2,
tickRate: 60
};
}

tick() {
this.base.node.onStateChange();
}

constructor() {
super();

Expand Down
10 changes: 6 additions & 4 deletions src/games/squarer/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
const { Colors, Game, GameNode, Shapes, ShapeUtils } = require('squish-0767');
const { Colors, Game, GameNode, Shapes, ShapeUtils } = require('squish-1006');
const { BLACK, GRAY, GOLD, GREEN } = Colors.COLORS;

class Squarer extends Game {
static metadata() {
return {
aspectRatio: {x: 16, y: 9},
squishVersion: '0767',
squishVersion: '1006',
author: 'Yazeed Loonat',
thumbnail: 'b11960b455550b0c38ae7f5544af74ae'
thumbnail: 'b11960b455550b0c38ae7f5544af74ae',
tickRate: 60
};
}

Expand Down Expand Up @@ -58,7 +59,6 @@ class Squarer extends Game {
this.npc.forEach(npc => {
clearInterval(npc.interval);
this.base.removeChild(npc.id);
npc.free();
});
this.npc = [];
if (this.level > 9) {
Expand Down Expand Up @@ -221,6 +221,8 @@ class Squarer extends Game {
}
}
}

this.base.node.onStateChange();
}

checkForCollisions(node, toCheck = [], bounceFound = false) {
Expand Down

0 comments on commit 48c2a02

Please sign in to comment.