Initial prompt
Mishnu
User prompt
Mishnu is controlled by the cursor. The cursor indicates where Mishnu is going, but she is going at a constant rat of speed. She is at the center of a circle. The circle is not very big but about 3 times here size. We have the humans. They are scattered throughout the view port. They are in constant motion moving across the screen. WHen they reach the edge of the viewport they bounce off and go the opposite direction. They move all over. This is for our class of humans, "human 1". When a "human 1" is in mishnu's radius, it take 2 seconds for mishnu to harvest them. The moment any humans is in mishnu's radius they try attempt to run away. However if mishnu is able to keep them in the radius for 2 seconds they get harvested, and they disappear. To keep track of the humans mishnu has harvested we have in bold white letters at the bottom right Cargo: # of (humans harvested) / 10 (Max Cargo for Mishnu at level 1). There is a thin bar that is off limits at the bottom of the viewport, where cargo information lies, in this area, nor humans, nor mishnu can navigate it. Its reserved for text
User prompt
Please fix the bug: 'self is undefined' in or related to this line: 'self.update = function () {' Line Number: 29
User prompt
Please fix the bug: 'self is undefined' in or related to this line: 'self.update = function () {' Line Number: 29
User prompt
Please fix the bug: 'self is undefined' in or related to this line: 'self.update = function () {' Line Number: 29
User prompt
Please fix the bug: 'self is undefined' in or related to this line: 'self.update = function () {' Line Number: 29
User prompt
Please fix the bug: 'self is undefined' in or related to this line: 'self.update = function () {' Line Number: 29
User prompt
Please fix the bug: 'self is undefined' in or related to this line: 'self.update = function () {' Line Number: 29
User prompt
please fix this situation i our code
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Human.prototype.update is undefined' in or related to this line: 'Human.prototype.update.call(self);' Line Number: 36
User prompt
Not sure why but the game is completely frozen as the game starts. I cannot move mishnu. I also dont see her radius. And there seem to be only 1 instance of human 1, we need many
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Human.prototype.update is undefined' in or related to this line: 'Human.prototype.update.call(self);' Line Number: 38
User prompt
So far we only have 1 type/class of humans= human_1 There should be many humans around on the map, moving around. Mishnus "harvest radius" must be visible to the player
User prompt
I still do not visibly see mishnus radius, we need a spherical visual element that represents it. Also The humans are not moving around, make sure they are aiming aimlessly around the view port, bouncing of the edges of the viewport going the opposite direction, and that if they enter mishnus radius they speed up and try to run away
Code edit (3 edits merged)
Please save this source code
User prompt
I'm not able to get the human's inside of mishnu's radius long enough to harvest them as they're too agile at running away, it makes the gam impossible
User prompt
Make the radius a bit bigger and make sure it only takes 2 seconds in the radius for humans to be harvested
User prompt
Make sure that humans cannot leave the viewport we want a boundary box of a few pixels all around, add a bit more at the bottom to protect the text area too
User prompt
The boundary box for humans is not working. I can still see humans entering the area we have our text at the bottom, and i can still see humans being pushed off the screen. Also lets smooth out a tad mishnus movement. Make it smoother, Also reduce the time it take to harvest human_1 type humans
User prompt
If there are multiple humans entering mishnus radius at once, they each start their own 2 second timer of harvesting. Meaning in other words, that mishnu can harvest multiple humans at once independently from each other. Also i did not want to slow down mishnu, but smoth out the turning only. Making it a dash smother on the turning so it appears less angular. Just a dash
Code edit (1 edits merged)
Please save this source code
User prompt
Slow down mishnu's movement. Make her radius smaller. And make sure she can harvest humans (atm she's not harvesting humans for some reason) and make sure she can harvest more than one human at once
User prompt
The harvesting process is not working correctly. Keep it simple. Any human that enters her radius and stays in it for 2 seconds gets harvested no matter what. If there are more than one our script handles each human independently as they enter the radius at different times and their 2 second timer for harvesting started at different times.
===================================================================
--- original.js
+++ change.js
@@ -48,10 +48,12 @@
// Correctly bind self
Container.call(self);
var mishnuGraphics = self.attachAsset('mishnu', {
anchorX: 0.5,
- anchorY: 0.5
+ anchorY: 0.5,
+ radius: 50
});
+ self.draggable = true;
self.speed = 10;
self.humansHarvested = 0;
self.lastHarvestTime = 0;
self.update = function () {
@@ -86,9 +88,9 @@
mishnu.y = 2732 - 200;
// Array to hold humans
var humans = [];
// Create humans at random positions
-for (var i = 0; i < 5; i++) {
+for (var i = 0; i < 50; i++) {
var human = new Human1();
human.x = Math.random() * 2048;
human.y = Math.random() * 2732;
humans.push(human);
blurry texture background 4k black and white
can of Dog Food. Game asset. 3d clipart. Blank background. High contrast. No shadows..
black capsule. Game asset. 3d clipart. Blank background. High contrast. No shadows..
woman in short shorts. mobile game art. pixel art. full body. front facing. Blank background. High contrast. No shadows.
laser beam cartoon game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bone. clipart. cartoon. Blank background. High contrast. No shadows..
Game Over. Red game letters, dripping. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Dog_panting
Sound effect
Agony_Yell_1
Sound effect
Music_Level_1_5
Music
Music_Level_1_4
Music
Agony_Yell_2
Sound effect
Agony_Yell_3
Sound effect
Agony_Yell_4
Sound effect
Agony_Yell_5
Sound effect
Agony_Yell_6
Sound effect
Agony_Yell_7
Sound effect
Dog_Crunch
Sound effect
Dog_Crunch_2
Sound effect
Dog_Crunch_3
Sound effect
Ding_1
Sound effect
Squish_1
Sound effect
Squish_2
Sound effect
Squish_4
Sound effect
Squish_3
Sound effect
Factory_Deposit
Sound effect
Factory_Operation
Sound effect
Level_Up
Sound effect
Bark
Sound effect
Hit
Sound effect
Agony_Yell_8
Sound effect
Agony_Yell_9
Sound effect
GiggleMan_1
Sound effect
GiggleMan_2
Sound effect
GiggleMan_3
Sound effect
GiggleMan_4
Sound effect
Booster_Sound
Sound effect
Can
Sound effect
woosh
Sound effect
Agony_Yell_10
Sound effect
Bark_2
Sound effect
Bark_3
Sound effect
laser
Sound effect
searing
Sound effect
laser_2
Sound effect
Laser_3
Sound effect
Laser_4
Sound effect
Boss_Hit
Sound effect
Boss_Hit_2
Sound effect
Boss_Hit_3
Sound effect
GiggleMan_5
Sound effect
GiggleMan_6
Sound effect
hip_hop_loop
Sound effect