User prompt
When fish touch the bordee of the water they move bavk at the center of the water
User prompt
Make sure fish cant never swim out of the water with 2 idea
User prompt
Make sure fish cant never swim out of the water with 2 idea
User prompt
Make sure fish cant never swim out of the water with 2 idea
User prompt
Make sure fish cant never swim out of the water with 2 idea
User prompt
Make sure fish cant never swim out of the water with 2 idea
User prompt
Make sure all race of fish cant never swim out of the water
User prompt
Make sure fish cant never swim out of the water with 2 idea
User prompt
Make sure fish cant never swim out of the water
User prompt
Make fish move 2 time faster
User prompt
If fish swim out of the water they are imediately teleport in the water
User prompt
If fish swim out of the water they are imediately teleport in the water
User prompt
If fish swim out of the water they are imediately teleport in the water
User prompt
Fish cant swim out of the water
User prompt
Fix fish swim out of the water
User prompt
Fish move 2 time faster
User prompt
Fish spawn at random location at max 500 pixel from the center
User prompt
Fish canot swim out of the water
User prompt
Make water 30 percent transparent
User prompt
Make water 20 percent transparent
User prompt
Make water 10 percent transparent
User prompt
Make water 90 percent transparent
User prompt
Make water 95 percent transparent
User prompt
Increase water size by 10 percent
User prompt
Make water 80 percent transparent
===================================================================
--- original.js
+++ change.js
@@ -214,14 +214,14 @@
self.x = newX;
self.y = newY;
}
var waterBounds = self.getWaterBounds();
- if (self.x < waterBounds.left || self.x > waterBounds.right) {
- self.rotation = Math.PI - self.rotation;
+ var centerX = (waterBounds.left + waterBounds.right) / 2;
+ var centerY = (waterBounds.top + waterBounds.bottom) / 2;
+ if (self.x < waterBounds.left || self.x > waterBounds.right || self.y < waterBounds.top || self.y > waterBounds.bottom) {
+ self.x = centerX;
+ self.y = centerY;
}
- if (self.y < waterBounds.top || self.y > waterBounds.bottom) {
- self.rotation = -self.rotation;
- }
fishGraphics.scale.x = Math.cos(self.rotation) < 0 ? -1 : 1;
fishGraphics.rotation = 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.