Compressed assets & improved main gameplay

This commit is contained in:
gltron
2022-04-18 21:01:55 +02:00
parent 87aa08ff86
commit 1eb66afdf4
115 changed files with 289 additions and 119 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

BIN
src/assets/img/boss/e4.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
src/assets/img/boss/q4.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

BIN
src/assets/img/boss/r4.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

BIN
src/assets/img/boss/t4.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

BIN
src/assets/img/custom.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
src/assets/img/skyline.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 985 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

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.

View File

@@ -4,21 +4,27 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="assets/img/meteor_logo.png" type="image/png">
<link rel="shortcut icon" href="assets/img/meteor_logo.webp" type="image/png">
<link rel="stylesheet" href="style/style.css">
<title>Deep Impact</title>
</head>
<body>
<canvas class="background" id="mainCanvas"></canvas>
<div class="page" id="loading" style="display: none;">
<h1>LOADING</h1>
</div>
<input class="volume" type="range" id="volume" name="volume" value="50" min="0" max="100">
<div class="main-container">
<div class="page main-menu" id="main-menu">
<div class="page" id="loading">
<h1>LOADING</h1>
</div>
<img id="title" src="assets/img/meteor_title.png" alt="Deep Impact">
<div class="page" id="start" style="display: none;">
<button id="start-button">START</button>
</div>
<div class="page main-menu" id="main-menu" style="display: none;">
<img id="title" src="assets/img/meteor_title.webp" alt="Deep Impact">
<div class="title-back-container">
<span class="title-back" id="title-back"></span>
@@ -33,7 +39,7 @@
</template>
<template id="menuItemCustom">
<button class="level-item" onclick="customLevel()">
<img src="assets/img/custom.png" alt="Custom Level">
<img src="assets/img/custom.webp" alt="Custom Level">
<p>Custom Level</p>
</button>
</template>
@@ -66,7 +72,7 @@
</div>
<div class="main-game-skyline-container">
<div class="main-game-skyline"></div>
<img class="main-game-skyline-turret" src="assets/img/skyline_turret2.png">
<img class="main-game-skyline-turret" src="assets/img/skyline_turret.webp">
<div class="main-game-skyline"></div>
</div>
<div class="main-game-dashboard">
@@ -75,29 +81,27 @@
<div class="main-game-dashboard-bullet" id="ammo-laser">
<h4>A</h4>
<img src="assets/img/turrets/bullet_laser.png" alt="Laser">
<img src="assets/img/turrets/bullet_laser.webp" alt="Laser">
<h3>100</h3>
</div>
<div class="main-game-dashboard-bullet" id="ammo-fast">
<h4>Z</h4>
<img src="assets/img/turrets/bullet_fast.png" alt="Fast">
<img src="assets/img/turrets/bullet_fast.webp" alt="Fast">
<h3>100</h3>
</div>
<div class="main-game-dashboard-bullet" id="ammo-standard">
<h4>E</h4>
<img src="assets/img/turrets/bullet_standard.png" alt="Standard">
<img src="assets/img/turrets/bullet_standard.webp" alt="Standard">
<h3>100</h3>
</div>
<div class="main-game-dashboard-bullet" id="ammo-heavy">
<h4>R</h4>
<img src="assets/img/turrets/bullet_heavy.png" alt="Heavy">
<img src="assets/img/turrets/bullet_heavy.webp" alt="Heavy">
<h3>100</h3>
</div>
<input type="range" id="volume" name="volume" value="5" min="0" max="10">
</div>
</div>
</div>

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