Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Smash Karts #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions projects/smashkarts/StreamingAssets/aa/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"m_buildTarget":"WebGL","m_SettingsHash":"012304eb5efa77226fa620375549d575","m_CatalogLocations":[{"m_Keys":["AddressablesMainContentCatalogRemoteHash"],"m_InternalId":"https://smashkartsgc.b-cdn.net/assetbundles/remote/webgl/catalog_2025.01.24.11.12.42.hash","m_Provider":"UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider","m_Dependencies":[],"m_ResourceType":{"m_AssemblyName":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","m_ClassName":"System.String"},"SerializedData":[7,76,85,110,105,116,121,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,114,44,32,86,101,114,115,105,111,110,61,48,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,110,117,108,108,75,85,110,105,116,121,69,110,103,105,110,101,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,109,101,110,116,46,82,101,115,111,117,114,99,101,80,114,111,118,105,100,101,114,115,46,80,114,111,118,105,100,101,114,76,111,97,100,82,101,113,117,101,115,116,79,112,116,105,111,110,115,50,0,0,0,123,0,34,0,109,0,95,0,73,0,103,0,110,0,111,0,114,0,101,0,70,0,97,0,105,0,108,0,117,0,114,0,101,0,115,0,34,0,58,0,116,0,114,0,117,0,101,0,125,0]},{"m_Keys":["AddressablesMainContentCatalogCacheHash"],"m_InternalId":"{UnityEngine.Application.persistentDataPath}/com.unity.addressables/catalog_2025.01.24.11.12.42.hash","m_Provider":"UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider","m_Dependencies":[],"m_ResourceType":{"m_AssemblyName":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","m_ClassName":"System.String"},"SerializedData":[7,76,85,110,105,116,121,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,114,44,32,86,101,114,115,105,111,110,61,48,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,110,117,108,108,75,85,110,105,116,121,69,110,103,105,110,101,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,109,101,110,116,46,82,101,115,111,117,114,99,101,80,114,111,118,105,100,101,114,115,46,80,114,111,118,105,100,101,114,76,111,97,100,82,101,113,117,101,115,116,79,112,116,105,111,110,115,50,0,0,0,123,0,34,0,109,0,95,0,73,0,103,0,110,0,111,0,114,0,101,0,70,0,97,0,105,0,108,0,117,0,114,0,101,0,115,0,34,0,58,0,116,0,114,0,117,0,101,0,125,0]},{"m_Keys":["AddressablesMainContentCatalog"],"m_InternalId":"{UnityEngine.AddressableAssets.Addressables.RuntimePath}/catalog.json","m_Provider":"UnityEngine.AddressableAssets.ResourceProviders.ContentCatalogProvider","m_Dependencies":["AddressablesMainContentCatalogRemoteHash","AddressablesMainContentCatalogCacheHash"],"m_ResourceType":{"m_AssemblyName":"Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null","m_ClassName":"UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData"},"SerializedData":[7,76,85,110,105,116,121,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,114,44,32,86,101,114,115,105,111,110,61,48,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,110,117,108,108,75,85,110,105,116,121,69,110,103,105,110,101,46,82,101,115,111,117,114,99,101,77,97,110,97,103,101,109,101,110,116,46,82,101,115,111,117,114,99,101,80,114,111,118,105,100,101,114,115,46,80,114,111,118,105,100,101,114,76,111,97,100,82,101,113,117,101,115,116,79,112,116,105,111,110,115,50,0,0,0,123,0,34,0,109,0,95,0,73,0,103,0,110,0,111,0,114,0,101,0,70,0,97,0,105,0,108,0,117,0,114,0,101,0,115,0,34,0,58,0,116,0,114,0,117,0,101,0,125,0]}],"m_ProfileEvents":false,"m_LogResourceManagerExceptions":true,"m_ExtraInitializationData":[],"m_DisableCatalogUpdateOnStart":false,"m_IsLocalCatalogInBundle":false,"m_CertificateHandlerType":{"m_AssemblyName":"","m_ClassName":""},"m_AddressablesVersion":"1.22.3","m_maxConcurrentWebRequests":500,"m_CatalogRequestsTimeout":0}
361 changes: 361 additions & 0 deletions projects/smashkarts/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,361 @@
html {
box-sizing: border-box;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

body {
margin: 0;
width: 100%;
height: 100%;
overflow: hidden;
}

#xsolla-iframe {
position: absolute;
width: 80%;
height: 100%;
left: 50.5%;
display: none;
transform: translate(-50%, 0%);
}


#mainContainer {
display: flex;
width: 100vw;
height: 100vh;
padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

#mainContainerBg {
position: absolute;
z-index: -1;
margin: 0 calc(-1 * env(safe-area-inset-right)) 0 calc(-1 * env(safe-area-inset-left));
transform: scale(1.1); /* used to remove white fade at the edges of screen */
width: 100vw;
height: 100vh;
background: url("../images/menuBGTile.png"), #496486;
background-size: 10%;
background-repeat: repeat;
background-blend-mode: multiply;
filter: blur(4px);
}

#leftContainer {
display: flex;
flex-direction: column;
}

#gameContainer {
display: flex;
justify-content: center;
}

#gameCanvas {
width: 100vw; /* initial value */
height: 100vh; /* initial value */
}

#btmContainer {
display: none; /* initially hidden then if enabled set to flex */
align-items: center;
justify-content: center;
padding: 0px;
}

#btmAdPlaceholder {
align-items: center;
justify-content: center;
position: absolute;
}

#btmAdPlaceholderBg {
background-color: #00000030;
position: absolute;
width: 100%;
height: 100%;
filter: blur(4px);
z-index: -1;
}

#btmAdResText{
color: white;
font-size: 40px;
font-family: 'Baloo 2';
filter: drop-shadow(2px 2px 0px #2050A9);
}

#btmAdBlockerContainer
{
display: flex;
align-items: center;
height: 100%;
}

#btmAdBlockerImg {
max-height: 90%;
margin-right: 20px;
}

#btmAdBlockerText {
color: white;
font-family: 'Baloo 2';
font-size: 35px;
filter: drop-shadow(2px 2px 0px #2050A9);
}

#rightContainer {
display: none; /* initially hidden then if enabled set to flex */
align-items: center;
justify-content: center;
padding: 0px;
}

#rightAdPlaceholder {
align-items: center;
justify-content: center;
position: absolute;
}

#rightAdPlaceholderBg {
background-color: #00000030;
position: absolute;
width: 100%;
height: 100%;
filter: blur(4px);
z-index: -1;
}

#rightAdBlockerContainer
{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 90%;
height: 100%;
}

#rightAdBlockerImg {
max-width: 100%;
}

#rightAdBlockerText {
color: white;
font-family: 'Baloo 2';
font-size: 30px;
filter: drop-shadow(2px 2px 0px #2050A9);
line-height: 1;
text-align: center;
}

#rightAdResText{
color: white;
font-size: 40px;
font-family: 'Baloo 2';
filter: drop-shadow(2px 2px 0px #2050A9);
}

#adContainerDeath {
display: none;
--shown_display: flex;
position: absolute;
/* border: 1px solid red; */
z-index: 100;
bottom: 0px;
right: 0px; /* removed on the fly to center for mobile */
width: fit-content;
height: fit-content;
align-items: center;
}

#adContainerLoadingLeft {
display: none;
--shown_display: block;
position: absolute;
transform-origin: left top;
transform: translate(0px, -50%);
/* border: 1px solid red; */
z-index: 100;
top: 50%;
left: 10px;
width: auto;
height: auto;
}

#adContainerMainMenu {
display: none;
--shown_display: block;
position: absolute;
transform-origin: right top;
transform: translate(0px, -50%);
/* border: 1px solid red; */
z-index: 100;
top: 50%;
right: 10px;
width: auto;
height: auto;
}

@media screen and (max-width: 600px) {
#smashkarts-io_300x250 {
/* border: 1px solid blue; */
display: none;
}
}


/* #adContainerWin {
display: none;
--shown_display: block;
position: absolute;
transform-origin: right top;
transform: translate(0px, -50%);
z-index: 100;
top: 50%;
right: 10px;
width: auto;
height: auto;
} */

#adContainerWin {
display: none;
--shown_display: block;
position: absolute;
transform-origin: right bottom;
/* border: 1px solid red; */
z-index: 100;
bottom: 10px;
right: 10px;
width: auto;
height: auto;
}

#adContainerSpectate {
display: none;
--shown_display: block;
position: absolute;
transform-origin: right bottom;
/* border: 1px solid red; */
z-index: 100;
bottom: 10px;
right: 10px;
width: auto;
height: auto;
}

#pw-video-container {
width: 100%;
height: 100%;
position: absolute;
display: none; /* default to hidden */
}

#pw-video-placeholder {
width: 100%;
height: 100%;
}

@media screen and (max-width: 600px) {
#smashkarts-io_300x250_2 {
/* border: 1px solid blue; */
display: none;
}
}

/* try to handle mobile dialog */
canvas+* {
z-index: 2;
}

.logo {
display: block;
width: 35vw;
}

.progress {
margin: 1.5em;
border: 2px solid;
width: 25vw;
display: none;
}

.progress .full {
margin: 2px;
background: white;
height: 1em;
transform-origin: top left;
}

#loader {
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #1b70f0;
background-image: url("../images/overlay.png"), url("../images/menuBGTile.png");
background-size: cover, 13vw;
background-repeat: no-repeat, repeat;
}

.spinner {
position: absolute;
left: 2vw;
bottom: 2vh;
border: 10px solid #f3f3f3;
border-top: 10px solid #3498db;
border-radius: 50%;
width: 10vh;
height: 10vh;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}
}


/* for all screens */
#rotate-landscape {
display: none;
}

/* only when orientation is in portrait mode */
@media all and (orientation:portrait) {
#rotate-landscape {
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
display: block;
background: #1b70f0;
background-image: url("../images/overlay.png"), url("../images/menuBGTile.png");
background-size: cover, 13vw;
background-repeat: no-repeat, repeat;
}
}

.center {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90vw;
}
1 change: 1 addition & 0 deletions projects/smashkarts/css/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ja
Binary file removed projects/smashkarts/images/SmashKartsBackground.jpg
Binary file not shown.
Binary file removed projects/smashkarts/images/SmashKartsPoster.jpg
Binary file not shown.
Binary file removed projects/smashkarts/images/favicon.png
Binary file not shown.
Binary file removed projects/smashkarts/images/icon-144.png
Binary file not shown.
Binary file removed projects/smashkarts/images/icon-512.png
Binary file not shown.
1 change: 1 addition & 0 deletions projects/smashkarts/images/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ja
Binary file added projects/smashkarts/images/turnoffadblock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading