Browse Source

Add files

First commit! Added all of the game files for the first, simple, endless
version of the game. No kind of start or pause menu yet.
master
Abheek Dhawan 4 years ago
commit
36d81f98ea
  1. BIN
      Builds/HTML/favicon.png
  2. 34
      Builds/HTML/favicon.png.import
  3. 268
      Builds/HTML/index.html
  4. 458
      Builds/HTML/index.js
  5. BIN
      Builds/HTML/index.pck
  6. BIN
      Builds/HTML/index.png
  7. 34
      Builds/HTML/index.png.import
  8. BIN
      Builds/HTML/index.wasm
  9. BIN
      Builds/macOS/spacescape.zip
  10. 18
      Game Scenes/Game.tscn
  11. BIN
      Images and Anims/.DS_Store
  12. 3
      Images and Anims/13.png-5b9e20edbd50f5d4b430390200be776a.md5.tmp
  13. 3
      Images and Anims/2.png-e4550b46a042e441c7b1eb9bb4a57c5a.md5.tmp
  14. 3
      Images and Anims/3.png-54b0d8e11391b56db2dfd6f9faa28032.md5.tmp
  15. 3
      Images and Anims/5.png-12ed8680b58b790d3f467649cd19a792.md5.tmp
  16. 3
      Images and Anims/6.png-dafd2e45a2dc805d6b0ce17722da2173.md5.tmp
  17. 3
      Images and Anims/7.png-95a53b0bd23b41a308935e77d0491478.md5.tmp
  18. BIN
      Images and Anims/In Game/.DS_Store
  19. BIN
      Images and Anims/In Game/Explosion/1.png
  20. 34
      Images and Anims/In Game/Explosion/1.png.import
  21. BIN
      Images and Anims/In Game/Explosion/10.png
  22. 34
      Images and Anims/In Game/Explosion/10.png.import
  23. BIN
      Images and Anims/In Game/Explosion/11.png
  24. 34
      Images and Anims/In Game/Explosion/11.png.import
  25. BIN
      Images and Anims/In Game/Explosion/12.png
  26. 34
      Images and Anims/In Game/Explosion/12.png.import
  27. BIN
      Images and Anims/In Game/Explosion/13.png
  28. 34
      Images and Anims/In Game/Explosion/13.png.import
  29. BIN
      Images and Anims/In Game/Explosion/2.png
  30. 34
      Images and Anims/In Game/Explosion/2.png.import
  31. BIN
      Images and Anims/In Game/Explosion/3.png
  32. 34
      Images and Anims/In Game/Explosion/3.png.import
  33. BIN
      Images and Anims/In Game/Explosion/4.png
  34. 34
      Images and Anims/In Game/Explosion/4.png.import
  35. BIN
      Images and Anims/In Game/Explosion/5.png
  36. 34
      Images and Anims/In Game/Explosion/5.png.import
  37. BIN
      Images and Anims/In Game/Explosion/6.png
  38. 34
      Images and Anims/In Game/Explosion/6.png.import
  39. BIN
      Images and Anims/In Game/Explosion/7.png
  40. 34
      Images and Anims/In Game/Explosion/7.png.import
  41. BIN
      Images and Anims/In Game/Explosion/8.png
  42. 34
      Images and Anims/In Game/Explosion/8.png.import
  43. BIN
      Images and Anims/In Game/Explosion/9.png
  44. 34
      Images and Anims/In Game/Explosion/9.png.import
  45. 18
      Images and Anims/In Game/Explosion/Game.tscn.tmp
  46. BIN
      Images and Anims/In Game/asteroid.png
  47. 34
      Images and Anims/In Game/asteroid.png.import
  48. BIN
      Images and Anims/In Game/rocket.png
  49. 34
      Images and Anims/In Game/rocket.png.import
  50. BIN
      Images and Anims/In Game/rocket_flame.png
  51. 34
      Images and Anims/In Game/rocket_flame.png.import
  52. BIN
      Images and Anims/Other/godot.png
  53. 34
      Images and Anims/Other/godot.png.import
  54. BIN
      Images and Anims/Other/icon.png
  55. 34
      Images and Anims/Other/icon.png.import
  56. 1
      Images and Anims/asteroid.png-00a296101dede63661c9b5148c28402f.md5.tmp
  57. 3
      Images and Anims/godot.png-f8fdb90fa7382b2a7c633a3d69d33cd6.md5.tmp
  58. 3
      Images and Anims/rocket.png-0730567322924ea2b0a724d0be31124f.md5.tmp
  59. 3
      Images and Anims/rocket_flame.png-f80a7ca3ca51147d4981466a2ee4679e.md5.tmp
  60. BIN
      Images and Anims/rocket_flame.png-f80a7ca3ca51147d4981466a2ee4679e.stex.tmp
  61. 21
      Objects/Asteroid.tscn
  62. 29
      Objects/Explosion.tscn
  63. 520
      Objects/Rocket.tscn
  64. 5
      Scripts/AsteroidDestroy.gd
  65. 19
      Scripts/AsteroidSpawn.gd
  66. 4
      Scripts/Explosion.gd
  67. 33
      Scripts/Rocket.gd
  68. 7
      default_env.tres
  69. 97
      export_presets.cfg
  70. 39
      project.godot

BIN
Builds/HTML/favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 KiB

34
Builds/HTML/favicon.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/favicon.png-c73e43bb0e7c969076402f1072de5925.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Builds/HTML/favicon.png"
dest_files=[ "res://.import/favicon.png-c73e43bb0e7c969076402f1072de5925.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

268
Builds/HTML/index.html

@ -0,0 +1,268 @@
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' lang='' xml:lang=''>
<head>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, user-scalable=no' />
<link id='-gd-engine-icon' rel='icon' type='image/png' href='favicon.png' />
<title>SpacEscape</title>
<style type='text/css'>
body {
touch-action: none;
margin: 0;
border: 0 none;
padding: 0;
text-align: center;
background-color: black;
}
#canvas {
display: block;
margin: 0;
color: white;
}
#canvas:focus {
outline: none;
}
.godot {
font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
color: #e0e0e0;
background-color: #3b3943;
background-image: linear-gradient(to bottom, #403e48, #35333c);
border: 1px solid #45434e;
box-shadow: 0 0 1px 1px #2f2d35;
}
/* Status display
* ============== */
#status {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
/* don't consume click events - make children visible explicitly */
visibility: hidden;
}
#status-progress {
width: 366px;
height: 7px;
background-color: #38363A;
border: 1px solid #444246;
padding: 1px;
box-shadow: 0 0 2px 1px #1B1C22;
border-radius: 2px;
visibility: visible;
}
@media only screen and (orientation:portrait) {
#status-progress {
width: 61.8%;
}
}
#status-progress-inner {
height: 100%;
width: 0;
box-sizing: border-box;
transition: width 0.5s linear;
background-color: #202020;
border: 1px solid #222223;
box-shadow: 0 0 1px 1px #27282E;
border-radius: 3px;
}
#status-indeterminate {
visibility: visible;
position: relative;
}
#status-indeterminate > div {
width: 4.5px;
height: 0;
border-style: solid;
border-width: 9px 3px 0 3px;
border-color: #2b2b2b transparent transparent transparent;
transform-origin: center 21px;
position: absolute;
}
#status-indeterminate > div:nth-child(1) { transform: rotate( 22.5deg); }
#status-indeterminate > div:nth-child(2) { transform: rotate( 67.5deg); }
#status-indeterminate > div:nth-child(3) { transform: rotate(112.5deg); }
#status-indeterminate > div:nth-child(4) { transform: rotate(157.5deg); }
#status-indeterminate > div:nth-child(5) { transform: rotate(202.5deg); }
#status-indeterminate > div:nth-child(6) { transform: rotate(247.5deg); }
#status-indeterminate > div:nth-child(7) { transform: rotate(292.5deg); }
#status-indeterminate > div:nth-child(8) { transform: rotate(337.5deg); }
#status-notice {
margin: 0 100px;
line-height: 1.3;
visibility: visible;
padding: 4px 6px;
visibility: visible;
}
</style>
</head>
<body>
<canvas id='canvas'>
HTML5 canvas appears to be unsupported in the current browser.<br />
Please try updating or use a different browser.
</canvas>
<div id='status'>
<div id='status-progress' style='display: none;' oncontextmenu='event.preventDefault();'><div id ='status-progress-inner'></div></div>
<div id='status-indeterminate' style='display: none;' oncontextmenu='event.preventDefault();'>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div id='status-notice' class='godot' style='display: none;'></div>
</div>
<script type='text/javascript' src='index.js'></script>
<script type='text/javascript'>//<![CDATA[
var engine = new Engine;
var setStatusMode;
var setStatusNotice;
(function() {
const EXECUTABLE_NAME = 'index';
const MAIN_PACK = 'index.pck';
const INDETERMINATE_STATUS_STEP_MS = 100;
var canvas = document.getElementById('canvas');
var statusProgress = document.getElementById('status-progress');
var statusProgressInner = document.getElementById('status-progress-inner');
var statusIndeterminate = document.getElementById('status-indeterminate');
var statusNotice = document.getElementById('status-notice');
var initializing = true;
var statusMode = 'hidden';
var animationCallbacks = [];
function animate(time) {
animationCallbacks.forEach(callback => callback(time));
requestAnimationFrame(animate);
}
requestAnimationFrame(animate);
function adjustCanvasDimensions() {
var scale = window.devicePixelRatio || 1;
var width = window.innerWidth;
var height = window.innerHeight;
canvas.width = width * scale;
canvas.height = height * scale;
canvas.style.width = width + "px";
canvas.style.height = height + "px";
}
animationCallbacks.push(adjustCanvasDimensions);
adjustCanvasDimensions();
setStatusMode = function setStatusMode(mode) {
if (statusMode === mode || !initializing)
return;
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
elem.style.display = 'none';
});
animationCallbacks = animationCallbacks.filter(function(value) {
return (value != animateStatusIndeterminate);
});
switch (mode) {
case 'progress':
statusProgress.style.display = 'block';
break;
case 'indeterminate':
statusIndeterminate.style.display = 'block';
animationCallbacks.push(animateStatusIndeterminate);
break;
case 'notice':
statusNotice.style.display = 'block';
break;
case 'hidden':
break;
default:
throw new Error('Invalid status mode');
}
statusMode = mode;
}
function animateStatusIndeterminate(ms) {
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
if (statusIndeterminate.children[i].style.borderTopColor == '') {
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
child.style.borderTopColor = '';
});
statusIndeterminate.children[i].style.borderTopColor = '#dfdfdf';
}
}
setStatusNotice = function setStatusNotice(text) {
while (statusNotice.lastChild) {
statusNotice.removeChild(statusNotice.lastChild);
}
var lines = text.split('\n');
lines.forEach((line) => {
statusNotice.appendChild(document.createTextNode(line));
statusNotice.appendChild(document.createElement('br'));
});
};
engine.setProgressFunc((current, total) => {
if (total > 0) {
statusProgressInner.style.width = current/total * 100 + '%';
setStatusMode('progress');
if (current === total) {
// wait for progress bar animation
setTimeout(() => {
setStatusMode('indeterminate');
}, 500);
}
} else {
setStatusMode('indeterminate');
}
});
function displayFailureNotice(err) {
var msg = err.message || err;
console.error(msg);
setStatusNotice(msg);
setStatusMode('notice');
initializing = false;
};
if (!Engine.isWebGLAvailable()) {
displayFailureNotice('WebGL not available');
} else {
setStatusMode('indeterminate');
engine.setCanvas(canvas);
engine.startGame(EXECUTABLE_NAME, MAIN_PACK).then(() => {
setStatusMode('hidden');
initializing = false;
}, displayFailureNotice);
}
})();
//]]></script>
</body>
</html>

458
Builds/HTML/index.js

File diff suppressed because one or more lines are too long

BIN
Builds/HTML/index.pck

Binary file not shown.

BIN
Builds/HTML/index.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 KiB

34
Builds/HTML/index.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/index.png-55c5256c37651f623f8ade54413c7b1c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Builds/HTML/index.png"
dest_files=[ "res://.import/index.png-55c5256c37651f623f8ade54413c7b1c.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Builds/HTML/index.wasm

Binary file not shown.

BIN
Builds/macOS/spacescape.zip

Binary file not shown.

18
Game Scenes/Game.tscn

@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Objects/Rocket.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scripts/Rocket.gd" type="Script" id=2]
[ext_resource path="res://Scripts/AsteroidSpawn.gd" type="Script" id=4]
[node name="Game" type="Node2D"]
script = ExtResource( 4 )
[node name="Rocket" parent="." instance=ExtResource( 1 )]
position = Vector2( 512, 300 )
scale = Vector2( 2, 2 )
script = ExtResource( 2 )
[node name="Camera2D" type="Camera2D" parent="Rocket"]
offset = Vector2( 0, -220 )
current = true
smoothing_enabled = true

BIN
Images and Anims/.DS_Store

Binary file not shown.

3
Images and Anims/13.png-5b9e20edbd50f5d4b430390200be776a.md5.tmp

@ -0,0 +1,3 @@
source_md5="0b2f1525774a21da42476a2b23f31560"
dest_md5="951a2671f649c6c2f1c267e26b97338d"

3
Images and Anims/2.png-e4550b46a042e441c7b1eb9bb4a57c5a.md5.tmp

@ -0,0 +1,3 @@
source_md5="c818f8bb29b4b4f9c7fdaa48a303d49c"
dest_md5="4b3681bb710f1137d430324b5db94b5e"

3
Images and Anims/3.png-54b0d8e11391b56db2dfd6f9faa28032.md5.tmp

@ -0,0 +1,3 @@
source_md5="fadab09e34bd8eaf279de978a07d2f63"
dest_md5="e17877c4139554aedffebfc06c0c7976"

3
Images and Anims/5.png-12ed8680b58b790d3f467649cd19a792.md5.tmp

@ -0,0 +1,3 @@
source_md5="e70d46693d50385e08fd0475824a827a"
dest_md5="d41d8cd98f00b204e9800998ecf8427e"

3
Images and Anims/6.png-dafd2e45a2dc805d6b0ce17722da2173.md5.tmp

@ -0,0 +1,3 @@
source_md5="9309a88ff4a671f9e8eefc272c8980a0"
dest_md5="b576607fd56b7128ef0f5dadc9a3afd2"

3
Images and Anims/7.png-95a53b0bd23b41a308935e77d0491478.md5.tmp

@ -0,0 +1,3 @@
source_md5="6a3ea13554c2769fb4c90f70b843e59a"
dest_md5="d41d8cd98f00b204e9800998ecf8427e"

BIN
Images and Anims/In Game/.DS_Store

Binary file not shown.

BIN
Images and Anims/In Game/Explosion/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

34
Images and Anims/In Game/Explosion/1.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/1.png-8ea1d1fb430cca6ae7b32e2127ad81b0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/1.png"
dest_files=[ "res://.import/1.png-8ea1d1fb430cca6ae7b32e2127ad81b0.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

34
Images and Anims/In Game/Explosion/10.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/10.png-ffbf5bd4b0f7235de16b2e32eba2dfd6.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/10.png"
dest_files=[ "res://.import/10.png-ffbf5bd4b0f7235de16b2e32eba2dfd6.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

34
Images and Anims/In Game/Explosion/11.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/11.png-2960a69153d0feee68093a9ae0a80e29.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/11.png"
dest_files=[ "res://.import/11.png-2960a69153d0feee68093a9ae0a80e29.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

34
Images and Anims/In Game/Explosion/12.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/12.png-7a71a00b5673f1e0a50e859e3ed35b81.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/12.png"
dest_files=[ "res://.import/12.png-7a71a00b5673f1e0a50e859e3ed35b81.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

34
Images and Anims/In Game/Explosion/13.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/13.png-5b9e20edbd50f5d4b430390200be776a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/13.png"
dest_files=[ "res://.import/13.png-5b9e20edbd50f5d4b430390200be776a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

34
Images and Anims/In Game/Explosion/2.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/2.png-e4550b46a042e441c7b1eb9bb4a57c5a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/2.png"
dest_files=[ "res://.import/2.png-e4550b46a042e441c7b1eb9bb4a57c5a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

34
Images and Anims/In Game/Explosion/3.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/3.png-54b0d8e11391b56db2dfd6f9faa28032.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/3.png"
dest_files=[ "res://.import/3.png-54b0d8e11391b56db2dfd6f9faa28032.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

34
Images and Anims/In Game/Explosion/4.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/4.png-e15b36b008499dc46574f68900fd6e85.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/4.png"
dest_files=[ "res://.import/4.png-e15b36b008499dc46574f68900fd6e85.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

34
Images and Anims/In Game/Explosion/5.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/5.png-12ed8680b58b790d3f467649cd19a792.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/5.png"
dest_files=[ "res://.import/5.png-12ed8680b58b790d3f467649cd19a792.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

34
Images and Anims/In Game/Explosion/6.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/6.png-dafd2e45a2dc805d6b0ce17722da2173.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/6.png"
dest_files=[ "res://.import/6.png-dafd2e45a2dc805d6b0ce17722da2173.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

34
Images and Anims/In Game/Explosion/7.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/7.png-95a53b0bd23b41a308935e77d0491478.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/7.png"
dest_files=[ "res://.import/7.png-95a53b0bd23b41a308935e77d0491478.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

34
Images and Anims/In Game/Explosion/8.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/8.png-ab494cd5a9cf5b3c0ee14e355654deba.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/8.png"
dest_files=[ "res://.import/8.png-ab494cd5a9cf5b3c0ee14e355654deba.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/Explosion/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

34
Images and Anims/In Game/Explosion/9.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/9.png-c6b8cef505d829318d0404735407a9c0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/Explosion/9.png"
dest_files=[ "res://.import/9.png-c6b8cef505d829318d0404735407a9c0.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

18
Images and Anims/In Game/Explosion/Game.tscn.tmp

@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Objects/Rocket.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scripts/Rocket.gd" type="Script" id=2]
[ext_resource path="res://Scripts/AsteroidSpawn.gd" type="Script" id=4]
[node name="Game" type="Node2D"]
script = ExtResource( 4 )
[node name="Rocket" parent="." instance=ExtResource( 1 )]
position = Vector2( 512, 300 )
scale = Vector2( 2, 2 )
script = ExtResource( 2 )
[node name="Camera2D" type="Camera2D" parent="Rocket"]
offset = Vector2( 0, -220 )
current = true
smoothing_enabled = true

BIN
Images and Anims/In Game/asteroid.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

34
Images and Anims/In Game/asteroid.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/asteroid.png-00a296101dede63661c9b5148c28402f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/asteroid.png"
dest_files=[ "res://.import/asteroid.png-00a296101dede63661c9b5148c28402f.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/rocket.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

34
Images and Anims/In Game/rocket.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/rocket.png-0730567322924ea2b0a724d0be31124f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/rocket.png"
dest_files=[ "res://.import/rocket.png-0730567322924ea2b0a724d0be31124f.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/In Game/rocket_flame.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

34
Images and Anims/In Game/rocket_flame.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/rocket_flame.png-f80a7ca3ca51147d4981466a2ee4679e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/In Game/rocket_flame.png"
dest_files=[ "res://.import/rocket_flame.png-f80a7ca3ca51147d4981466a2ee4679e.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/Other/godot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

34
Images and Anims/Other/godot.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/godot.png-f8fdb90fa7382b2a7c633a3d69d33cd6.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/Other/godot.png"
dest_files=[ "res://.import/godot.png-f8fdb90fa7382b2a7c633a3d69d33cd6.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images and Anims/Other/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 KiB

34
Images and Anims/Other/icon.png.import

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-5e623ae4817c49edf466eed7acd369ad.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images and Anims/Other/icon.png"
dest_files=[ "res://.import/icon.png-5e623ae4817c49edf466eed7acd369ad.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

1
Images and Anims/asteroid.png-00a296101dede63661c9b5148c28402f.md5.tmp

@ -0,0 +1 @@
source_md5="9397bda50b3344e6f1ec94e32b578da8"

3
Images and Anims/godot.png-f8fdb90fa7382b2a7c633a3d69d33cd6.md5.tmp

@ -0,0 +1,3 @@
source_md5="2455caa5d2ead6b686a3fec6e96ef413"
dest_md5="541bc05b7e2edec0658f8c79fad564b7"

3
Images and Anims/rocket.png-0730567322924ea2b0a724d0be31124f.md5.tmp

@ -0,0 +1,3 @@
source_md5="99b194e48c345e2d9e6dfc2761560d7e"
dest_md5="04c09763d1e2009ae4edd6cd7f2443d3"

3
Images and Anims/rocket_flame.png-f80a7ca3ca51147d4981466a2ee4679e.md5.tmp

@ -0,0 +1,3 @@
source_md5="7d0bde7b9f46f410a92e47ac7d6cb264"
dest_md5="d41d8cd98f00b204e9800998ecf8427e"

BIN
Images and Anims/rocket_flame.png-f80a7ca3ca51147d4981466a2ee4679e.stex.tmp

Binary file not shown.

21
Objects/Asteroid.tscn

@ -0,0 +1,21 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Images and Anims/In Game/asteroid.png" type="Texture" id=1]
[ext_resource path="res://Scripts/AsteroidDestroy.gd" type="Script" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 7.104
height = 13.424
[node name="Asteroid" type="RigidBody2D"]
mode = 1
gravity_scale = 0.0
script = ExtResource( 2 )
[node name="Collider" type="CollisionShape2D" parent="."]
position = Vector2( 1.99598, -2.12905 )
rotation = 1.5708
shape = SubResource( 1 )
[node name="Body" type="Sprite" parent="."]
texture = ExtResource( 1 )

29
Objects/Explosion.tscn

@ -0,0 +1,29 @@
[gd_scene load_steps=14 format=2]
[ext_resource path="res://Images and Anims/In Game/Explosion/3.png" type="Texture" id=3]
[ext_resource path="res://Images and Anims/In Game/Explosion/10.png" type="Texture" id=4]
[ext_resource path="res://Images and Anims/In Game/Explosion/5.png" type="Texture" id=5]
[ext_resource path="res://Images and Anims/In Game/Explosion/6.png" type="Texture" id=6]
[ext_resource path="res://Images and Anims/In Game/Explosion/8.png" type="Texture" id=7]
[ext_resource path="res://Images and Anims/In Game/Explosion/9.png" type="Texture" id=8]
[ext_resource path="res://Images and Anims/In Game/Explosion/4.png" type="Texture" id=9]
[ext_resource path="res://Images and Anims/In Game/Explosion/7.png" type="Texture" id=10]
[ext_resource path="res://Images and Anims/In Game/Explosion/13.png" type="Texture" id=11]
[ext_resource path="res://Images and Anims/In Game/Explosion/11.png" type="Texture" id=12]
[ext_resource path="res://Images and Anims/In Game/Explosion/12.png" type="Texture" id=13]
[ext_resource path="res://Scripts/Explosion.gd" type="Script" id=14]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 3 ), ExtResource( 9 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 10 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 4 ), ExtResource( 12 ), ExtResource( 13 ), ExtResource( 11 ) ],
"loop": false,
"name": "Explosion",
"speed": 15.0
} ]
[node name="Explosion" type="Node2D"]
[node name="Explosion" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "Explosion"
script = ExtResource( 14 )

520
Objects/Rocket.tscn

@ -0,0 +1,520 @@
[gd_scene load_steps=125 format=2]
[ext_resource path="res://Images and Anims/In Game/rocket_flame.png" type="Texture" id=1]
[ext_resource path="res://Images and Anims/In Game/rocket.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 7.77506
height = 23.6561
[sub_resource type="AtlasTexture" id=2]
region = Rect2( 0, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=3]
region = Rect2( 68, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=4]
region = Rect2( 136, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=5]
region = Rect2( 204, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=6]
region = Rect2( 272, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=7]
region = Rect2( 340, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=8]
region = Rect2( 408, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=9]
region = Rect2( 476, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=10]
region = Rect2( 544, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=11]
region = Rect2( 612, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=12]
region = Rect2( 0, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=13]
region = Rect2( 68, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=14]
region = Rect2( 136, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=15]
region = Rect2( 204, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=16]
region = Rect2( 272, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=17]
region = Rect2( 340, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=18]
region = Rect2( 408, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=19]
region = Rect2( 476, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=20]
region = Rect2( 544, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=21]
region = Rect2( 612, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=22]
region = Rect2( 0, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=23]
region = Rect2( 68, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=24]
region = Rect2( 136, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=25]
region = Rect2( 204, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=26]
region = Rect2( 272, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=27]
region = Rect2( 340, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=28]
region = Rect2( 408, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=29]
region = Rect2( 476, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=30]
region = Rect2( 544, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=31]
region = Rect2( 612, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=32]
region = Rect2( 0, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=33]
region = Rect2( 68, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=34]
region = Rect2( 136, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=35]
region = Rect2( 204, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=36]
region = Rect2( 272, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=37]
region = Rect2( 340, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=38]
region = Rect2( 408, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=39]
region = Rect2( 476, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=40]
region = Rect2( 544, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=41]
region = Rect2( 612, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=42]
region = Rect2( 0, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=43]
region = Rect2( 68, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=44]
region = Rect2( 136, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=45]
region = Rect2( 204, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=46]
region = Rect2( 272, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=47]
region = Rect2( 340, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=48]
region = Rect2( 408, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=49]
region = Rect2( 476, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=50]
region = Rect2( 544, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=51]
region = Rect2( 612, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=52]
region = Rect2( 0, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=53]
region = Rect2( 68, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=54]
region = Rect2( 136, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=55]
region = Rect2( 204, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=56]
region = Rect2( 272, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=57]
region = Rect2( 340, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=58]
region = Rect2( 408, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=59]
region = Rect2( 476, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=60]
region = Rect2( 544, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=61]
region = Rect2( 612, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=63]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=64]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 68, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=65]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 136, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=66]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 204, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=67]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 272, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=68]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 340, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=69]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 408, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=70]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 476, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=71]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 544, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=72]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 612, 0, 68, 9 )
[sub_resource type="AtlasTexture" id=73]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 0, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=74]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 68, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=75]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 136, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=76]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 204, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=77]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 272, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=78]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 340, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=79]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 408, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=80]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 476, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=81]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 544, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=82]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 612, 9, 68, 9 )
[sub_resource type="AtlasTexture" id=83]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 0, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=84]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 68, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=85]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 136, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=86]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 204, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=87]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 272, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=88]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 340, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=89]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 408, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=90]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 476, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=91]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 544, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=92]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 612, 18, 68, 9 )
[sub_resource type="AtlasTexture" id=93]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 0, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=94]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 68, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=95]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 136, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=96]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 204, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=97]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 272, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=98]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 340, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=99]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 408, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=100]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 476, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=101]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 544, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=102]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 612, 27, 68, 9 )
[sub_resource type="AtlasTexture" id=103]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 0, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=104]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 68, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=105]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 136, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=106]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 204, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=107]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 272, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=108]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 340, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=109]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 408, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=110]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 476, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=111]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 544, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=112]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 612, 36, 68, 9 )
[sub_resource type="AtlasTexture" id=113]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 0, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=114]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 68, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=115]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 136, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=116]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 204, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=117]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 272, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=118]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 340, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=119]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 408, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=120]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 476, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=121]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 544, 45, 68, 9 )
[sub_resource type="AtlasTexture" id=122]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 612, 45, 68, 9 )
[sub_resource type="SpriteFrames" id=62]
animations = [ {
"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ), SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 32 ), SubResource( 33 ), SubResource( 34 ), SubResource( 35 ), SubResource( 36 ), SubResource( 37 ), SubResource( 38 ), SubResource( 39 ), SubResource( 40 ), SubResource( 41 ), SubResource( 42 ), SubResource( 43 ), SubResource( 44 ), SubResource( 45 ), SubResource( 46 ), SubResource( 47 ), SubResource( 48 ), SubResource( 49 ), SubResource( 50 ), SubResource( 51 ), SubResource( 52 ), SubResource( 53 ), SubResource( 54 ), SubResource( 55 ), SubResource( 56 ), SubResource( 57 ), SubResource( 58 ), SubResource( 59 ), SubResource( 60 ), SubResource( 61 ) ],
"loop": true,
"name": "default",
"speed": 60.0
}, {
"frames": [ SubResource( 63 ), SubResource( 64 ), SubResource( 65 ), SubResource( 66 ), SubResource( 67 ), SubResource( 68 ), SubResource( 69 ), SubResource( 70 ), SubResource( 71 ), SubResource( 72 ), SubResource( 73 ), SubResource( 74 ), SubResource( 75 ), SubResource( 76 ), SubResource( 77 ), SubResource( 78 ), SubResource( 79 ), SubResource( 80 ), SubResource( 81 ), SubResource( 82 ), SubResource( 83 ), SubResource( 84 ), SubResource( 85 ), SubResource( 86 ), SubResource( 87 ), SubResource( 88 ), SubResource( 89 ), SubResource( 90 ), SubResource( 91 ), SubResource( 92 ), SubResource( 93 ), SubResource( 94 ), SubResource( 95 ), SubResource( 96 ), SubResource( 97 ), SubResource( 98 ), SubResource( 99 ), SubResource( 100 ), SubResource( 101 ), SubResource( 102 ), SubResource( 103 ), SubResource( 104 ), SubResource( 105 ), SubResource( 106 ), SubResource( 107 ), SubResource( 108 ), SubResource( 109 ), SubResource( 110 ), SubResource( 111 ), SubResource( 112 ), SubResource( 113 ), SubResource( 114 ), SubResource( 115 ), SubResource( 116 ), SubResource( 117 ), SubResource( 118 ), SubResource( 119 ), SubResource( 120 ), SubResource( 121 ), SubResource( 122 ) ],
"loop": true,
"name": "New Anim",
"speed": 45.0
} ]
[node name="Rocket" type="KinematicBody2D"]
[node name="Collider" type="CollisionShape2D" parent="."]
position = Vector2( 0, -13.901 )
shape = SubResource( 1 )
[node name="Body" type="Sprite" parent="."]
position = Vector2( 9.53674e-07, -9.2112 )
scale = Vector2( 0.263104, 0.474027 )
texture = ExtResource( 2 )
[node name="Flame" type="AnimatedSprite" parent="."]
position = Vector2( 0, 40 )
rotation = 1.5708
frames = SubResource( 62 )
animation = "New Anim"
frame = 2
playing = true

