Skip to content

Commit

Permalink
Merge pull request #10 from platacard/add-timer
Browse files Browse the repository at this point in the history
Add timer
  • Loading branch information
parabolabamse authored Oct 8, 2024
2 parents 144d6ed + d0b4dc6 commit 131c6e2
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 31 deletions.
54 changes: 28 additions & 26 deletions js/CCreditsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ function CCreditsPanel() {
createjs.Ease.quartIn,
);

var iWidth = 500;
var iWidth = 600;
var iHeight = 100;
var iX = 0;
var iY = -oSprite.height / 2 + 110;
const widthShift = iWidth - 100;
const ruleFont = 25;

new CTLText(
_oPanelContainer,
iX - iWidth / 2,
iY - iHeight,
iX - iWidth / 2.05,
iY - iHeight / 2 + 30,
widthShift,
iHeight,
40,
Expand All @@ -55,90 +56,91 @@ function CCreditsPanel() {
2,
2,
TEXT_DEVELOPED,
true,
true,
false,
true,
false,
);
false
).setStroke(10, "#000");

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

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

new CTLText(
_oPanelContainer,
iX - iWidth / 2,
iY + 190,
iY - iHeight / 2 + 240,
widthShift,
iHeight,
30,
ruleFont,
"left",
"#fff",
PRIMARY_FONT,
1,
2,
2,
" Solicita tu tarjeta Plata si aún no la\n tienes. Necesitas ser cliente Plata para\n participar",
"3. Solicita tu tarjeta Plata si aún no la\n tienes. Necesitas ser cliente Plata para\n participar",
false,
true,
false,
false,
);
false
).setStroke(10, "#000");

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

// new CTLText(
// _oPanelContainer,
Expand Down
8 changes: 4 additions & 4 deletions js/CMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ function CMenu() {
_oBg = createBitmap(oSprite);
_oBg.x = CANVAS_WIDTH / 2;
_oBg.y = CANVAS_HEIGHT / 2;
_oBg.regX = oSprite.width / 2.15;
_oBg.regY = oSprite.height / 2;
_oBg.scale = 1.75;
_oBg.regX = oSprite.width / 2;
_oBg.regY = oSprite.height / 2.15;
_oBg.scale = 1.7;
s_oStage.addChild(_oBg);

var oSprite = s_oSpriteLibrary.getSprite("logo_menu");
_oLogo = createBitmap(oSprite);
_oLogo.regX = oSprite.width / 2;
_oLogo.regY = oSprite.height / 2;
_oLogo.regY = oSprite.height / 2 + 100;
_oLogo.x = CANVAS_WIDTH / 2;
_oLogo.y = CANVAS_HEIGHT / 2 - 350;
_oLogo.scale = 0.6;
Expand Down
2 changes: 1 addition & 1 deletion js/lib/CGfxButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function CGfxButton(iXPos,iYPos,oSprite, oParentContainer){
_bDisabled = false;
_bScalable = true;

_iScaleFactor = 1.2;
_iScaleFactor = 1;

_aCbCompleted=new Array();
_aCbOwner =new Array();
Expand Down
Binary file removed sprites/bg_menu.jpg
Binary file not shown.
Binary file modified sprites/bg_menu.webp
Binary file not shown.
Binary file removed sprites/logo_menu.png
Binary file not shown.
Binary file modified sprites/logo_menu.webp
Binary file not shown.

0 comments on commit 131c6e2

Please sign in to comment.