Skip to content

Commit

Permalink
everything
Browse files Browse the repository at this point in the history
  • Loading branch information
George Shaw committed Oct 14, 2022
1 parent 7223065 commit 5e86f2b
Show file tree
Hide file tree
Showing 74 changed files with 2,049 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# The Adventures of Space Toast

This is a really silly game I made in high school to satisfy the requirements
of a programming course. This sat in `.zip` file on my Google drive for a long
time.

## Development Log

The development log, the initial backlog of items to handle while making the
game and my ending thoughts when I put the game on the shelf can all be read
in this [google document](https://docs.google.com/document/d/18tFs7-pxCQT4uEvEK4r8bhC-qDC97KUuarzVGSiJsyU/edit).
93 changes: 93 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
All programming, markup, styling, and graphics of "The Adventures of Space Toaster" were completed by:
George E. Shaw IV // [email protected] // Completed on May 5, 2017
Developer Log: https://drive.google.com/open?id=18tFs7-pxCQT4uEvEK4r8bhC-qDC97KUuarzVGSiJsyU
*/

body {
background:#333333;
}

#wrapper {
width:800px;
height:auto;
margin:0px auto;
}

#developerInfo {
font-family:sans-serif;
color:#ffffff;
opacity:.6;
}

#small_text {
font-size:8pt;
color:inherit;
}

a { color:inherit; }

/* SURROUNDING CANVAS GFX START */
/* Top Piece */
#top { clear:both; }

/* Middle Piece */
#middle { clear:both; }
#left { float:left; }
#mainDisplay {
float:left;
border:1px solid #7a35d8;
}
#right { float:left; }

/* Bottom Piece */
#bottom { clear:both; }
/* SURROUNDING CANVAS GFX END */

.gameOverlayScreen {
float:left;
border:1px solid #7a35d8;
background-color:#927a9e;
width:550px;
height:400px;
}

.buttonContainer {
width:160px;
margin:auto; !important
}

.menuButton {
width:160px;
height:50px;
border:3px solid #432b4f;
background-color:#6c4c7d;
color:#ffffff;
font-family:sans-serif;
font-weight:800;
font-size:14pt;

cursor:pointer;
margin:10px;
float:left;
clear:left;

transition:all .5s;
-webkit-transition:all .5s;
-moz-transition:all .5s;
-o-transition:all .5s;
}

.menuButton:nth-child(odd) {
border-radius:40px 10px;
}

.menuButton:nth-child(even) {
border-radius:10px 40px;
}

.menuButton:hover {
background-color:#ffffff;
color:#6c4c7d;
}
72 changes: 72 additions & 0 deletions dev_tools/Level Editor/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
All programming, markup, styling, and graphics of "The Adventures of Space Toaster" were completed by:
George E. Shaw IV // [email protected] // Completed on May 5, 2017
Download (zip): https://drive.google.com/open?id=0B6Gu69KoAdUhRUxXSU9JNUlGZm8
Developer Log: https://drive.google.com/open?id=18tFs7-pxCQT4uEvEK4r8bhC-qDC97KUuarzVGSiJsyU
*/

body {
background:#333333;
}

h4, td, th {
font-family:"Arial", sans-serif;
color:#ffffff;
}

#mainDisplay {
border:1px solid #7a35d8;
margin:20px;
}

#title {
margin:5px;
margin-bottom:0px;
}

table {
border-collapse:collapse;
}

table, th, td {
border:3px solid #000000;
}

table > tbody > tr > td {
padding:5px;
}

#tileset > tbody > tr > td { background-color:#FFFFFF; }

img {
object-fit:none;
object-position:0px 0px;
width:50px;
height:50px;
}

