Skip to content

Commit

Permalink
fix hot potato
Browse files Browse the repository at this point in the history
  • Loading branch information
prosif committed Jul 15, 2023
1 parent c460185 commit c34df4d
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions src/games/hot-potato/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,25 @@ class HotPotato extends Game {
author: 'Joseph Garcia',
description: 'Click or tap the potato when you have the potato. Make sure you have sound turned on.',
name: 'Hot Potato',
thumbnail: 'adfd7a7b28e1e4e5b6ae3dc0b07a5784'
thumbnail: 'adfd7a7b28e1e4e5b6ae3dc0b07a5784',
assets: {
'potato': new Asset({
id: '48685183f94c7a3c14f315444c6460bd',
type: 'image'
}),
'potato-dead': new Asset({
id: '5fc598f08a887c8cd437bb3d9cdca197',
type: 'image'
}),
'hiss': new Asset({
'id': '9de51f059a02e37356da0faefcabe643',
'type': 'audio'
}),
'potato-bleh': new Asset({
'id': '600513b2cbd50c1f8c465b3098c22c56',
'type': 'audio'
})
}
};
}

Expand Down Expand Up @@ -124,6 +142,7 @@ class HotPotato extends Game {

this.songPlayedAt = Date.now();
this.soundTimestamp = 0;

this.potatoSound = new GameNode.Asset({
coordinates2d: ShapeUtils.rectangle(0, 0, 0, 0),
assetInfo: {
Expand Down Expand Up @@ -202,28 +221,6 @@ class HotPotato extends Game {
root: this.base
}];
}

getAssets() {
return {
'potato': new Asset({
id: '48685183f94c7a3c14f315444c6460bd',
type: 'image'
}),
'potato-dead': new Asset({
id: '5fc598f08a887c8cd437bb3d9cdca197',
type: 'image'
}),
'hiss': new Asset({
'id': '9de51f059a02e37356da0faefcabe643',
'type': 'audio'
}),
'potato-bleh': new Asset({
'id': '600513b2cbd50c1f8c465b3098c22c56',
'type': 'audio'
}),

};
}
}

module.exports = HotPotato;

0 comments on commit c34df4d

Please sign in to comment.