User prompt
position the game title little bit down on y axis
User prompt
Reduce the Font size for " Save the earth text
User prompt
Reduce the font size
User prompt
add the text on the top positon of the screen saying " SAVE THE EARTH FROM ROBOTIC MOSQUITOS"
User prompt
Move the text little up position
User prompt
add the text above the crowd image that " save the earth from robotic mosquitos"
User prompt
and play sound when intersected
User prompt
create a intersect event in crowd class, when intersect with mosquito game over
User prompt
Play hit sound when mosquito intersects with the earth
User prompt
remove hero hit and hero idle assets
User prompt
heroidle and herohit are the electric bat idle and electric bat hit, so change it
User prompt
Please fix the bug: 'Timeout.tick error: LK.effects.fadeObject is not a function' in or related to this line: 'LK.effects.fadeObject(killedMosquito, 0, 2000);' Line Number: 82
User prompt
Killedmosquito sprites are not getting destroy after 2 secs
User prompt
Please fix the bug: 'Timeout.tick error: LK.effects.fadeOut is not a function' in or related to this line: 'LK.effects.fadeOut(killedMosquito, 2000, function () {' Line Number: 82
User prompt
remove the killed mosquito image after 2 sec with fade.
User prompt
Now whenever the player kill the mosquito spawn another sprite at the killing location representing the killed mosquito.
User prompt
play different sound when clicked on screen, instead of mosquito
User prompt
Play sound when clicked
User prompt
show lives on the top left of the screen using some images
User prompt
add three live on top right of the screen, decrease the live by on when mosquito intersects with crowd.
User prompt
after each 50 points show wave change and increase the speed of spawning mosquitos little bit.
User prompt
each time the player clicks onthe mosquito increase score by 1
User prompt
remove every logic related to lives and game over
User prompt
reduce only one live when mosquito hits the crowd
User prompt
Remove the game over logic
===================================================================
--- original.js
+++ change.js
@@ -39,17 +39,8 @@
self.update = function () {
self.y += self.speed;
if (self.y > 2732 - crowd.height) {
self.destroy();
- if (!self.lifeReduced) {
- var life = lives.pop();
- life.destroy();
- self.lifeReduced = true;
- if (lives.length === 0) {
- console.log("Game Over is triggered");
- LK.showGameOver();
- }
- }
}
};
self.down = function (x, y, obj) {
self.destroy();
@@ -80,17 +71,8 @@
var scoreTxt = new Text2('0', {
size: 150,
fill: "#ffffff"
});
-var lives = [];
-for (var i = 0; i < 5; i++) {
- var life = LK.getAsset('life', {
- x: 60 * i,
- y: 0
- });
- lives.push(life);
- LK.gui.topLeft.addChild(life);
-}
scoreTxt.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreTxt);
function spawnEnemy() {
var mosquito = new Mosquito();
The robotic mosquito is a marvel of miniature engineering, its metallic body gleaming in the light. Its two transparent wings, adorned with intricate circuitry patterns, buzz rhythmically as it hovers and darts through the air. Six delicate legs, tipped with sharp points, enable it to perch on surfaces with remarkable precision. A pair of long, segmented antennae, their tips glowing faintly, twitch and sense the environment. Two glowing eyes, either red or blue, emit an eerie light as they scan the surroundings. However, this mechanical menace can also be crushed, its once pristine form reduced to a mangled mess of dented metal, broken wings, and exposed wires. Sparks might fly from its damaged innards, and its once bright eyes may flicker and fade. This sprite sheet captures both the living and destroyed states of the robotic mosquito, showcasing its intricate details and the grim aftermath of its demise.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
The electric mosquito killing bat sprite sheet will illustrate the device in two states: idle and activated. In the idle state, the bat resembles a tennis racket with a fine mesh grid, featuring a handle for easy grip and a subtle glow emanating from the electrified grid. The activated state showcases the bat in action, zapping mosquitoes with bright sparks and flashes of electricity as they come into contact with the mesh. The sparks should be animated to convey the sensation of a powerful electric discharge. Additional details could include small mosquito silhouettes near the grid in the activated state, or a faint buzzing sound effect to enhance the visual and auditory experience.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.