Code edit (7 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
remove the condition that checks for the cencorship thing to spawn trolls
Code edit (1 edits merged)
Please save this source code
User prompt
remove the blackbar infront of the trolls faces
User prompt
Please fix the bug: 'Timeout.tick error: censorAsset is not defined' in or related to this line: 'self.censorAsset = censorAsset;' Line Number: 168
User prompt
remove the blackbar infront of the leaders faces
Remix started
Copy Whac-a-Politician
===================================================================
--- original.js
+++ change.js
@@ -1,14 +1,14 @@
/****
* Classes
-****/
+****/
/**
* config {
* x : Number || 0,
* y : Number || 0,
* rotation : Number || 0,
* }
-**/
+**/
var ConfigContainer = Container.expand(function (config) {
var self = Container.call(this);
config = config || {};
;
@@ -121,17 +121,9 @@
var leaderAsset = self.attachAsset(imageId, {
anchorX: 0.5,
anchorY: 0
});
- var censorAsset = self.addChild(new BorderedShape({
- y: 45,
- anchorX: 0.5,
- anchorY: 0,
- width: 110,
- height: 25,
- fill: '#000000',
- border: '#FFFFFF'
- }));
+ // Removed the censorAsset creation to unblock the leaders' faces
self.scale.set(Math.random() < 0.5 ? -1 : 1, 1);
;
self.update = update;
self.tryBonk = tryBonk;
@@ -323,9 +315,9 @@
* font : String || TEXT_DEFAULT_FONT,
* fill : String || TEXT_DEFAULT_FILL,
* border : String || TEXT_DEFAULT_BORDER,
* }
-**/
+**/
var BorderedText = ConfigContainer.expand(function (text, config) {
var self = ConfigContainer.call(this, config);
config = config || {};
;
@@ -427,9 +419,9 @@
* height : Number || undefined, // Auto-calculated if left undefined and width is set
* tint : String || 0xFFFFFF, // Not tinted by default
* border : String || TEXT_DEFAULT_BORDER,
* }
-**/
+**/
var BorderedSymbol = ConfigContainer.expand(function (symbol, config) {
var self = ConfigContainer.call(this, config);
config = config || {};
var width = config.width !== undefined ? config.width : undefined;
@@ -500,9 +492,9 @@
* shape : String || 'square',
* fill : String || TEXT_DEFAULT_FILL,
* border : String || TEXT_DEFAULT_BORDER,
* }
-**/
+**/
var BorderedShape = ConfigContainer.expand(function (config) {
var self = ConfigContainer.call(this, config);
config = config || {};
;
@@ -535,17 +527,17 @@
});
/****
* Initialize Game
-****/
+****/
// Assets will be automatically initialized based on usage in the code.
var game = new LK.Game({
backgroundColor: 0xD3D3D3 // Init game with light grey background
});
/****
* Game Code
-****/
+****/
;
//==============================================================================
// Global constants & settings
//==============================================================================
Pixel art of the bam symbol. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of bam comic symbol.
pixel art of pow comic symbol.
pixel art of plastic squeaky hammer.
pixel art of a large, round, red start button.
pixel art. mole. standing up position. whack-a-mole. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art. heap of dirt. small. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.