User prompt
make the font bigger
User prompt
when bgkrampus is instantiated, create text above it that shakes in red with the font garamond
User prompt
when helpmenu is opened, wait two seconds before starting the tween animation
User prompt
do it
User prompt
change it to 1.5
User prompt
clownKey and helpAnim fade out too quickly, slow it down
User prompt
clownKey and helpAnim should always be above inventory ui
User prompt
fix it
User prompt
the animation doesnt work anymore
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'return target.x - 400;' Line Number: 338
User prompt
do it
User prompt
Update animation loop interval to 3 seconds
User prompt
loop the animation every 5 seconds
User prompt
loop the animation every 2 seconds
User prompt
after the animation, clown key should be at x: 2048 / 2 - 375, y: 2732 / 2 and helpanim at x: 2048 / 2 - 550, y: 2732 / 2 + 800
Code edit (7 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'tween(clownKey, {' Line Number: 320
User prompt
when the help menu is visible, i want clown key and helpanim to animate themselves moving to the left by 400 and then fading out after one second and re-appearing one second later at their original instantiated position simultaneously using the tween animation plugin
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
stay faded out for 5 rela life second
Code edit (3 edits merged)
Please save this source code
User prompt
make dark number stay faded out longer
Code edit (4 edits merged)
Please save this source code
User prompt
slow down the hovering of dark number
===================================================================
--- original.js
+++ change.js
@@ -1,5 +1,10 @@
/****
+* Plugins
+****/
+var tween = LK.import("@upit/tween.v1");
+
+/****
* Classes
****/
// Create a Snowflake class by using the LK expand method to extend Container.
var Snowflake = Container.expand(function () {
@@ -37,12 +42,13 @@
/****
* Game Code
****/
+// Tween import
+//array for the elements of the menu so that we can easily destroy them or add them to the game
//---------------------------------------------------------------------------------------------------
//create variables for the various assets that will be loaded and unloaded and their various types
//---------------------------------------------------------------------------------------------------
-//array for the elements of the menu so that we can easily destroy them or add them to the game
var menuObjects = [];
var howToObjects = [];
//elements of the narration screen so that we can easily destroy or add them to the game
var introObjects = [];
@@ -95,9 +101,9 @@
scanLines.y = 2732 / 2;
}, 1000); // 1 second delay
}
// Set interval to animate bg_ScanLines every few seconds
- LK.setInterval(animateScanLines, 3000); // Every 3 seconds
+ LK.setInterval(animateScanLines, 1000); // Every 3 seconds
}
//function to add snowflakes on the screen
function createSnowflake() {
var newSnowflake = new Snowflake();
@@ -141,12 +147,36 @@
// Instantiate bg_DarkNumber in the center of the playspace
var darkNumber = game.addChild(LK.getAsset('bg_DarkNumber', {
anchorX: 0.5,
anchorY: 0.5,
- x: 2048 / 2 - 900,
+ x: 2048 / 2 - 700,
+ y: 2732 / 2 + 250
+ }));
+ // Instantiate bg_DarkNumber28 in the center of the playspace
+ var darkNumber28 = game.addChild(LK.getAsset('bg_DarkNumber28', {
+ anchorX: 0.5,
+ anchorY: 0.5,
+ x: 2048 / 2 + 850,
+ y: 2732 / 2 + 200
+ }));
+ // Instantiate bg_DarkNumber7 in the center of the playspace
+ var darkNumber7 = game.addChild(LK.getAsset('bg_DarkNumber7', {
+ anchorX: 0.5,
+ anchorY: 0.5,
+ x: 2048 / 2 - 825,
y: 2732 / 2
}));
+ // Instantiate bg_DarkNumber0 in the center of the playspace
+ var darkNumber0 = game.addChild(LK.getAsset('bg_DarkNumber0', {
+ anchorX: 0.5,
+ anchorY: 0.5,
+ x: 2048 / 2 + 835,
+ y: 2732 / 2 - 260
+ }));
menuObjects.push(darkNumber);
+ menuObjects.push(darkNumber28);
+ menuObjects.push(darkNumber7);
+ menuObjects.push(darkNumber0);
menuObjects.push(titleScreen);
// Play s_splashscreen when the game starts
LK.setTimeout(function () {
LK.playMusic('s_SplashScreen', {
@@ -249,10 +279,10 @@
is_helpMenuVisible = true;
// Create red text at the top center of the screen
var naughtyText = new Text2("Tap screen to interact \n with the scene \n \n \n \n \n \n Drag from inventory to \n scene to use objects", {
size: 75,
- fill: "#ff0000",
- stroke: "#000000",
+ fill: 0xFF0000,
+ stroke: 0x000000,
strokeThickness: 5,
font: "Garamond"
});
naughtyText.anchor.set(0.5, 0);
Eerie Christmas-inspired toy shop The only text on screen should be the title "Krampus Lockdown" centered on the image.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a single cartoon snowflake. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a simple eerie christmas blank dirty ripped paper. Use christmas colors. Do not put text, just the dirty ripped paper so i can fill it myself with text. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. No text.
A heavily grainy screen filled with analog noise, washed-out colors, subtle scratches on the film, and a worn, nostalgic texture.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
horizontal scan lines, slightly distorted colors, subtle static noise, and faint glow around edges.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bloody christmas elf glove tapping at screen clipart. Just the glove. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the number 13 written in black. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
black gothic frame with a question mark inside silhouette. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a simple dirty, dark and eerie Christmas clown key. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the number 28 written in black, make the numbers eerie. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the number 7 written in black, make the numbers eerie. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the number 0 written in black, make the numbers eerie. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Eerie Christmas-inspired room similar to a resident evil room Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Eerie Christmas-inspired bathroom similar to a resident evil room Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a cartoon envelope with an toy elf on it holding a questionmark. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a simple dirty, dark and eerie Christmas bathroom key. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eerie christmas inspired krampus lock with a resident evil style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eerie christmas inspired button as an arrow pointing right that says SKIP in a creepy font png. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Eerie Christmas-inspired garage similar to a resident evil room Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a simple fuse inspired from a resident evil puzzle graphics Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
an eerie wall fusebox Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Eerie Christmas-inspired hallway similar to a resident evil room Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eerie creepy old rusty key with krampus face embossed on it png. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a simple dirty, dark and eerie Christmas bathroom key. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eerie christmas inspired mistletoe lock with a resident evil style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eerie christmas inspired tree lock with a resident evil style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a simple dirty, dark and eerie Christmas light key. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eerie christmas inspired christmas light lock with a resident evil style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eerie christmas inspired lump of coal with a resident evil style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Eerie flame similar to a resident evil asset, realistic Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Eerie Christmas-inspired krampus statuette similar to a resident evil asset Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a simple eerie christmas blank dirty letter envelope. Use christmas colors. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. No text.
Eerie Christmas-inspired crypt room similar to a resident evil room Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a simple dark red cartoon christmas hat Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. No text.
cartoon mulled wine. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon christmas inspired question mark Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
krampus with a christmas hat coin embossed on it png. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
mulled wine coin embossed on it png. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Eerie Christmas-inspired krampus doll sitting similar to a resident evil Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
old safe png grey with four buttons on the side. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
s_KrampusLaugh01
Sound effect
s_SplashScreen
Sound effect
s_KrampusLaugh02
Sound effect
s_WomanScream01
Sound effect
s_ManScream01
Sound effect
s_ManScream02
Sound effect
s_WomanScream02
Sound effect
s_LightBuzz
Sound effect
s_ShutdownSound
Sound effect
s_CrumpledPaper
Sound effect
s_Bathroom
Sound effect
s_GameOver
Sound effect
s_CartoonRun
Sound effect
s_GetItem
Sound effect
s_KrampusScream
Sound effect
s_UnlockSound
Sound effect
s_WindBlow
Sound effect
s_FuseBoxOn
Sound effect
s_GeneratorSound
Sound effect
s_Locked
Sound effect
s_Interior
Sound effect
s_DollDeath
Sound effect
s_Footsteps
Sound effect
s_DollLaugh01
Sound effect
s_DollLaugh02
Sound effect
s_DollDeath01
Sound effect
s_DollDeath02
Sound effect
s_EncounterMusic
Sound effect
s_FirstDollMusic
Sound effect
s_ChristmasMusic
Sound effect
s_BreakingSound
Sound effect
s_Collected
Sound effect
s_Extinguished
Sound effect
s_Appear
Sound effect
s_MulledWine
Sound effect
s_Slurping
Sound effect
s_SafeUnlocked
Sound effect
s_LockedSafe
Sound effect