5
Scripts/AsteroidDestroy.gd

@ -0,0 +1,5 @@
extends RigidBody2D
func _ready():
yield(get_tree().create_timer(5.0), "timeout")
queue_free()

19
Scripts/AsteroidSpawn.gd

@ -0,0 +1,19 @@
extends Node2D
var time = 0
var asteroidObj = load("res://Objects/Asteroid.tscn")
var spawnTime
var deltaSpawnTime = 1
func _process(delta):
spawnTime = 500/get_viewport_rect().size.x * deltaSpawnTime
time += delta
if time > spawnTime:
time = 0
deltaSpawnTime *= 0.995
if has_node("Rocket"):
var asteroid = asteroidObj.instance()
add_child(asteroid)
asteroid.position.x = rand_range($Rocket.position.x - get_viewport_rect().size.x/2, $Rocket.position.x + get_viewport_rect().size.x/2)
asteroid.position.y = rand_range($Rocket.position.y - get_viewport_rect().size.y, $Rocket.position.y - 2 * get_viewport_rect().size.y)
asteroid.rotation = rand_range(0, 6.28)

4
Scripts/Explosion.gd

@ -0,0 +1,4 @@
extends AnimatedSprite
func _ready():
play("Explosion")

33
Scripts/Rocket.gd

@ -0,0 +1,33 @@
extends KinematicBody2D
var angle = 0
var difficulty
var deltaDifficulty = 0
var explosionObj = load("res://Objects/Explosion.tscn")
func _process(delta):
difficulty = 600 + deltaDifficulty
difficulty += 0.0005
var collision = move_and_collide(Vector2(difficulty * sin(angle) * delta, -difficulty * cos(angle) * delta))
if collision:
hide()
#scale = Vector2(0.01, 0.01)
var explosion = explosionObj.instance()
#add_child(explosion)
get_parent().add_child(explosion)
explosion.position = position
get_node("Collider").queue_free()
yield(get_tree().create_timer(1.5), "timeout")
queue_free()
get_tree().reload_current_scene()
if (Input.is_action_pressed("turn_left")):
if angle > -1.5:
rotate(-0.05)
angle -= 0.05
elif (Input.is_action_pressed("turn_right")):
if angle < 1.5:
rotate(0.05)
angle += 0.05
else:
rotate(-angle/25)
angle -= angle/25

7
default_env.tres

@ -0,0 +1,7 @@
[gd_resource type="Environment" load_steps=2 format=2]
[sub_resource type="ProceduralSky" id=1]
[resource]
background_mode = 2
background_sky = SubResource( 1 )

97
export_presets.cfg

@ -0,0 +1,97 @@
[preset.0]
name="Mac OSX"
platform="Mac OSX"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="./spacescape.dmg.zip"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""
[preset.0.options]
custom_template/debug=""
custom_template/release=""
application/name="SpacEscape"
application/info="Made with Godot Engine"
application/icon="res://Images and Anims/Other/icon.png"
application/identifier="com.ADAwesomeGames.SpacEscape"
application/signature=""
application/short_version="1.0"
application/version="1.0"
application/copyright=""
display/high_res=false
privacy/camera_usage_description=""
privacy/microphone_usage_description=""
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
[preset.1]
name="Windows Desktop"
platform="Windows Desktop"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="./spacescape.exe"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""
[preset.1.options]
texture_format/bptc=false
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
binary_format/embed_pck=false
custom_template/release=""
custom_template/debug=""
codesign/enable=false
codesign/identity=""
codesign/password=""
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PoolStringArray( )
application/icon=""
application/file_version=""
application/product_version=""
application/company_name=""
application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
[preset.2]
name="HTML5"
platform="HTML5"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="Builds/HTML/index.html"
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""
[preset.2.options]
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false
html/custom_html_shell=""
html/head_include=""
custom_template/release=""
custom_template/debug=""

39
project.godot

@ -0,0 +1,39 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]
config/name="SpacEscape"
config/description="Simple game based on avoiding asteroids while controlling a rocket."
run/main_scene="res://Game Scenes/Game.tscn"
boot_splash/image="res://Images and Anims/Other/icon.png"
config/icon="res://Images and Anims/Other/icon.png"
[input]
turn_left={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
]
}
turn_right={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
]
}
[rendering]
environment/default_environment="res://default_env.tres"
Loading…
Cancel
Save