User prompt
Le but du jeu est de pousser les rochers en dehors de la route, dans le camp adverse, sachant que le camp du joueur ordinateur est compris entre x=0 et x=255, et que le camp du joueur humain est compris entre x=1793 et x=2048.
User prompt
Les rochers sont déposés aléatoirement dans une zone comprise entre x=256 et x=1792.
User prompt
Les bulldozers du joueur ordinateur sont différents de ceux du joueur humain.
User prompt
The road is the full screen back ground image.
User prompt
The road crosses the screen from top to bottom.
User prompt
The road cross the screen from the top to the bottom and is larger from 1/3 to 2/3 of the screen.
User prompt
Il y a une grande route dans le fond qui délimite les deux camps.
User prompt
Les scores sont placés à un tier de l'écran pour le rouge et à deux tiers de l'écran pour le bleu.
User prompt
Fix Bug: 'TypeError: rocks[i].containsPoint is not a function' in this line: 'if (rocks[i].containsPoint(position)) {' Line Number: 79
User prompt
Remove the Road.
User prompt
Fix Bug: 'TypeError: event.getLocalPosition is not a function' in this line: 'var position = event.getLocalPosition(self);' Line Number: 87
User prompt
Un petit rocher vaut un point, un rocher moyen vaut deux points, et un gros rocher vaut trois points.
User prompt
Le joueur ordinateur a un score rouge en haut à gauche, le joueur humain a un score bleu en haut à droite.
User prompt
La route est matérialisée par deux lignes à droite et à gauche qui délimitent le camps de chaque joueur. Il y a une ligne pointillée au milieu de la route. Au départ les bulldozers des deux joueurs sont rangés côte à côte en haut.
User prompt
Chaque fois qu'un rocher est sorti de la route, il disparaît du jeu. Le joueur qui sort un rocher de la route gagne un bulldozer supplémentaire. Une fois qu'un rocher est sorti de la route, les bulldozers qui poussé le rocher sont replacés à leur point de départ.
User prompt
Il y a trois tailles de rochers: petit, moyen, gros. Plus le rocher est gros, plus il avance lentement quand les bulldozers le pousse. Il est possible d'utiliser un deux ou trois bulldozers pour pousser un rocher.
User prompt
Pour déplacer un rocher, un joueur clique sur un de ses bulldozers puis sur un rocher. Le bulldozer se déplace derrière le rocher et le pousse en dehors de la route.
User prompt
Le joueur ordinateur est à gauche et le joueur humain est à droite.
User prompt
Chaque joueur est placé en dehors de la route, chacun de son côté.
Initial prompt
Clear The Road
===================================================================
--- original.js
+++ change.js
@@ -1,13 +1,4 @@
-var Road = Container.expand(function () {
- var self = Container.call(this);
- var roadGraphics = self.createAsset('road', 'Road Graphics', 0.5, 0.5);
- self.width = 100;
- self.height = 2732;
- roadGraphics.width = self.width;
- roadGraphics.height = self.height;
- self.x = 2048 / 2 - self.width / 2;
-});
var Bulldozer = Container.expand(function () {
var self = Container.call(this);
var bulldozerGraphics = self.createAsset('bulldozer', 'Bulldozer Graphics', .5, .5);
self.targetRock = null;
@@ -47,15 +38,16 @@
self.points = 3;
});
var Game = Container.expand(function () {
var self = Container.call(this);
+ self.createAsset('road_background', 'Full screen road background', 0, 0);
var humanScoreTxt = new Text2('0', {
size: 150,
fill: '#0000ff'
});
humanScoreTxt.anchor.set(0.5, 0);
LK.gui.topRight.addChild(humanScoreTxt);
- humanScoreTxt.x = 2048 * 2 / 3 - humanScoreTxt.width / 2;
+ humanScoreTxt.x = 2048 - humanScoreTxt.width / 2;
humanScoreTxt.y = 0;
self.humanScore = 0;
self.updateHumanScore = function (score) {
self.humanScore += score;
@@ -66,22 +58,20 @@
fill: '#ff0000'
});
computerScoreTxt.anchor.set(0.5, 0);
LK.gui.topLeft.addChild(computerScoreTxt);
- computerScoreTxt.x = 2048 / 3 - computerScoreTxt.width / 2;
+ computerScoreTxt.x = computerScoreTxt.width / 2;
computerScoreTxt.y = 0;
self.computerScore = 0;
self.updateComputerScore = function (score) {
self.computerScore += score;
computerScoreTxt.setText(self.computerScore.toString());
};
var computerBulldozer = self.addChild(new Bulldozer());
- var road = self.addChild(new Road());
var humanBulldozer = self.addChild(new Bulldozer());
computerBulldozer.x = 2048 * 0.25 - computerBulldozer.width / 2;
humanBulldozer.x = 2048 * 0.75 - humanBulldozer.width / 2;
- computerBulldozer.y = road.y + road.height;
- humanBulldozer.y = road.y - humanBulldozer.height;
+ computerBulldozer.y = humanBulldozer.y = 0;
humanBulldozer.on('down', function (obj) {
var selectedBulldozer = obj.target;
stage.on('down', function (obj) {
var event = obj.event;
A small rock
a rock without any shadow and four time smaller than the original.
Blue color
a rock is being crunched so there is smoke and peaces of rocks viewed from top.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Un trophée de victoire sous forme d'une coupe d'où s'échappe un feu d'artifice.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Red bulldozer viewed strictly from top. Top view as if we are a drone.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Remove yellow lines.