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
/****
* Classes
****/
// Button class to represent the bake button
var BakeButton = Container.expand(function () {
var self = Container.call(this);
var buttonGraphic = self.attachAsset('bakeButton', {
anchorX: 0.5,
anchorY: 0.5
});
self.down = function (x, y, obj) {
if (pizza) {
pizza.cook();
}
};
return self;
});
//<Assets used in the game will automatically appear here>
//<Write imports for supported plugins here>
// Pizza class to represent the pizza object
var Pizza = Container.expand(function () {
var self = Container.call(this);
var rawPizza = self.attachAsset('rawPizza', {
anchorX: 0.5,
anchorY: 0.5
});
self.isCooked = false;
self.isEaten = false;
self.cook = function () {
if (!self.isCooked) {
self.isCooked = true;
rawPizza.visible = false;
cookedPizza.visible = true;
}
};
self.eat = function () {
if (self.isCooked && !self.isEaten) {
self.isEaten = true;
cookedPizza.visible = false;
}
};
var cookedPizza = self.attachAsset('cookedPizza', {
anchorX: 0.5,
anchorY: 0.5
});
cookedPizza.visible = false;
return self;
});
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000 //Init game with black background
});
/****
* Game Code
****/
// Initialize pizza and button
var pizza = game.addChild(new Pizza());
pizza.x = 2048 / 2;
pizza.y = 2732 / 2;
var bakeButton = game.addChild(new BakeButton());
bakeButton.x = 2048 - 100; // Position at top right
bakeButton.y = 100;
// Event listener for clicking on the pizza
pizza.down = function (x, y, obj) {
pizza.eat();
};
// Update function for game logic
game.update = function () {
// Game logic can be added here if needed
};
ç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