User prompt
Add 3d to the house
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 518
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 519
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 518
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 516
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 516
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 516
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 515
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 515
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.timeOfDayText.setText('Time of Day: ' + hours.toString().padStart(2, '0') + ':' + minutes.toString().padStart(2, '0'));' Line Number: 515
User prompt
Fix Bug: 'Uncaught TypeError: Graphics is not a constructor' in this line: 'var reflectionMask = new Graphics();' Line Number: 18
User prompt
Fix Bug: 'Uncaught TypeError: Graphics is not a constructor' in this line: 'var reflectionMask = new Graphics();' Line Number: 18
User prompt
Fix Bug: 'Uncaught TypeError: Graphics is not a constructor' in this line: 'var reflectionMask = new Graphics();' Line Number: 18
User prompt
Fix Bug: 'Uncaught TypeError: Sprite is not a constructor' in this line: 'var reflectionSprite = new Sprite(reflectionTexture);' Line Number: 15
User prompt
Fix Bug: 'Uncaught TypeError: Graphics is not a constructor' in this line: 'var reflectionGradient = new Graphics();' Line Number: 12
User prompt
Improve reflection
User prompt
Add réflection on the background
User prompt
Fix Bug: 'Uncaught ReferenceError: filters is not defined' in this line: 'var shadow = new filters.DropShadowFilter();' Line Number: 336
User prompt
Fix Bug: 'Uncaught ReferenceError: filters is not defined' in this line: 'var shadow = new filters.DropShadowFilter();' Line Number: 336
User prompt
Fix Bug: 'Uncaught ReferenceError: filters is not defined' in this line: 'var shadow = new filters.DropShadowFilter();' Line Number: 336
User prompt
Fix Bug: 'Uncaught ReferenceError: filters is not defined' in this line: 'var shadow = new filters.DropShadowFilter();' Line Number: 336
User prompt
Fix Bug: 'Uncaught ReferenceError: filters is not defined' in this line: 'var shadow = new filters.DropShadowFilter();' Line Number: 336
User prompt
Fix Bug: 'Uncaught ReferenceError: filters is not defined' in this line: 'var shadow = new filters.DropShadowFilter();' Line Number: 336
User prompt
Fix Bug: 'Uncaught ReferenceError: filters is not defined' in this line: 'var shadow = new filters.DropShadowFilter();' Line Number: 336
User prompt
Fix Bug: 'Uncaught ReferenceError: filters is not defined' in this line: 'var shadow = new filters.DropShadowFilter();' Line Number: 336
===================================================================
--- original.js
+++ change.js
@@ -1,4 +1,19 @@
+var BackgroundWithReflection = Container.expand(function () {
+ var self = Container.call(this);
+ var backgroundGraphics = self.createAsset('background', 'Background Graphics', 0.5, 0.5);
+ backgroundGraphics.width = 4096 * 0.8;
+ backgroundGraphics.height = 5464 * 0.8;
+ backgroundGraphics.y = -backgroundGraphics.height / 2 - 400;
+ var reflectionGraphics = self.createAsset('background', 'Background Reflection', 0.5, 0.5);
+ reflectionGraphics.width = backgroundGraphics.width;
+ reflectionGraphics.height = backgroundGraphics.height;
+ reflectionGraphics.y = backgroundGraphics.height / 2 - 400;
+ reflectionGraphics.scale.y = -1;
+ reflectionGraphics.alpha = 0.5;
+ self.addChild(backgroundGraphics);
+ self.addChild(reflectionGraphics);
+});
var Market = Container.expand(function () {
var self = Container.call(this);
var marketGraphics = self.createAsset('market', 'Market Graphics', .5, .5);
self.x = 2048 / 2;
@@ -329,24 +344,10 @@
}
villagerCountText.setText('Villagers: ' + (self.villagers ? self.villagers.length : 0));
};
});
-var ShadowOverlay = Container.expand(function () {
- var self = Container.call(this);
- self.createShadow = function () {
- var shadow = new filters.DropShadowFilter();
- shadow.blur = 5;
- shadow.color = 0x000000;
- shadow.alpha = 0.5;
- shadow.distance = 10;
- shadow.angle = 45;
- self.filters = [shadow];
- };
-});
var Game = Container.expand(function () {
var self = Container.call(this);
- self.shadowOverlay = self.addChild(new ShadowOverlay());
- self.shadowOverlay.createShadow();
self.makeVillagerDecisions = function (villager) {
if (!villager.isDoingSomething()) {
villager.decideNextAction();
}
@@ -412,13 +413,9 @@
var resources = createResources();
self.addChild(resources.wood);
self.addChild(resources.rock);
self.addChild(resources.food);
- var background = self.createAsset('background', 'Background Graphics', 0, 0);
- background.width = 4096 * 0.8;
- background.height = 5464 * 0.8;
- background.x = (2048 - background.width) / 2;
- background.y = (2732 - background.height) / 2 - 400;
+ var background = new BackgroundWithReflection();
self.addChildAt(background, 0);
Game.prototype.createVillager = function (x, y, isBaby) {
var villager = new Villager(this.resources);
villager.x = x;
A background of a paysage with plain and without tree or montainbut no water see from the top in the air 100m by 100m Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
One human medieval villager in a warcraft 2 style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a house in a warcraft 2 style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A tree a rock and crambery in a RTS style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A heart comic style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A cloud in a comic style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A market in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An Inn in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An school in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An bakery in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A well in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A tree in a rts style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An apple in a rts style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A rock in a rts style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A home in a RTS and fantasy style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A brewery in a fantasy rts style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A lumberjack in a fantasy rts style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a marketplace in a fantasy rts style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a festival in a fantasy rts style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.