Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shenanigans-manager

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shenanigans-manager - npm Package Compare versions

Comparing version 0.8.0-beta0 to 0.8.0-beta1

2

package.json

@@ -53,3 +53,3 @@ {

},
"version": "0.8.0-beta0"
"version": "0.8.0-beta1"
}

@@ -1,2 +0,2 @@

{{ #shenanigans.game }}
{ { #shenanigans.game } }
import { IWrappingGameWindow } from "eightbittr";

@@ -14,3 +14,3 @@ import { IAbsoluteSizeSchema, IUserWrapprSettings, OptionType } from "userwrappr";

*/
{{ shorthand }}?: {{ shenanigans.name }};
{ { shorthand } }?: { { shenanigans.name } };
}

@@ -20,3 +20,3 @@

createGame?(size: IAbsoluteSizeSchema): {{ shenanigans.name }};
gameWindow?: IWrappingGameWindow;
gameWindow ?: IWrappingGameWindow;
}

@@ -40,3 +40,3 @@

/**
* Creates settings for an IUserWrappr that will create and wrap a {{ shenanigans.name }} instance.
* Creates settings for an UserWrappr that will create and wrap a {{ shenanigans.name }} instance.
*

@@ -47,3 +47,3 @@ * @param gameWindow Global scope around the game interface, if not the global window.

createGame = (size: IAbsoluteSizeSchema) => new {{ shenanigans.name }}(size),
gameWindow = window,
gameWindow = window,
}: IInterfaceSettingOverrides = {}): IUserWrapprSettings => {

@@ -53,102 +53,103 @@ /**

*/
let game: {{ shenanigans.name }};
let game: {{ shenanigans.name }
};
return {
defaultSize: sizes[defaultSize],
createContents: (size: IAbsoluteSizeSchema) => {
gameWindow.{{ shorthand }} = game = createGame(size);
game.inputs.initializeGlobalPipes();
game.frameTicker.play();
return {
defaultSize: sizes[defaultSize],
createContents: (size: IAbsoluteSizeSchema) => {
gameWindow.{ { shorthand } } = game = createGame(size);
game.inputs.initializeGlobalPipes();
game.frameTicker.play();
return game.container;
},
menus: [
{
options: [
{
action: (): void => {
game.utilities.takeScreenshot(`{{ shenanigans.name }} ${Date.now()}`);
},
title: "Screenshot",
type: OptionType.Action,
return game.container;
},
menus: [
{
options: [
{
action: (): void => {
game.utilities.takeScreenshot(`{{ shenanigans.name }} ${Date.now()}`);
},
{
getInitialValue: (): string => "1x",
options: [".25x", ".5x", "1x", "2x", "5x", "10x", "20x"],
saveValue: (value: string): void => {
const multiplier = parseFloat(value.replace("x", ""));
game.frameTicker.setInterval((1000 / 60) / multiplier);
game.pixelDrawer.setFramerateSkip(multiplier);
},
title: "Speed",
type: OptionType.Select,
title: "Screenshot",
type: OptionType.Action,
},
{
getInitialValue: (): string => "1x",
options: [".25x", ".5x", "1x", "2x", "5x", "10x", "20x"],
saveValue: (value: string): void => {
const multiplier = parseFloat(value.replace("x", ""));
game.frameTicker.setInterval((1000 / 60) / multiplier);
game.pixelDrawer.setFramerateSkip(multiplier);
},
],
title: "Options",
},
],
styles: {
input: {
fontFamily: "Press Start",
minWidth: "117px",
padding: "3px",
},
inputButton: {
background: "#ffcc33",
cursor: "pointer",
fontFamily: "Press Start",
padding: "7px 3px",
},
inputButtonAction: {
padding: "11px 3px",
width: "100%",
},
inputButtonBoolean: {
padding: "7px 21px",
},
inputButtonOff: {
background: "#ccaa33",
},
inputSelect: {
minWidth: "35px",
padding: "3px 0",
},
option: {
alignItems: "center",
margin: "auto",
padding: "7px 0",
maxWidth: "calc(100% - 14px)",
},
options: {
left: "4px",
right: "4px",
width: "auto",
padding: "4px 3px 7px 3px",
boxShadow: [
"0 3px 7px black inset",
"0 0 0 4px #99ccff",
"0 0 14px black",
].join(", "),
background: "#005599",
},
optionsList: {
marginBottom: "7px",
},
menu: {
maxWidth: "385px",
minWidth: "280px",
padding: "7px",
},
menusInnerArea: {
background: "black",
color: "white",
fontFamily: "Press Start",
transition: "700ms color",
},
menusInnerAreaFake: {
color: "grey",
},
title: "Speed",
type: OptionType.Select,
},
],
title: "Options",
},
};
],
styles: {
input: {
fontFamily: "Press Start",
minWidth: "117px",
padding: "3px",
},
inputButton: {
background: "#ffcc33",
cursor: "pointer",
fontFamily: "Press Start",
padding: "7px 3px",
},
inputButtonAction: {
padding: "11px 3px",
width: "100%",
},
inputButtonBoolean: {
padding: "7px 21px",
},
inputButtonOff: {
background: "#ccaa33",
},
inputSelect: {
minWidth: "35px",
padding: "3px 0",
},
option: {
alignItems: "center",
margin: "auto",
padding: "7px 0",
maxWidth: "calc(100% - 14px)",
},
options: {
left: "4px",
right: "4px",
width: "auto",
padding: "4px 3px 7px 3px",
boxShadow: [
"0 3px 7px black inset",
"0 0 0 4px #99ccff",
"0 0 14px black",
].join(", "),
background: "#005599",
},
optionsList: {
marginBottom: "7px",
},
menu: {
maxWidth: "385px",
minWidth: "280px",
padding: "7px",
},
menusInnerArea: {
background: "black",
color: "white",
fontFamily: "Press Start",
transition: "700ms color",
},
menusInnerAreaFake: {
color: "grey",
},
},
};
{{ /shenanigans.game }}
};
{ { /shenanigans.game }}
{
"dependencies": {
"eightbittr": "^0.8.0-beta0",
"userwrappr": "^0.8.0-beta0"
"eightbittr": "^0.8.0-beta1",
"userwrappr": "^0.8.0-beta1"
},

@@ -6,0 +6,0 @@ "shenanigans": {

@@ -12,3 +12,3 @@ {

"mocha-headless-chrome": "^3.1.0",
"shenanigans-manager": "^0.8.0-beta0",
"shenanigans-manager": "^0.8.0-beta1",
"sinon": "^9.0.2",

@@ -15,0 +15,0 @@ "sinon-chai": "^3.5.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc