User prompt
arka plana arka plan asseti yap
User prompt
oyun başlıyınca çok hafif sesle des müziği gelsin
User prompt
yerken eat sesi gelsin
User prompt
yediğimizde 3 saniyebeklesin sonra yok olsun
User prompt
pişerken fire sesi gelsin
User prompt
pişerken bir ateş asseti onun üstünde gezsin
User prompt
fırına gidince 15 saniye bekleyelim sonra pişsin
User prompt
pizzayı yiyince oyun bitmeli
Initial prompt
pizza rest
===================================================================
--- original.js
+++ change.js
@@ -16,8 +16,18 @@
return self;
});
//<Assets used in the game will automatically appear here>
//<Write imports for supported plugins here>
+// Fire class to represent the fire object
+var Fire = Container.expand(function () {
+ var self = Container.call(this);
+ var fireGraphic = self.attachAsset('fire', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ self.visible = false;
+ return self;
+});
// Pizza class to represent the pizza object
var Pizza = Container.expand(function () {
var self = Container.call(this);
var rawPizza = self.attachAsset('rawPizza', {
@@ -32,9 +42,11 @@
LK.setTimeout(function () {
self.isCooked = true;
rawPizza.visible = false;
cookedPizza.visible = true;
+ fire.visible = false;
}, 15000);
+ fire.visible = true;
}
};
self.eat = function () {
if (self.isCooked && !self.isEaten) {
@@ -61,8 +73,11 @@
* Game Code
****/
// Initialize pizza and button
var pizza = game.addChild(new Pizza());
+var fire = pizza.addChild(new Fire());
+fire.x = 0;
+fire.y = 0;
pizza.x = 2048 / 2;
pizza.y = 2732 / 2;
var bakeButton = game.addChild(new BakeButton());
bakeButton.x = 2048 - 100; // Position at top right
çiğ pizza. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
fire. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
mutfak. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Fırın. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows