Commit 534de284 authored by Terence Martin's avatar Terence Martin

Initial checkin

This is the base of the Devember 2016 project, A-Maze-Balls. This is
basically a minimal fork of ts-game-engine.
parents
*.sublime-workspace
upload
info
\ No newline at end of file
Copyright (c) 2016 Terence Martin (@OdatNurd)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This project constitutes my entry into Devember 2016. See <http://devember.org>
for more information. There is an associated development log at
<http://bloggity.nurdz.com/category/devember2016/> as per the rules of Devember.
The repository will contain tags which represent the state of everything at the
each of day day of Devember (including an initial tag), allowing for easy
tracking of all changes made from day to day.
For this Devember I will be using the latest version of
<https://gitlab.com/OdatNurd/ts-game-engine> (the offset of Debember 2015) to
work on a new project called A-Maze-Balls (because once again, clever). This is
a (partial) clone of a game called Bolo Ball by Soleau Games (more info
available at <http://www.soleau.com/>).
I say "Partial" clone because unlike last year's project, I am not attempting a
straight 1:1 duplication. Instead, I'm going to try to replicate as closely as
I can get, and then add extra features on, as time allows.
In the unlikely event that I finish this to my satisfaction, focus will shift to
something else, and this file will be updated as appropriate.
\ No newline at end of file
/*!
* IE10 viewport hack for Surface/desktop Windows 8 bug
* Copyright 2014-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
// See the Getting Started docs for more information:
// http://getbootstrap.com/getting-started/#support-ie10-width
(function () {
'use strict';
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement('style')
msViewportStyle.appendChild(
document.createTextNode(
'@-ms-viewport{width:auto!important}'
)
)
document.querySelector('head').appendChild(msViewportStyle)
}
})();
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')
\ No newline at end of file
/* Sticky footer styles
-------------------------------------------------- */
html
{
position: relative;
min-height: 100%;
}
body
{
margin-top: 50px;
margin-bottom: 60px;
}
.footer
{
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
background-color: #f5f5f5;
}
/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
body > .container
{
padding: 60px 15px 0;
}
.container .text-muted
{
margin: 20px 0;
}
.footer > .container
{
padding-right: 15px;
padding-left: 15px;
}
#gameContent
{
/* The native top left corner should be the center of the viewport. */
position: absolute;
left: 50%;
top: 50%;
}
code
{
font-size: 80%;
}
dd
{
margin-left: 2em;
padding-bottom: 1em;
}
@font-face {
font-family: 'kenvector_futureregular';
src: url('kenvector_future-webfont.eot');
src: url('kenvector_future-webfont.eot?#iefix') format('embedded-opentype'),
url('kenvector_future-webfont.woff2') format('woff2'),
url('kenvector_future-webfont.woff') format('woff'),
url('kenvector_future-webfont.ttf') format('truetype'),
url('kenvector_future-webfont.svg#kenvector_futureregular') format('svg');
font-weight: normal;
font-style: normal;
}
{
"folders":
[
{
"folder_exclude_patterns":
[
"tools",
"bootstrap",
],
"path": "."
}
]
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Devember-2016 Project Page">
<meta name="author" content="Terence Martin">
<title>A-Maze-Balls (Bolo Ball Clone)</title>
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="css/default.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<!--suppress ALL -->
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<!--suppress ALL -->
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://gamedev.nurdz.com/">#GameDev by @OdatNurd</a>
<p class="navbar-text"><strong>A-Maze-Balls (Bolo Ball Clone)</strong></p>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li>
<a data-target="#helpAbout" data-toggle="modal" href="#helpAbout">About</a>
</li>
<li>
<a data-target="#controlsModal" data-toggle="modal" href="#controlsModal">Controls</a>
</li>
<li>
<a href="https://gitlab.com/OdatNurd/devember-2016">Source Code</a>
</li>
<li>
<button id="controlBtn" class="btn navbar-btn btn-default">Stop Game</button>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
<div class="container-fluid">
<div id="gameContent"></div>
</div>
<div class="navbar navbar-default navbar-fixed-bottom" data-pg-collapsed>
<div class="container">
<p class="text-muted">A-Maze-Balls Copyright&copy; 2016 Terence Martin</p>
</div>
</div>
<div class="modal fade pg-show-modal" id="helpAbout" tabindex="-1" role="dialog" aria-hidden="true"
data-pg-collapsed>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">About A-Maze-Balls</h4>
</div>
<div class="modal-body">
<p>This is a simple clone of Bolo Ball by <a href="http://www.soleau.com/">Soleau Software</a>,
created as a part of my <a href="https://devember.org/">Devember</a> 2016 project.</p>
<p>This is a not-entirely-faithful port of the original game. The mechanics are somewhat
the same as the original, although I have no extensive experience of that version and
so this is more an exercise in replicating something and then extending it.
</p>
<p>To that end, once the core gameplay is completed, additional mechanics will be added
to the game in order to see how that changes things. Maybe we'll end up with something
better, or maybe we will not.
</p>
<p>Some of the graphical assets used here are from (or based upon):
<a href="https://kenney.itch.io/kenney-game-assets-2">https://kenney.itch.io/kenney-game-assets-2</a>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade pg-show-modal" id="controlsModal" tabindex="-1" role="dialog" aria-hidden="true"
data-pg-collapsed>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">A-Maze-Balls Controls</h4>
</div>
<div class="modal-body">
<dl>
<dt>F</dt>
<dd>Toggle fullscreen mode on the canvas (if supported by the browser)</dd>
</dl>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="bootstrap/assets/js/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/assets/js/ie10-viewport-bug-workaround.js"></script>
<script src="js/engine-0.3.1.js"></script>
<script src="js/game.js"></script>
</body>
</html>
This diff is collapsed.
This diff is collapsed.
#!/bin/bash
#
# Make sure that a file was specified to do something with
if [ "$1" == "" ]; then
echo "Specify the mp3 file to convert to a wav file"
exit
fi
#
# Make sure that the file actually exists.
if [ ! -f "$1" ]; then
echo "Unable to locate input file '$1'"
exit
fi
#
# Use ffmpeg to convert to a wav file
ffmpeg -i "$1" `echo $1 | sed -e "s/\....$/.wav/"`
#!/bin/bash
#
# Make sure that a file was specified to do something with
if [ "$1" == "" ]; then
echo "Specify the wav file to convert to an mp3 file"
exit
fi
#
# Make sure that the file actually exists.
if [ ! -f "$1" ]; then
echo "Unable to locate input file '$1'"
exit
fi
#
# Use lame to encode the wav file to an mp3
lame -b 128 -h "$1" `echo $1 | sed -e "s/\....$/.mp3/"`
#!/bin/bash
#
# Make sure that a file was specified to do something with
if [ "$1" == "" ]; then
echo "Specify the wav file to convert to an ogg file"
exit
fi
#
# Make sure that the file actually exists.
if [ ! -f "$1" ]; then
echo "Unable to locate input file '$1'"
exit
fi
#
# Use oggenc to encode the wav file to an ogg
oggenc --bitrate 128 "$1"
This diff is collapsed.
module nurdz.game
{
}
\ No newline at end of file
This diff is collapsed.
{
"compilerOptions": {
"module": "system",
"target": "es5",
"noImplicitAny": false,
"declaration": false,
"sourceMap": false,
"outFile": "../../js/game.js"
},
"files": [
"../engine/engine-0.3.1.d.ts",
"GameState.ts",
"main.ts"
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment