<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vim-space-vlaze/autoload, branch master</title>
<subtitle>A space shooter game that runs in Vim</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/'/>
<entry>
<title>help.vim: Use `space_vlaze.txt` instead of `space_vlaze.vim`</title>
<updated>2015-10-21T20:22:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-21T20:22:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=1ffd57fc0c28d402e660822a8930c1a619dd3de8'/>
<id>1ffd57fc0c28d402e660822a8930c1a619dd3de8</id>
<content type='text'>
Forgot to update the built-in menu's way of bringing up the help when I
updated the main help file tag in
8606ac8ce8e7d872da5b77e644fd32ac4c7fd26b.

This way, entering `h` in the game's main menu will correctly bring up
the plugin's help documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Forgot to update the built-in menu's way of bringing up the help when I
updated the main help file tag in
8606ac8ce8e7d872da5b77e644fd32ac4c7fd26b.

This way, entering `h` in the game's main menu will correctly bring up
the plugin's help documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>help#Show: Open help for `space_vlaze.vim` with the extension</title>
<updated>2015-10-08T09:11:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T09:11:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=e671b2e44acd7c1745447401def482bc5c137239'/>
<id>e671b2e44acd7c1745447401def482bc5c137239</id>
<content type='text'>
To ensure that the help file opens at the top. Otherwise for some reason
it was opening at *space_vlaze-h* for me.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To ensure that the help file opens at the top. Otherwise for some reason
it was opening at *space_vlaze-h* for me.
</pre>
</div>
</content>
</entry>
<entry>
<title>leaderboard#Sort: Convert inputs to numbers before comparing</title>
<updated>2015-10-08T09:03:12+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T09:03:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=9a50e8f4abe9f50b7640b55afb606db6d3d4b0a8'/>
<id>9a50e8f4abe9f50b7640b55afb606db6d3d4b0a8</id>
<content type='text'>
Otherwise the inputs get compared as strings and only the leftmost digit
of the number gets sorted so you end up with things like this:

    [8, 43, 2, 13, 0]

Convert our inputs to numbers so that they get compared in their
entirety and larger numbers move to the head of the list.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise the inputs get compared as strings and only the leftmost digit
of the number gets sorted so you end up with things like this:

    [8, 43, 2, 13, 0]

Convert our inputs to numbers so that they get compared in their
entirety and larger numbers move to the head of the list.
</pre>
</div>
</content>
</entry>
<entry>
<title>mappings#Initialize: Change mappings to `&lt;nop&gt;`</title>
<updated>2015-10-08T08:02:32+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T08:02:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=7ca0e2b4e01b8b37405e6e7f25477bfae107c319'/>
<id>7ca0e2b4e01b8b37405e6e7f25477bfae107c319</id>
<content type='text'>
Since we're handling game actions in `mappings#Listen()` now, don't call
our functions from these normal mappings.

The reason for not doing so is because otherwise after you get a Game
Over you could still move the player around and fire missiles (although
doing so wouldn't affect your score).

Set these keys to `&lt;nop&gt;` so that they don't do their normal Vim
functions so we can maximise the feeling of being in the game world
versus being in a text editor. Otherwise you can move your cursor
around, record macros with `q`, and I'm just not sure I want to allow
all that in the game.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since we're handling game actions in `mappings#Listen()` now, don't call
our functions from these normal mappings.

The reason for not doing so is because otherwise after you get a Game
Over you could still move the player around and fire missiles (although
doing so wouldn't affect your score).

Set these keys to `&lt;nop&gt;` so that they don't do their normal Vim
functions so we can maximise the feeling of being in the game world
versus being in a text editor. Otherwise you can move your cursor
around, record macros with `q`, and I'm just not sure I want to allow
all that in the game.
</pre>
</div>
</content>
</entry>
<entry>
<title>Play audio when player hits an enemy</title>
<updated>2015-10-08T07:59:12+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T07:59:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=e3efae83fc051284dacb5fd0ec71ef7f93a5925e'/>
<id>e3efae83fc051284dacb5fd0ec71ef7f93a5925e</id>
<content type='text'>
Generated with Cfxr.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Generated with Cfxr.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add audio for missiles fired</title>
<updated>2015-10-08T07:56:08+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T07:56:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=46d6e250b9f4c6fcb2698b2a01d471aeacfd3a5d'/>
<id>46d6e250b9f4c6fcb2698b2a01d471aeacfd3a5d</id>
<content type='text'>
Generated with Cfxr.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Generated with Cfxr.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add audio for player movement</title>
<updated>2015-10-08T07:52:38+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T07:52:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=3887c225e1024fde6570a8c8984ea462ab04c0fb'/>
<id>3887c225e1024fde6570a8c8984ea462ab04c0fb</id>
<content type='text'>
Again created with Cfxr. (Godsend!)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Again created with Cfxr. (Godsend!)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add "enemy defeated" sound</title>
<updated>2015-10-08T07:47:44+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T07:46:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=f2ccd902a5f9534e2a8e83c65ec3875a81fefc26'/>
<id>f2ccd902a5f9534e2a8e83c65ec3875a81fefc26</id>
<content type='text'>
Generated with Cfxr. Play a sound when an enemy is destroyed.

Sounds are located in the "Resources" directory. Audio is played using
`mplayer` if available.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Generated with Cfxr. Play a sound when an enemy is destroyed.

Sounds are located in the "Resources" directory. Audio is played using
`mplayer` if available.
</pre>
</div>
</content>
</entry>
<entry>
<title>menus#Start: Call `leaderboard#RenderLeaderboard()` on `l`</title>
<updated>2015-10-08T07:31:08+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T07:31:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=63568407c0e2e585305c99be968d55d3416e64fe'/>
<id>63568407c0e2e585305c99be968d55d3416e64fe</id>
<content type='text'>
When pressing `l` call the new name of the function we're using to
render the leaderboard as the original one I had put here was a stub.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When pressing `l` call the new name of the function we're using to
render the leaderboard as the original one I had put here was a stub.
</pre>
</div>
</content>
</entry>
<entry>
<title>leaderboard#RenderLeaderboard: Show headline and scores</title>
<updated>2015-10-08T07:28:01+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-10-08T07:28:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-space-vlaze/commit/?id=09db561ca2a016b5cefb07c9782c8f823e8e4e03'/>
<id>09db561ca2a016b5cefb07c9782c8f823e8e4e03</id>
<content type='text'>
Output our "Leaderboard" header. Two lines needed to be surrounded in
double quotes since they contain single quotes and backslashes needed to
be escaped in those strings.

Output player name and high score value. Not very pretty unfortunately.
Using hard-coded left padding where it would be nice to calculate
padding needed to center the name and score.

Also would like to right-align score numerals but leaving it as an
enhancement as there are more pressing things to do for now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Output our "Leaderboard" header. Two lines needed to be surrounded in
double quotes since they contain single quotes and backslashes needed to
be escaped in those strings.

Output player name and high score value. Not very pretty unfortunately.
Using hard-coded left padding where it would be nice to calculate
padding needed to center the name and score.

Also would like to right-align score numerals but leaving it as an
enhancement as there are more pressing things to do for now.
</pre>
</div>
</content>
</entry>
</feed>
