Code edit (1 edits merged)
Please save this source code
User prompt
Los textos no son visibles
User prompt
agrega textos en la esquina inferior derecha para visualizar el acurracy
User prompt
crea variables para contar cuantos perfect, marvelous, bad, etc lleva el jugador
Code edit (3 edits merged)
Please save this source code
User prompt
Agrega un contador para llevar cuantos marvelous, perfect, bad, etc lleva el jugador (en forma de torre del mejor al peor, en la esquina inferior derecha)
User prompt
Agrega un contador para llevar cuantos marvelous, perfect, bad, etc lleva el jugador (en forma de torre del mejor al peor)
User prompt
Agrega un sonido al tocar
User prompt
agrega un sonido al tocar perfecto
User prompt
si se toca muy tarde el ms sera -ms si se toca muy despues ms
User prompt
haz que los textos de hit esten en la parte superior
User prompt
agrega al lado del texto de resultado el ms (ej: good / 20ms)
User prompt
crea un sistema de fail, bad, good, perfect, marvelous dependiendo de ms del hit (ms = milisegundos) si hit acurracy esta en la misma posicion de hit zone es marvelous y agrega segun los ms (negativo y positivo), si se pasa mucho tiempo = fail, si se toca muy per muy antes = fail
User prompt
Elimina una duración de minima y maxima de hitacurracy y haz que sea lineal dependiente de la velocidad
User prompt
elimina el hit acurracy duration
Code edit (1 edits merged)
Please save this source code
User prompt
crea una variable speed para modificar la velocidad en la que cae la hit acurracy
User prompt
Please fix the bug: 'tween.to is not a function' in or related to this line: 'tween.to(hitAccuracy, {' Line Number: 41 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'tween is not defined' in or related to this line: 'tween.to(hitAccuracy, {' Line Number: 36 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
crea un segundo aro para note llamada hit acurracy, este esta muy separado y se acerca a hit zone
User prompt
crea una variable llamada ms
User prompt
haz que note sea tocable y al tocarlo este se se destruye y se crea otro en un lugar random
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
agrega a note un aro externo llamado hit zone separado a unos pixeles de el con una transparencia de 0.6
/**** * Classes ****/ // Note class: creates a note at a random (x, y) position var Note = Container.expand(function () { var self = Container.call(this); // Attach the hit zone asset (external ring), centered, slightly larger, semi-transparent var hitZone = self.attachAsset('hit', { anchorX: 0.5, anchorY: 0.5 }); hitZone.alpha = 0.4; // Attach the note asset, centered var noteAsset = self.attachAsset('note', { anchorX: 0.5, anchorY: 0.5 }); // Randomize position within the visible game area, avoiding edges // Note: 2048x2732 is the game area var margin = 100; self.x = margin + Math.random() * (2048 - 2 * margin); self.y = margin + Math.random() * (2732 - 2 * margin); return self; }); /**** * Initialize Game ****/ // Create and add a note at a random position var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ var note = new Note(); /* * Initializations */ game.addChild(note);
===================================================================
--- original.js
+++ change.js
@@ -8,9 +8,9 @@
var hitZone = self.attachAsset('hit', {
anchorX: 0.5,
anchorY: 0.5
});
- hitZone.alpha = 0.6;
+ hitZone.alpha = 0.4;
// Attach the note asset, centered
var noteAsset = self.attachAsset('note', {
anchorX: 0.5,
anchorY: 0.5