Skip to content

Commit

Permalink
Merge pull request #12 from platacard/add-timer
Browse files Browse the repository at this point in the history
Add timer
  • Loading branch information
parabolabamse authored Oct 9, 2024
2 parents 3649fd9 + bc03631 commit 0e2c64a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 86 deletions.
88 changes: 4 additions & 84 deletions js/CCreditsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function CCreditsPanel() {
widthShift,
iHeight,
40,
"center",
"left",
"#fff",
PRIMARY_FONT,
1,
Expand All @@ -59,53 +59,13 @@ function CCreditsPanel() {
false,
true,
false,
false
).setStroke(10, "#000");

new CTLText(
_oPanelContainer,
iX - iWidth / 2,
iY - iHeight / 2 + 100,
widthShift,
iHeight,
ruleFont,
"left",
"#fff",
PRIMARY_FONT,
1,
2,
2,
"1. Completa la carrera con tu mejor tiempo",
false,
true,
false,
false
).setStroke(10, "#000");

new CTLText(
_oPanelContainer,
iX - iWidth / 2,
iY - iHeight / 2 + 170,
widthShift,
iHeight,
ruleFont,
"left",
"#fff",
PRIMARY_FONT,
1,
2,
2,
"2. Ingresa tu número de teléfono para\n guardar el resultado",
false,
true,
false,
false
).setStroke(10, "#000");

new CTLText(
_oPanelContainer,
iX - iWidth / 2,
iY - iHeight / 2 + 240,
iX - iWidth / 2.05,
iY - iHeight / 2 + 100,
widthShift,
iHeight,
ruleFont,
Expand All @@ -115,53 +75,13 @@ function CCreditsPanel() {
1,
2,
2,
"3. Solicita tu tarjeta Plata si aún no la\n tienes. Necesitas ser cliente Plata para\n participar",
`1. Completa la carrera con tu mejor tiempo\n\n2. Ingresa tu número de teléfono para\nguardar el resultado\n\n3. Solicita tu tarjeta Plata si aún no la\n tienes. Necesitas ser cliente Plata para participar\n\n4. Sé uno de los 10 mejores de todos los\n corredores para ganar boletos`,
false,
true,
false,
false
).setStroke(10, "#000");

new CTLText(
_oPanelContainer,
iX - iWidth / 2,
iY - iHeight / 2 + 320,
widthShift,
iHeight,
ruleFont,
"left",
"#fff",
PRIMARY_FONT,
1,
2,
2,
"4. Sé uno de los 10 mejores de todos los\n corredores para ganar boletos",
false,
true,
false,
false
).setStroke(10, "#000");

// new CTLText(
// _oPanelContainer,
// iX - iWidth / 2,
// iY + 300,
// iWidth,
// iHeight,
// 40,
// "center",
// "#fff",
// PRIMARY_FONT,
// 1,
// 2,
// 2,
// "Sé uno de los 10 mejores de todos los corredores para ganar boletos",
// true,
// true,
// false,
// false,
// );

var iY = 196;
// var oLink = new CTLText(_oPanelContainer,
// iX-iWidth/2, iY-iHeight/2, iWidth, iHeight,
Expand Down
2 changes: 1 addition & 1 deletion js/CLang.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var TEXT_GO = "¡VAMOS!";
var TEXT_SPEED_INDICATOR = "Km/h";
var TEXT_SAVE_REMOVE = "¡ESTO ELIMINARÁ TODOS TUS LOGROS! ¿QUIERES CONTINUAR?";
var TEXT_ARE_SURE = "¿ESTÁS SEGURO?";
var TEXT_TRACK_COMPLETED = "PISTA COMPLETADA";
var TEXT_TRACK_COMPLETED = "¡Un tiempo maravilloso!";
var TEXT_LOSE =
"¡QUEDASTE EN EL PUESTO %s! ¡TERMINA ENTRE LOS PRIMEROS %s PARA AVANZAR A LA SIGUIENTE CARRERA!";
var TEXT_TRACK = "PISTA %s";
Expand Down
2 changes: 1 addition & 1 deletion js/CNextLevelPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function CNextLevelPanel(iRank, iScore, iLevel, raceTime) {
var oCup = createBitmap(oSprite);
oCup.regX = oSprite.width / 2;
oCup.regY = oSprite.height / 2;
oCup.scale = 0.5;
oCup.scale = 0.15;
oRankContainer.addChild(oCup);

var oScoreContainer = new createjs.Container();
Expand Down
Binary file modified sprites/bronze_cup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/gold_cup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/no_cup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sprites/silver_cup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e2c64a

Please sign in to comment.