Skip to content

Commit

Permalink
clingy is a fucking retard
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperlyBola committed Feb 19, 2021
1 parent 7664171 commit ec5bda6
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/minigames/NightPlug.js
@@ -0,0 +1,55 @@
import DoodleSprite from '../lib/DoodleSprite';

export const GetNightPlugFuncs = () => {
const sprites = {};
function init () {
// Get the textures we need:
const { _appReference, timeMod } = this;
const {
plugArmDarkA,
plugArmDarkB,
plugArmLightA,
plugArmLightB,
plugSocketLightA,
plugSocketLightB,
plugBgA,
plugBgB,
plugDarknessA,
plugSocketA,
plugSocketB
} = this._appReference.loader.resources;
// Arm
sprites.arm = new DoodleSprite({
texture: [plugArmLightA.texture, plugArmLightB.texture],
app: _appReference,
timeMod: timeMod
});
sprites.arm.x = 0;
sprites.arm.y = 150;
this.addChild(sprites.arm);
// Background
sprites.bg = new DoodleSprite({
texture: [plugBgA.texture, plugBgB.texture],
app: _appReference,
timeMod: timeMod
});
sprites.bg.x = 400;
sprites.bg.y = 800;
sprites.bg.pivot.set( sprites.bg.width / 2, sprites.bg.height );
this.addChild(sprites.bg);
// Socket
sprites.socket = new DoodleSprite({
texture: [plugSocketLightA.texture, plugSocketLightB.texture],
app: _appReference,
timeMod: timeMod
});
sprites.socket.x = 0;
sprites.socket.y = 150;
this.addChild(sprites.socket);
};

function update () {};
return { init, update };
};

export default GetNightPlugFuncs;

0 comments on commit ec5bda6

Please sign in to comment.