User prompt
Fish spawn at random location at max 600 pixel from the center
User prompt
Fish spawn at random location at max 700 pixel from the center π ✅ Change fish
User prompt
Fish spawn at random location at max 400 pixel from the center π ✅ Change fish
User prompt
Fish spawn at random location at max 200 pixel from the center
User prompt
Spawn one fish of each race
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'expand')' in this line: 'var ZebraDanio = Fish.expand(function () {' Line Number: 1
User prompt
Create 3 new race of fish
User prompt
Fix Bug: 'Uncaught ReferenceError: ElectricRay is not defined' in this line: 'var fishTypes = [Wrasses, Parrotfish, Dartfish, MoorishIdol, Tangfish, Bannerfish, Butterflyfish, Mandarinfish, Lionfish, Surgeonfish, Pufferfish, Clownfish, Angelfish, KoiFish, EmperorFish, Goldfish, Sunfish, GuppyFish, BettaFish, DiscusFish, NeonTetra, OscarFish, ElectricRay, PsychedelicFrogfish, FlameScallop, RibbonEel, LeafySeaDragon, ClownTriggerfish, ElectricBlueDamsel, YellowTang, FlameHawkfish, RoyalGramma, FlameAngel, BlueTang, Moonfish, Starfish, CardinalTetra];' Line Number: 954
User prompt
Fix Bug: 'Uncaught ReferenceError: ElectricEel is not defined' in this line: 'var fishTypes = [Wrasses, Parrotfish, Dartfish, MoorishIdol, Tangfish, Bannerfish, Butterflyfish, Mandarinfish, Lionfish, Surgeonfish, Pufferfish, Clownfish, Angelfish, KoiFish, EmperorFish, Goldfish, Sunfish, GuppyFish, BettaFish, DiscusFish, NeonTetra, OscarFish, ElectricEel, ElectricRay, PsychedelicFrogfish, FlameScallop, RibbonEel, LeafySeaDragon, ClownTriggerfish, ElectricBlueDamsel, YellowTang, FlameHawkfish, RoyalGramma, FlameAngel, BlueTang, Moonfish, Starfish, CardinalTetra];' Line Number: 954
User prompt
Create 3 new race of fish
User prompt
Fix Bug: 'Uncaught ReferenceError: FlameGoby is not defined' in this line: 'var fishTypes = [Wrasses, Parrotfish, Dartfish, MoorishIdol, Tangfish, Bannerfish, Butterflyfish, Mandarinfish, Lionfish, Surgeonfish, Pufferfish, Clownfish, Angelfish, KoiFish, EmperorFish, Goldfish, Sunfish, GuppyFish, BettaFish, DiscusFish, NeonTetra, OscarFish, ElectricEel, ElectricRay, PsychedelicFrogfish, FlameScallop, RibbonEel, LeafySeaDragon, ClownTriggerfish, ElectricBlueDamsel, YellowTang, FlameHawkfish, RoyalGramma, FlameAngel, BlueTang, Moonfish, Starfish, CardinalTetra, FlameGoby];' Line Number: 930
User prompt
Fix Bug: 'Uncaught ReferenceError: PeacockBass is not defined' in this line: 'var fishTypes = [Wrasses, Parrotfish, Dartfish, MoorishIdol, Tangfish, Bannerfish, Butterflyfish, Mandarinfish, Lionfish, Surgeonfish, Pufferfish, Clownfish, Angelfish, KoiFish, EmperorFish, Goldfish, Sunfish, GuppyFish, BettaFish, DiscusFish, NeonTetra, OscarFish, ElectricEel, ElectricRay, PsychedelicFrogfish, FlameScallop, RibbonEel, LeafySeaDragon, ClownTriggerfish, ElectricBlueDamsel, YellowTang, FlameHawkfish, RoyalGramma, FlameAngel, BlueTang, Moonfish, Starfish, PeacockBass, CardinalTetra, FlameGoby];' Line Number: 930
User prompt
Create 3 new race of fish
User prompt
Create 3 new race of fish
User prompt
Spawn one fish of each race
User prompt
Create 3 new race of fish
User prompt
Fix Bug: 'Uncaught ReferenceError: GouramiFish is not defined' in this line: 'var fishTypes = [MoorishIdol, Tangfish, Bannerfish, Butterflyfish, Mandarinfish, Lionfish, Surgeonfish, Pufferfish, Clownfish, Angelfish, KoiFish, Goldfish, GuppyFish, BettaFish, DiscusFish, NeonTetra, OscarFish, GouramiFish];' Line Number: 832
User prompt
Create 3 new race of fish
User prompt
Create 3 new race of fish
User prompt
Create 3 new race of fish
User prompt
Create 3 new race of fish
User prompt
Create 3 new race of fish
User prompt
Create 3 new race of fish
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'expand')' in this line: 'var Boxfish = Fish.expand(function () {' Line Number: 1
User prompt
Create 4 new race of fish
===================================================================
--- original.js
+++ change.js
@@ -531,17 +531,17 @@
}
fishGraphics.rotation = self.rotation;
};
});
-var ElectricEel = Fish.expand(function () {
+var ElectricCatfish = Fish.expand(function () {
var self = Fish.call(this) || this;
- var fishGraphics = self.createAsset('electricEel', 'Electric Eel Graphics', .5, .5);
+ var fishGraphics = self.createAsset('electricCatfish', 'Electric Catfish Graphics', .5, .5);
fishGraphics.scale.set(1, 1);
- self.speed = Math.random() * 0.2 + 0.6;
+ self.speed = Math.random() * 0.2 + 0.58;
self.move = function () {
if (!self.directionChangeTime || LK.ticks - self.directionChangeTime > self.directionChangeInterval) {
self.directionChangeTime = LK.ticks;
- self.directionChangeInterval = Math.random() * 180 + 120;
+ self.directionChangeInterval = Math.random() * 190 + 130;
self.targetRotation = Math.random() * Math.PI * 2;
}
var progress = (LK.ticks - self.directionChangeTime) / self.directionChangeInterval;
if (progress < 1) {
@@ -562,14 +562,38 @@
fishGraphics.scale.x = Math.cos(self.rotation) < 0 ? -1 : 1;
fishGraphics.rotation = self.rotation;
};
});
-var ElectricRay = Fish.expand(function () {
+var RainbowTrout = Fish.expand(function () {
var self = Fish.call(this) || this;
- var fishGraphics = self.createAsset('electricRay', 'Electric Ray Graphics', .5, .5);
+ var fishGraphics = self.createAsset('rainbowTrout', 'Rainbow Trout Graphics', .5, .5);
fishGraphics.scale.set(1, 1);
- self.speed = Math.random() * 0.2 + 0.55;
- self.move = function () {};
+ self.speed = Math.random() * 0.2 + 0.53;
+ self.move = function () {
+ if (!self.directionChangeTime || LK.ticks - self.directionChangeTime > self.directionChangeInterval) {
+ self.directionChangeTime = LK.ticks;
+ self.directionChangeInterval = Math.random() * 160 + 120;
+ self.targetRotation = Math.random() * Math.PI * 2;
+ }
+ var progress = (LK.ticks - self.directionChangeTime) / self.directionChangeInterval;
+ if (progress < 1) {
+ self.rotation += (self.targetRotation - self.rotation) * progress;
+ } else {
+ self.rotation = self.targetRotation;
+ }
+ self.x += Math.cos(self.rotation) * self.speed;
+ self.y += Math.sin(self.rotation) * self.speed;
+ var waterBounds = self.getWaterBounds();
+ if (self.x < waterBounds.left || self.x > waterBounds.right) {
+ self.rotation = Math.PI - self.rotation;
+ }
+ if (self.y < waterBounds.top || self.y > waterBounds.bottom) {
+ self.rotation = -self.rotation;
+ }
+ self.rotation = self.rotation % (Math.PI * 2);
+ fishGraphics.scale.x = Math.cos(self.rotation) < 0 ? -1 : 1;
+ fishGraphics.rotation = self.rotation;
+ };
});
var PsychedelicFrogfish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('psychedelicFrogfish', 'Psychedelic Frogfish Graphics', .5, .5);
@@ -797,27 +821,27 @@
fishGraphics.scale.x = Math.cos(self.rotation) < 0 ? -1 : 1;
fishGraphics.rotation = self.rotation;
};
});
-var RubyShark = Fish.expand(function () {
+var PeacockBass = Fish.expand(function () {
var self = Fish.call(this) || this;
- var fishGraphics = self.createAsset('rubyShark', 'Ruby Shark Graphics', .5, .5);
+ var fishGraphics = self.createAsset('peacockBass', 'Peacock Bass Graphics', .5, .5);
fishGraphics.scale.set(1, 1);
- self.speed = Math.random() * 0.2 + 0.6;
+ self.speed = Math.random() * 0.2 + 0.65;
self.move = function () {
if (!self.directionChangeTime || LK.ticks - self.directionChangeTime > self.directionChangeInterval) {
self.directionChangeTime = LK.ticks;
- self.directionChangeInterval = Math.random() * 200 + 150;
+ self.directionChangeInterval = Math.random() * 220 + 160;
self.targetRotation = Math.random() * Math.PI * 2;
}
var progress = (LK.ticks - self.directionChangeTime) / self.directionChangeInterval;
if (progress < 1) {
self.rotation += (self.targetRotation - self.rotation) * progress;
} else {
self.rotation = self.targetRotation;
}
- self.x += Math.cos(self.rotation) * self.speed * 1.5;
- self.y += Math.sin(self.rotation) * self.speed * 1.5;
+ self.x += Math.cos(self.rotation) * self.speed * 1.6;
+ self.y += Math.sin(self.rotation) * self.speed * 1.6;
var waterBounds = self.getWaterBounds();
if (self.x < waterBounds.left || self.x > waterBounds.right) {
self.rotation = Math.PI - self.rotation;
}
An aquarium with no fish on a sheel in a photorealistic style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic goldfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic Angelfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic koyfish swiming to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic gupyfish swiming to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic bettafish swiming to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic clownfish swiming to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic pufferfish swiming to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic surgeonfish swiming to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic buble of water. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic fish egg. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic celestial pearl danio. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic Parrotfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic dartfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic moorishidol. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic tangfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic bannerfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic butterflyfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic mandarinfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a realistic lionfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a realistic emperorFish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a realistic sunfish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a realistic discusFish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a realistic neonTetra. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a realistic oscarFish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a cardinal tetra. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a tang fish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a clown fish. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.