changeset 28:d07e7f798016

Started the player character chapter, some small error fixes
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Sun, 05 Jun 2011 23:28:07 +0200
parents 0f71648a00db
children 1090d7e5537f
files docs/index.rst docs/player.rst docs/sprites.rst docs/tiles.rst
diffstat 4 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docs/index.rst	Sun Jun 05 22:43:53 2011 +0200
+++ b/docs/index.rst	Sun Jun 05 23:28:07 2011 +0200
@@ -21,6 +21,7 @@
    tiles.rst
    main_loop.rst
    sprites.rst
+   player.rst
 
 Indices and tables
 ==================
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/player.rst	Sun Jun 05 23:28:07 2011 +0200
@@ -0,0 +1,10 @@
+Player character
+================
+
+It's finally time to add a little bit of interactivity to this game. We will
+introduce a player character that walks around the map. But before we do that,
+we need to clean up our main loop a little bit, get rid of most of the globals
+and create a Game object.
+
+Main loop cleanup
+-----------------
--- a/docs/sprites.rst	Sun Jun 05 22:43:53 2011 +0200
+++ b/docs/sprites.rst	Sun Jun 05 23:28:07 2011 +0200
@@ -97,7 +97,7 @@
 Animation
 ---------
 
-That map is getting updated at 15 frames per second, but we can't really see that because there is nothing moving. Lets fix that and add some animated monsters.
+That map is getting updated at 15 frames per minute, but we can't really see that because there is nothing moving. Lets fix that and add some animated monsters.
 
 We actually already have almost all that we need -- just need to extend the Sprite class a little bit::
 
--- a/docs/tiles.rst	Sun Jun 05 22:43:53 2011 +0200
+++ b/docs/tiles.rst	Sun Jun 05 23:28:07 2011 +0200
@@ -28,7 +28,7 @@
         pygame.init()
         screen = pygame.display.set_mode((128, 98))
         screen.fill((255, 255, 255))
-        table = load_tile_table("tileset.png", 24, 16)
+        table = load_tile_table("ground.png", 24, 16)
         for x, row in enumerate(table):
             for y, tile in enumerate(row):
                 screen.blit(tile, (x*32, y*24))