-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- starting documentation (level building tutorial)
- Loading branch information
Showing
59 changed files
with
15,705 additions
and
401 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# file GENERATED by distutils, do NOT edit | ||
setup.py | ||
spygame\__init__.py | ||
spygame\examples\vikings.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- make Animation setting not dependent on SpriteSheet's name (some SpriteSheets contain many Anim settings , e.g. enemies.tsx) | ||
- include water, quicksand, waterfall, etc.. in the ladder-processing algo run on the background layer (if build_ladders=true) | ||
- create shootable coconuts that end up in the quicksand for Baleog to be able to cross | ||
- create key items that can be picked up by the Vikings |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
How to build a Platformer | ||
========================= | ||
|
||
In this tutorial, we will be building a 2D platformer from scratch using the spygame library. You will need the following software and files to follow along | ||
with the different steps: | ||
|
||
- The "Tiled" editor to create spygame's level-tmx files. A level-tmx file contains all necessary information for spygame to build a complete level, i.e. | ||
background and foreground graphics, objects that the level will start with (e.g. player, enemies, traps, elevators, ladders, etc..). | ||
You can download `Tiled from here <http://www.mapeditor.org>`_. | ||
- The spygame library: See `Quick Setup Instructions <readme_link.html#get-the-code>`_ for all necessary details on how to get and install spygame. | ||
- Some asset files: Download the following two folders into the directory, in which you would like to develop the game. This will be the directory, in | ||
which we will write the platformer_2d.py file (the only file we are going to edit in this tutorial). | ||
|
||
a) images/ (`from here <>`_) | ||
b) data/ (create this as an empty directory, we'll be populating it from scratch with one level-tmx and several tsx (spygame SpriteSheet) files) | ||
|
||
Level tmx-files | ||
--------------- | ||
|
||
Layers | ||
------ | ||
|
||
The Collision Layer | ||
+++++++++++++++++++ | ||
|
||
Background and Foreground Layers | ||
++++++++++++++++++++++++++++++++ | ||
|
||
The Object Layer | ||
++++++++++++++++ | ||
|
||
|
||
Writing a Class in spygame | ||
-------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../README.rst |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tileset name="arrow" tilewidth="16" tileheight="5" tilecount="4" columns="4"> | ||
<image source="../images/arrow.png" width="64" height="10"/> | ||
</tileset> |
Oops, something went wrong.