Code edit (3 edits merged)
Please save this source code
User prompt
Initialize the sgSign01 asset on screen and center it at the top on the layer above frame
User prompt
initialize sgFrame01 on screen and center it with the playspace
Code edit (1 edits merged)
Please save this source code
User prompt
When clicking on the piano, play saloon piano jingle 01 for 5 seconds, clicking it while saloon piano jingle 01 is playing does not do anything
User prompt
When clicking on the piano, play saloon piano jingle 01
User prompt
initialise the saloonPiano asset on screen
Code edit (1 edits merged)
Please save this source code
User prompt
delete the target and its associated code
User prompt
delete the bullet and its associated code
User prompt
delete the hero and its associated code
Initial prompt
Whiskey River Saloon
/**** * Initialize Game ****/ //<Assets used in the game will automatically appear here> var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ // Initialize variables var scoreTxt; var score = 0; var isPianoPlaying = false; // Create score text scoreTxt = new Text2('0', { size: 150, fill: "#ffffff" }); scoreTxt.anchor.set(0.5, 0); LK.gui.top.addChild(scoreTxt); // Initialize the saloonPiano asset on screen var saloonPiano = game.addChild(LK.getAsset('saloonPiano', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 })); // Add a click event to the piano saloonPiano.down = function (x, y, obj) { // If the piano jingle is not playing, play it if (!isPianoPlaying) { isPianoPlaying = true; LK.getSound('saloonPianoJingle01').play(); // After 5 seconds, set isPianoPlaying to false LK.setTimeout(function () { isPianoPlaying = false; }, 3250); } }; // Initialize the sgFrame01 asset on screen var sgFrame01 = game.addChild(LK.getAsset('sgFrame01', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 })); // Initialize the sgSign01 asset on screen and center it at the top var sgSign01 = LK.gui.top.addChild(LK.getAsset('sg_Sign01', { anchorX: 0.5, anchorY: 0, x: 1024 / 2, y: 0 })); // Handle game updates game.update = function () {}; ; ;
===================================================================
--- original.js
+++ change.js
@@ -49,9 +49,9 @@
// Initialize the sgSign01 asset on screen and center it at the top
var sgSign01 = LK.gui.top.addChild(LK.getAsset('sg_Sign01', {
anchorX: 0.5,
anchorY: 0,
- x: 2048 / 2,
+ x: 1024 / 2,
y: 0
}));
// Handle game updates
game.update = function () {};
wild west saloon piano real life. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
front facing western shooting gallery wooden frame. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white musical note on a empty background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western baked beans can. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western glass beer bottle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western shooting target with 5 written on it.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western shooting target with 10 written on it.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
vertical exploded glass beer bottle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
vertical red curtain. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pretty blond human cowgirl holding a sign. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western gold star with 25 written on it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a western shining green diamond. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a cactus. The goal is to capture a lively and playful location.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a desert rock. The goal is to capture a lively and playful location.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a desert tumble weed. The goal is to capture a lively and playful location.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western barrel. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon gecko with a cowboy hat. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon smoke puff. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western destroyed barrel. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cloud of smoke. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a single brown dust particle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western wanted poster. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d western toy train side view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
train smoke. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western toy train wagon side profile. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a single wildvine with spikes and flowers dangling.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
J+G ingrained in a heart, on wood by a knife. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a western shooting gallery ranking charts written rookie (70) skilled(220) legendary (400). Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
wood bullet hole. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
empty western saloon, just the floor, ceiling and walls.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
front facing western shooting gallery wooden sign hanging from chains that is written "Whiskey Saloon". Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
upper torso of a western cartoon barman getting ready to throw a bottle of whiskey.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western cowboy toy shooting. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western target dummy. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
grawlix in a speech bubble, make sure it looks something like this !#@* and theres an angry icon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western bottle of whiskey.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
orange damage splash.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon pie drawn top view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
add an apron, add a bow in the hair, remove the hat
purple damage splash. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Tap to shoot! in a western style speech bubble.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Red x western inspired. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
western inspired letters that spell "Score". Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
saloonPianoJingle01
Sound effect
chainNoises
Sound effect
canHit
Sound effect
canHit02
Sound effect
glassHit01
Sound effect
glassHit02
Sound effect
bulletHit01
Sound effect
sgGeckoNoise
Sound effect
getSound02
Sound effect
getSound01
Sound effect
barreltHit01
Sound effect
sgSaloonMusic
Sound effect
sgYeehaw
Sound effect
sgTrainSound01
Sound effect
sgTrainsSound02
Sound effect
sgGrunt
Sound effect
sgRicochet
Sound effect
sgOof
Sound effect
sgfemaleoof
Sound effect
sgfemaleow
Sound effect
sgsquish
Sound effect