User prompt
increase all fish horizontal size by 20 percent
User prompt
make all fish 30 percent bigger
User prompt
all fish race inherit from the fish and fish canot swim out of the water
User prompt
make fish move at different random speed
User prompt
improve all fish AI
User prompt
all fish swim
User prompt
Fix Bug: 'Uncaught TypeError: self.getChildByName is not a function' in this line: 'var waterGraphics = self.getChildByName('Water Graphics');' Line Number: 40
User prompt
all fish can only spawn and swim in the water area
User prompt
rduce water size by 10 percent
User prompt
make water 20 percent transparentr
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'expand')' in this line: 'var Surgeonfish = Fish.expand(function () {' Line Number: 1
User prompt
Add 4 new race and spawn one of each race at start
User prompt
Fix Bug: 'TypeError: self.getChildByName is not a function' in this line: 'var waterGraphics = self.getChildByName('Water Graphics');' Line Number: 29
User prompt
Fix Bug: 'TypeError: this.getChildByName is not a function' in this line: 'var waterGraphics = this.getChildByName('Water Graphics');' Line Number: 29
User prompt
Fix Bug: 'TypeError: self.getWaterBounds is not a function' in this line: 'var waterBounds = self.getWaterBounds();' Line Number: 48
User prompt
Fix Bug: 'Uncaught ReferenceError: AngelFish is not defined' in this line: 'var fishTypes = [Fish, AngelFish, ClownFish, TangFish];' Line Number: 174
User prompt
Fix Bug: 'Uncaught ReferenceError: Fish is not defined' in this line: 'var KoiFish = Fish.expand(function () {' Line Number: 26
User prompt
Add 4 new race
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'createAsset')' in this line: 'var fishGraphics = self.createAsset('tangFish', 'Tang Fish Graphics', .5, .5);' Line Number: 77
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'speed')' in this line: 'self.speed = 0.5;' Line Number: 73
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'speed')' in this line: 'self.speed = 0.5;' Line Number: 73
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'speed')' in this line: 'self.speed = 0.5;' Line Number: 73
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'speed')' in this line: 'self.speed = 0.5;' Line Number: 73
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'speed')' in this line: 'self.speed = 0.5;' Line Number: 73
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'speed')' in this line: 'self.speed = 0.5;' Line Number: 73
===================================================================
--- original.js
+++ change.js
@@ -19,9 +19,9 @@
});
var Surgeonfish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('surgeonfish', 'Surgeonfish Graphics', .5, .5);
- fishGraphics.scale.set(1.3);
+ fishGraphics.scale.set(1.3 * 1.2, 1.3);
self.speed = Math.random() * 0.2 + 0.5;
self.move = function () {
if (!self.directionChangeTime || LK.ticks - self.directionChangeTime > self.directionChangeInterval) {
self.directionChangeTime = LK.ticks;
@@ -56,9 +56,9 @@
});
var Pufferfish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('pufferfish', 'Pufferfish Graphics', .5, .5);
- fishGraphics.scale.set(1.3);
+ fishGraphics.scale.set(1.3 * 1.2, 1.3);
self.speed = Math.random() * 0.2 + 0.4;
self.move = function () {
if (!self.directionChangeTime || LK.ticks - self.directionChangeTime > self.directionChangeInterval) {
self.directionChangeTime = LK.ticks;
@@ -91,9 +91,9 @@
});
var Clownfish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('clownfish', 'Clownfish Graphics', .5, .5);
- fishGraphics.scale.set(1.3);
+ fishGraphics.scale.set(1.3 * 1.2, 1.3);
self.speed = Math.random() * 0.2 + 0.4;
self.move = function () {
if (!self.directionChangeTime || LK.ticks - self.directionChangeTime > self.directionChangeInterval) {
self.directionChangeTime = LK.ticks;
@@ -121,9 +121,9 @@
});
var Angelfish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('angelfish', 'Angelfish Graphics', .5, .5);
- fishGraphics.scale.set(1.3);
+ fishGraphics.scale.set(1.3 * 1.2, 1.3);
self.speed = Math.random() * 0.2 + 0.45;
self.move = function () {
if (!self.directionChangeTime || LK.ticks - self.directionChangeTime > self.directionChangeInterval) {
self.directionChangeTime = LK.ticks;
@@ -176,9 +176,9 @@
});
var KoiFish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('koiFish', 'Koi Fish Graphics', .5, .5);
- fishGraphics.scale.set(1.3);
+ fishGraphics.scale.set(1.3 * 1.2, 1.3);
self.speed = Math.random() * 0.2 + 0.48;
self.move = function () {
if (self.targetRotation === undefined || LK.ticks - self.rotationStartTime >= self.rotationDuration) {
self.targetRotation = Math.random() * Math.PI * 2;
@@ -212,9 +212,9 @@
});
var Goldfish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('goldfish', 'Goldfish Graphics', .5, .5);
- fishGraphics.scale.set(1.3);
+ fishGraphics.scale.set(1.3 * 1.2, 1.3);
self.speed = Math.random() * 0.2 + 0.4;
self.move = function () {
if (self.targetRotation === undefined || LK.ticks - self.rotationStartTime >= self.rotationDuration) {
self.targetRotation = Math.random() * Math.PI * 2;
@@ -248,9 +248,9 @@
});
var GuppyFish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('guppyFish', 'Guppy Fish Graphics', .5, .5);
- fishGraphics.scale.set(1.3);
+ fishGraphics.scale.set(1.3 * 1.2, 1.3);
self.speed = Math.random() * 0.2 + 0.35;
self.move = function () {
if (self.targetRotation === undefined || LK.ticks - self.rotationStartTime >= self.rotationDuration) {
self.targetRotation = Math.random() * Math.PI * 2;
@@ -284,9 +284,9 @@
});
var BettaFish = Fish.expand(function () {
var self = Fish.call(this) || this;
var fishGraphics = self.createAsset('bettaFish', 'Betta Fish Graphics', .5, .5);
- fishGraphics.scale.set(1.3);
+ fishGraphics.scale.set(1.3 * 1.2, 1.3);
self.speed = Math.random() * 0.2 + 0.5;
self.move = function () {
if (self.targetRotation === undefined || LK.ticks - self.rotationStartTime >= self.rotationDuration) {
self.targetRotation = Math.random() * Math.PI * 2;
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.