User prompt
player can only move between each column
User prompt
Fix Bug: 'TypeError: LK.effects.explode is not a function' in this line: 'LK.effects.explode(beat);' Line Number: 50
User prompt
If the player touch the beat, it explode
User prompt
make a bottom bar with 4 descriptions for each column being "Jab", "Arm Swing", "Chest Pop" and "Stomp"
User prompt
can you make the beat from each column different in colours
User prompt
Fix Bug: 'Uncaught ReferenceError: playerGraphics is not defined' in this line: 'player.y = 2732 - playerGraphics.height / 2;' Line Number: 19
User prompt
can you make the starting position of the player at the bottom of the screeen
User prompt
can you make the player only move horizontally
User prompt
reduce the beat to 4 columns
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'move')' in this line: 'beats[a].move();' Line Number: 23
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'move')' in this line: 'beats[a].move();' Line Number: 23
Initial prompt
KrumpBeatz DJ
var Beat = Container.expand(function () { var self = Container.call(this); var beatGraphics = self.createAsset('beat', 'Beat Graphics', .5, .5); self.speed = 5; self.move = function () { self.y += self.speed; }; }); var Player = Container.expand(function () { var self = Container.call(this); var playerGraphics = self.createAsset('player', 'Player Graphics', .5, .5); self.dance = function () {}; }); var Game = Container.expand(function () { var self = Container.call(this); var beats = []; var player = self.addChild(new Player()); player.x = 2048 / 2; player.y = 2732 / 2; LK.on('tick', function () { player.dance(); for (var a = beats.length; a >= 0; a--) { beats[a].move(); if (beats[a].y > 2732) { beats[a].destroy(); beats.splice(a, 1); } } if (LK.ticks % 60 == 0) { var newBeat = new Beat(); newBeat.x = Math.random() * 2048; newBeat.y = 0; beats.push(newBeat); self.addChild(newBeat); } }); stage.on('down', function (obj) { var event = obj.event; var pos = event.getLocalPosition(self); player.x = pos.x; player.y = pos.y; }); });
var Beat = Container.expand(function () {
var self = Container.call(this);
var beatGraphics = self.createAsset('beat', 'Beat Graphics', .5, .5);
self.speed = 5;
self.move = function () {
self.y += self.speed;
};
});
var Player = Container.expand(function () {
var self = Container.call(this);
var playerGraphics = self.createAsset('player', 'Player Graphics', .5, .5);
self.dance = function () {};
});
var Game = Container.expand(function () {
var self = Container.call(this);
var beats = [];
var player = self.addChild(new Player());
player.x = 2048 / 2;
player.y = 2732 / 2;
LK.on('tick', function () {
player.dance();
for (var a = beats.length; a >= 0; a--) {
beats[a].move();
if (beats[a].y > 2732) {
beats[a].destroy();
beats.splice(a, 1);
}
}
if (LK.ticks % 60 == 0) {
var newBeat = new Beat();
newBeat.x = Math.random() * 2048;
newBeat.y = 0;
beats.push(newBeat);
self.addChild(newBeat);
}
});
stage.on('down', function (obj) {
var event = obj.event;
var pos = event.getLocalPosition(self);
player.x = pos.x;
player.y = pos.y;
});
});
a forward facing brick with the writing "Stomp" Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a forward facing brick with the writing "Jab" Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A Krump Dancer wearing a snapback and Timberlands shoes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a forward facing brick with the writing "Chest Pop" Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a forward facing brick with the writing "Arm Swing" Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
an urban street road near a boom box Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a concrete floor Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.