Skip to content

Commit

Permalink
Reskin for design
Browse files Browse the repository at this point in the history
  • Loading branch information
kevglass committed Dec 5, 2024
1 parent d4c8cd3 commit 3dda305
Show file tree
Hide file tree
Showing 17 changed files with 594 additions and 250 deletions.
22 changes: 22 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<title>Scorched Turf</title>
<style>
@font-face {
font-family: "Roboto";
src: url("src/assets/fonts/RobotoCondensed-VariableFont_wght.ttf");
}
@font-face {
font-family: "Snake";
src: url("src/assets/fonts/Snake\ in\ the\ Boot.ttf");
}
html {
background: #251b1b;
}
Expand All @@ -30,6 +38,10 @@
width: 100%;
height: 100%;
image-rendering: pixelated;
position: absolute;
z-index: 10;
top: 0;
left: 0;
}

#gamecanvas:focus {
Expand All @@ -44,10 +56,20 @@
width: 150px;
height: 150px;
}

.roboto {
font-family: "Roboto";
}
.snake {
font-family: "Snake";
}
</style>
</head>

<body>
<div class="roboto">Test</div>
<div class="snake">Test</div>

<canvas id="gamecanvas"></canvas>
<script type="module" src="/src/logic.ts"></script>
<script type="module" src="/src/main.ts"></script>
Expand Down
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,33 @@
"build": "npm run lint && tsc && vite build",
"lint": "eslint src",
"preview": "vite preview",
"deploy": "npm run build && rune upload --name 'Scorched Turf'",
"deploy": "setMania.sh false && npm run build && rune upload --name 'Scorched Turf'",
"deployMania": "setMania.sh true && npm run build && rune upload --name 'Scorched Turf Mania'",
"upload": "npm run build && npx rune-games-cli@latest upload"
},
"dependencies": {
"jsondiffpatch": "^0.6.0",
"microdiff": "^1.3.2",
"propel-js": "^1.0.24",
"rune-sdk": "4.25.2",
"toglib": "1.2.3"
"rune-sdk": "4.25.5",
"toglib": "1.2.12"
},
"devDependencies": {
"@eslint/js": "^9.7.0",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"eslint-plugin-rune": "2.0.3",
"prettier": "^3.3.3",
"typescript": "^5.0.2",
"typescript-eslint": "^8.11.0",
"vite": "^4.3.2",
"vite-plugin-qrcode": "^0.2.2",
"vite-plugin-rune": "^1.0.0",
"@eslint/js": "^9.7.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"typescript-eslint": "^8.11.0",
"prettier": "^3.3.3"
"vite-plugin-rune": "^1.0.0"
}
}
1 change: 1 addition & 0 deletions setMania.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "export const MANIA_MODE = $1" > src/gamemode.ts
Loading

0 comments on commit 3dda305

Please sign in to comment.