crossy road + another 60sbr update :\)\)

This commit is contained in:
Sky 2023-06-06 16:51:44 -04:00
parent 3ccec36727
commit f6c1a50da5
185 changed files with 9051 additions and 6 deletions

View File

@ -92,6 +92,9 @@
let label; let label;
let thetime; let thetime;
let timer; let timer;
let gravity = 0.6;
let playerspeed = 4;
let jumpheight = -13;
document.onkeydown = keydown; document.onkeydown = keydown;
function keydown (evt) { function keydown (evt) {
@ -108,7 +111,7 @@
tim = 0; tim = 0;
} else if (evt.altKey && evt.key === "q") { } else if (evt.altKey && evt.key === "q") {
cheat = prompt("dev menu made by egamepass:\n1: level changer\n2. fps changer\n3. time go bye bye\n4. no clip\n5. get picked up\n6: inf jump\n7: jump height\n8: no ground\n9: walk speed") cheat = prompt("dev menu made by egamepass:\n1: level changer\n2. fps changer\n3. time go bye bye\n4. no clip\n5. get picked up\n6: inf jump\n7: gravity\n8: no ground\n9: walk speed\n10: jump height")
if(cheat == 1){ if(cheat == 1){
levl = prompt("set levl (complete level)\nlevl 0 = title\n-9 = game over\n1-6 = levels"); levl = prompt("set levl (complete level)\nlevl 0 = title\n-9 = game over\n1-6 = levels");
} else if(cheat == 2){ } else if(cheat == 2){
@ -127,19 +130,26 @@
} else if(cheat == 6){ } else if(cheat == 6){
infjump = 1; infjump = 1;
} else if(cheat == 7){ } else if(cheat == 7){
sprt.jh = prompt("set jump height (negative = up, default is -13)") gravity = parseFloat(prompt("set gravity (default is 0.6)"));
} else if(cheat == 8){ } else if(cheat == 8){
plats = ""; plats = "";
} else if(cheat == 9){ } else if(cheat == 9){
sprt.spd = prompt("set speed (default is 4)") playerspeed = prompt("set speed (default is 4)")
sprt.spd = playerspeed;
} else if (cheat == 10){
jumpheight = parseFloat(prompt("jump height? default is -13"));
sprt.jh = jumpheight;
} else { } else {
alert("idk what u want"); alert("idk what u want");
} }
} else if (evt.key === 't') { } else if (evt.key === 't') {
speedrun = 1; speedrun = 1;
} else if (evt.key === '1' || evt.key === '2' || evt.key === '3' || evt.key === '4' || evt.key === '5' || evt.key === '6' || evt.key === '7' && evt.altKey){
levl = evt.key;
newState();
} }
document.addEventListener('keydown', event => { document.addEventListener('keydown', event => {
if (event.code === 'Space' && infjump == 1) { if (event.code === 'Space' || event.code === 'ArrowUp' && infjump == 1) {
sprt.ju = 0; sprt.ju = 0;
} }
}) })
@ -149,7 +159,7 @@
var graphics = game.add.graphics(0, 0); var graphics = game.add.graphics(0, 0);
graphics.beginFill("#000"); graphics.beginFill("#000");
graphics.alpha = 0.5; graphics.alpha = 0.5;
graphics.drawRect(0, 0, 100, 20); graphics.drawRect(0, 0, 105, 20);
graphics.fixedToCamera = true; graphics.fixedToCamera = true;
timer = game.add.text(0,0,"Time: " + thetime, {font: '15px font', fill: '#ffffff'}); timer = game.add.text(0,0,"Time: " + thetime, {font: '15px font', fill: '#ffffff'});
timer.fixedToCamera = true; timer.fixedToCamera = true;

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,286 @@
#app-store-interstitial {
overflow: hidden;
position: absolute;
font-family: EditUndoBrk;
color: #fff;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */
}
#app-store-interstital img {
image-rendering: pixelated;
}
#app-store-interstitial img.smooth {
image-rendering: initial;
}
#app-store-interstitial .container {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
@media (orientation: portrait) {
.landscape-only {
display: none;
}
}
@media (orientation: landscape) {
.portrait-only {
display: none;
}
}
/* Screen 1 */
#screen-1 #side-characters {
height: 100%;
position: absolute;
right: -5%;
top: 0;
}
#screen-1 .center {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 90%;
margin: 7% 0;
}
#screen-1 .bottom {
width: 100%;
text-align: center;
}
#screen-1 .bottom img {
width: 30%;
max-width: 600px;
}
#screen-1 .usp-list {
width: 40%;
font-size: 1em;
margin: 0;
list-style: none;
padding: 0 0 0 4%;
}
#screen-1 .usp-list li {
margin: 5% 0;
}
#screen-1 .usp-list li img {
display: inline-block;
margin-right: 5%;
width: 7%;
}
#screen-1 .usp-list .text {
display: inline-block;
width: 88%;
vertical-align: middle;
}
#screen-1 h2 {
font-size: 1.75em;
text-align: center;
line-height: 1.2em;
}
#screen-1 .crossy-road-app-icon {
width: 24%;
}
#screen-1 .pixel-arrow {
width: 5%;
margin: 0 4%;
}
#screen-1 .pixel-device {
width: 10%;
}
@media (orientation: portrait) {
#screen-1 .bottom img {
width: 70%;
}
#side-characters {
display: none;
}
#screen-1 h2 {
font-size: 2.5em;
margin-bottom: 0;
}
#screen-1 .usp-list {
width: 70%;
font-size: 1.75em;
margin: 2% 0;
padding: 0;
}
#screen-1 .center {
margin: 4% 0;
}
}
/* Screen 2 */
#screen-2 h2 {
font-size: 1.5em;
line-height: 1.3em;
text-align: center;
margin: 0 6%;
}
#screen-2.container {
justify-content: center;
}
#screen-2 .top {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 90%;
}
#screen-2 .pixel-phone {
width: 7%;
}
#screen-2 .pixel-tablet {
width: 13%;
}
#screen-2 .bottom {
position: relative;
text-align: center;
width: 80%;
margin-top: 8%;
}
#screen-2 .search-bar {
width: 100%;
}
#screen-2 #poki-text {
position: absolute;
left: 7%;
color: #36B5E8;
top: 50%;
font-size: 2em;
margin-top: -0.65em;
}
#screen-2 .hand {
position: absolute;
transform: rotate(-5deg);
bottom: -25%;
right: -3%;
width: 30%;
}
#screen-2 #type-cursor {
color: #FFD522;
margin-left: 2%;
animation: blink-animation 1s steps(2, start) infinite;
}
@keyframes blink-animation {
to {
visibility: hidden;
}
}
/* Screen 3 */
#screen-3 .phone {
width: 80%;
transform: rotate(-5deg);
}
#screen-3 .hand {
position: absolute;
transform: rotate(-12deg);
bottom: -25%;
right: 10%;
width: 40%;
}
/* Screen 4 */
#screen-4 .top {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
#screen-4 .top .left {
width: 20%;
margin-right: 5%;
}
#screen-4 .top .right {
width: 20%;
}
#screen-4 .crossy-road-app-icon,
#screen-4 .crossy-road-logo,
#screen-4 .hipster-whale-logo {
width: 100%;
}
#screen-4 .crossy-road-logo {
margin-bottom: 5%;
}
#screen-4 .center {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 100%;
margin: 7% 0;
}
#screen-4 .center img {
display: inline-block;
width: 60%;
}
#screen-4 .center .pixel-arrow {
margin: 0 3%;
width: 3%;
}
#screen-4 .center .pixel-device {
width: 6%;
}
#screen-4 .bottom {
width: 100%;
text-align: center;
}
#screen-4 .bottom img {
width: 20%;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
crossyroad/audio/car1.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/car2.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/car3.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/carhit.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
crossyroad/audio/dirt1.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/dirt2.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/dirt3.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
crossyroad/audio/hop2.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
crossyroad/audio/pop-1.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/pop-2.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/pop-3.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/pop-4.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/pop-5.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/pop-6.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/pop-7.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/pop-8.mp3 Normal file

Binary file not shown.

BIN
crossyroad/audio/pop-9.mp3 Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More