.configTable > tbody > tr > td, .configTable > tbody > tr > th { background-color:#676767; }
.configTable > thead > tr > th { background-color:#454545; }

.selected {
background-color:#00FF00 !important;
}

.zero { object-position:0px 0px; }
.one { object-position:-50px 0px; }
.two { object-position:-100px 0px; }

.three { object-position:0px -50px; }
.four { object-position:-50px -50px; }
.five { object-position:-100px -50px; }

.six { object-position:0px -100px; }
.seven { object-position:-50px -100px; }
.eight { object-position:-100px -100px; }

.nine { object-position:0px -150px; }
.ten { object-position:-50px -150px; }
.eleven { object-position:-100px -150px; }

.twelve { object-position:0px -200px; }
139 changes: 139 additions & 0 deletions dev_tools/Level Editor/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<!--
All programming, markup, styling, and graphics of "The Adventures of Space Toaster" were completed by:
George E. Shaw IV // [email protected] // Completed on May 5, 2017
Download (zip): https://drive.google.com/open?id=0B6Gu69KoAdUhRUxXSU9JNUlGZm8
Developer Log: https://drive.google.com/open?id=18tFs7-pxCQT4uEvEK4r8bhC-qDC97KUuarzVGSiJsyU
-->

<html lang="en">
<head>
<title>Space Toaster Level Editor</title>

<meta charset="UTF-8"></meta>
<link type="text/css" rel="stylesheet" href="css/main.css" />
<link rel="icon" type="image/png" href="../../gfx/favicon.png" />

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="libs/globals.js"></script>
<script type="text/javascript" src="libs/GraphicsLoader.js"></script>
<script type="text/javascript" src="../../libs/Sprite.js"></script>
<script type="text/javascript" src="libs/MapEditor.js"></script>
<script type="text/javascript" src="libs/TileDisplay.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<center>
<h4 id="title">Space Toaster Level Editor</h4>
<canvas id="mainDisplay"></canvas>

<table id="tileset" border="0">
<tbody>
<tr>
<td class="selected"><img class="zero" src="../../gfx/space_tileset.png" /></td>
<td><img class="one" src="../../gfx/space_tileset.png" /></td>
<td><img class="two" src="../../gfx/space_tileset.png" /></td>
<td><img class="three" src="../../gfx/space_tileset.png" /></td>
<td><img class="four" src="../../gfx/space_tileset.png" /></td>
<td><img class="five" src="../../gfx/space_tileset.png" /></td>
<td><img class="six" src="../../gfx/space_tileset.png" /></td>
<td><img class="seven" src="../../gfx/space_tileset.png" /></td>
<td><img class="eight" src="../../gfx/space_tileset.png" /></td>
</tr>
<tr>
<td><img class="nine" src="../../gfx/space_tileset.png" /></td>
<td><img class="ten" src="../../gfx/space_tileset.png" /></td>
<td><img class="eleven" src="../../gfx/space_tileset.png" /></td>
<td><img class="twelve" src="../../gfx/space_tileset.png" /></td>
<td><img class="empty" src="../../gfx/empty_map_tile.jpg" /></td>
</tr>
</tbody>
</table>

<br />

<table class="configTable" border="0">
<thead>
<tr>
<th colspan="4">Spawner Config</th>
</tr>
</thead>
<tbody>
<tr>
<th colspan="2">General Spawner Config</th>
<th colspan="2">Enemy Config</th>
</tr>
<tr>
<td>Health:</td>
<td><input id="spawnHealth" type="text" value="10"></input></td>
<td>Type:</td>
<td>
<select id="enemyType">
<option value="EvilWaffle" selected>Evil Waffle</option>
</select>
</td>
</tr>
<tr>
<td>Interval (secs):</td>
<td><input id="spawnInterval" type="text" value="5"></input></td>
<td>Speed:</td>
<td><input id="enemySpeed" type="text" value="2"></input></td>
</tr>
<tr>
<td colspan="2" rowspan="3"></td>
<td>Health:</td>
<td><input id="enemyHealth" type="text" value="4"></input></td>
</tr>
<tr>
<td>Damage:</td>
<td><input id="enemyDamage" type="text" value="2"></input></td>
</tr>
<tr>
<td>Follow Distance:</td>
<td><input id="enemyFollow" type="text" value="0"></input></td>
</tr>
</tbody>
</table>

<br />

<table class="configTable" border="0">
<thead>
<tr>
<th colspan="4">Chest Config</th>
</tr>
</thead>
<tbody>
<tr>
<th colspan="2">Ammo Chest</th>
<th colspan="2">Health Chest</th>
</tr>
<tr>
<td>Ammo Amount:</td>
<td><input id="ammoChestAmount" type="text" value="10"></input></td>
<td>Heal Amount:</td>
<td><input id="healthChestAmount" type="text" value="5"></input></td>
</tr>
</tbody>
</table>

<br />

<table class="configTable" border="0">
<thead>
<tr>
<th colspan="4">Map Data</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="4"><textarea id="rawMapData" readonly="readonly" cols="65" rows="5"></textarea></td>
</tr>
<tr>
<td colspan="4"><button id="clearMap">Clear Map</button></td>
</tr>
</tbody>
</table>
</center>
</body>
</html>
28 changes: 28 additions & 0 deletions dev_tools/Level Editor/libs/GraphicsLoader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
All programming, markup, styling, and graphics of "The Adventures of Space Toaster" were completed by:
George E. Shaw IV // [email protected] // Completed on May 5, 2017
Download (zip): https://drive.google.com/open?id=0B6Gu69KoAdUhRUxXSU9JNUlGZm8
Developer Log: https://drive.google.com/open?id=18tFs7-pxCQT4uEvEK4r8bhC-qDC97KUuarzVGSiJsyU
*/

/* This js file preloads all of the graphics for the level editor */
//Load background sprite
var GFX_BACKGROUND;
var background = new Image();
background.src = "../../gfx/space_background.png";

background.onload = function() {
GFX_BACKGROUND = new Sprite(background, CANVAS_WIDTH, CANVAS_HEIGHT);
delete background;
}

//Load tileset sprites
var GFX_TILES;
var tileset = new Image();
tileset.src = "../../gfx/space_tileset.png";

tileset.onload = function() {
GFX_TILES = new Sprite(tileset, tileset.width, tileset.height, 50);
delete tileset;
}
Loading

0 comments on commit 5e86f2b

Please sign in to comment.