User prompt
Add more type dancing event to the man
User prompt
Add ASCII art a dancing man above the text
User prompt
This dancing is not enough variable
User prompt
This dancing is not enough variable
User prompt
Add dancing animation to the man
User prompt
Add ASCII art a dancing man above the text
User prompt
Add ASCII art under the text a dancing man
User prompt
Add ASCII art under the text a dancing Rick Astley
User prompt
Add ASCII art of a dancing man
User prompt
Add ASCII art of dancing Rick Astley
User prompt
Add ASCII art of a dancing man dancing as Rick Asley
User prompt
Add dancing event to the body, arms and legs too
User prompt
Repair it
User prompt
Add ASCII art of a dancing man dancing variable as Rick Asley
User prompt
Slow down th dancing speed to the tent
User prompt
Add ASCII art of a dancing man animation dancing variable
User prompt
Add ASCII art of a dancing man dancing variable
User prompt
Add ASCII art of a dancing man dancing variable to the Rick Astley - Never Gonna Give You Up
User prompt
I asked for a stick man
User prompt
Add ASCII art of a dancing man dancing variable to the Rick Astley - Never Gonna Give You Up song
User prompt
Add ASCII art of dancing Rick Astley - Never Gonna Give You Up
User prompt
Not enugh the man movement
User prompt
Add ASCII art of a dancing man
User prompt
Add ASCII art of a dancing man dancing well
User prompt
Add ASCII art of a dancing man dancing to the Rick Astley - Never Gonna Give You Up song
/****
* Classes
****/
//<Assets used in the game will automatically appear here>
//<Write imports for supported plugins here>
// Class for displaying ASCII art frames
var AsciiFrame = Container.expand(function () {
var self = Container.call(this);
var text = new Text2('', {
size: 30,
fill: 0xFFFFFF,
font: "monospace"
});
text.anchor.set(0.5, 0.5);
self.addChild(text);
self.setText = function (asciiArt) {
text.setText(asciiArt);
};
return self;
});
// Class for displaying ASCII art of a dancing man
var DancingMan = AsciiFrame.expand(function () {
var self = AsciiFrame.call(this);
var danceFrames = [" O \n /|\\ \n / \\ ", "\\O/ \n | \n / \\ ", " O \n\\|/ \n / \\ ", "/O\\ \n | \n / \\ "];
var currentFrameIndex = 0;
self.update = function () {
self.setText(danceFrames[currentFrameIndex]);
currentFrameIndex = (currentFrameIndex + 1) % danceFrames.length;
};
return self;
});
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000 //Init game with black background
});
/****
* Game Code
****/
// ASCII frames of Rick Astley's "Never Gonna Give You Up" (simplified for demonstration)
var asciiFrames = ["Never gonna give you up\nNever gonna let you down", "Never gonna run around\nAnd desert you", "Never gonna make you cry\nNever gonna say goodbye", "Never gonna tell a lie\nAnd hurt you"];
var currentFrameIndex = 0;
var asciiDisplay = new AsciiFrame();
asciiDisplay.x = 2048 / 2;
asciiDisplay.y = 2732 / 2;
game.addChild(asciiDisplay);
function updateAsciiFrame() {
asciiDisplay.setText(asciiFrames[currentFrameIndex]);
currentFrameIndex = (currentFrameIndex + 1) % asciiFrames.length;
}
// Update ASCII frame every 1 second
var frameInterval = LK.setInterval(updateAsciiFrame, 1000);
// Clean up interval on game over
game.on('gameOver', function () {
LK.clearInterval(frameInterval);
});
// Start the animation
updateAsciiFrame();
// Add dancing man
var dancingMan = new DancingMan();
dancingMan.x = 2048 / 2;
dancingMan.y = 2732 / 2 + 200;
game.addChild(dancingMan);