Skip to content

Commit

Permalink
Release v0.3.0 Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
jwvhewitt committed Dec 23, 2014
1 parent 67a83b0 commit cf54b7d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ home directory and place a configuration file there. This is where all of your
characters and saved games are stored, in case you want to delete them or
make backups. The configuration file can be edited in any text editor.

In fact, the entire game can be edited in any text editor. Go ahead and look at
how things work. Try adding your own items, monsters, spells, and whatnot.

HOW TO PLAY
===========

Expand Down
12 changes: 10 additions & 2 deletions exploration.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ def update_enchantments( self ):
if hasattr( c, "condition" ) and c.condition:
self.invoke_enchantments( c )

def alert( self, in_txt ):
txt = dialogue.personalize_text_for_narrator( self, in_txt )
def alert( self, txt, use_grammar=True ):
if use_grammar:
txt = dialogue.personalize_text_for_narrator( self, txt )
mydest = pygame.Rect( self.screen.get_width() // 2 - 200, self.screen.get_height()//2 - 100, 400, 200 )
mytext = pygwrap.render_text( pygwrap.SMALLFONT, txt, 400 )
mydest = mytext.get_rect( center = (self.screen.get_width() // 2, self.screen.get_height()//2) )
Expand Down Expand Up @@ -867,6 +868,8 @@ def pop_explo_menu( self ):
mymenu.add_item( t.menu_str(), t )
mymenu.sort()
mymenu.add_alpha_keys()
mymenu.add_item( "-----", False )
mymenu.add_item( "View Inventory", 6 )
else:
# Add the characters.
for pc in self.camp.party:
Expand Down Expand Up @@ -895,6 +898,8 @@ def pop_explo_menu( self ):
elif choice == 5:
self.camp.save(self.screen)
self.no_quit = False
elif choice == 6:
self.view_party( self.camp.party.index( pc ) )

elif choice in self.camp.party:
# Picked a PC. Cast one of their spells.
Expand Down Expand Up @@ -988,6 +993,9 @@ def go( self ):
self.field_camp()
elif gdi.unicode == u"s":
services.SpellManager()(self)
elif gdi.unicode == u"h" or gdi.unicode == u"?" or gdi.key == pygame.K_F1:
self.alert("HELP\n ==== \n 1-4 View party member\n Q Quit and save\n c Center view\n M View map\n R Rest\n s Manage spells",False)

elif gdi.unicode == u"*":
for pc in self.camp.party:
pc.xp += 1000
Expand Down
8 changes: 5 additions & 3 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import random
import chargen

VERSION_ID = "0.2.0 Alpha"
VERSION_ID = "0.3.0 Alpha"


class PosterRedraw( object ):
Expand Down Expand Up @@ -135,8 +135,8 @@ def load_campaign( screen ):

rpm.add_item( "Create Character", chargen.make_and_save_character )
rpm.add_item( "Load Campaign", load_campaign )
rpm.add_item( "Start Campaign", default_start_campaign )
rpm.add_item( "Start Bardic Campaign", bardic_start_campaign )
rpm.add_item( "Start New Campaign", bardic_start_campaign )
rpm.add_item( "Start Gen1 Campaign", default_start_campaign )
rpm.add_item( "Browse Characters", campaign.browse_pcs )
rpm.add_item( "Quit Game", None )

Expand All @@ -145,6 +145,8 @@ def load_campaign( screen ):
cmd = rpm.query()
if cmd:
cmd( screen )
if pygwrap.GOT_QUIT:
break



2 changes: 1 addition & 1 deletion narrator/specfeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def custom_init( self, nart ):
exterior.special_c[ "window" ] = maps.SMALL_WINDOW
exterior.special_c[ "sign1" ] = maps.DRINK_SIGN
self.register_element( "_EXTERIOR", exterior, dident="LOCALE" )
interior = maps.Scene( 50,50, sprites={maps.SPRITE_FLOOR: "terrain_floor_wood.png" },
interior = maps.Scene( 50,50, sprites={maps.SPRITE_WALL: "terrain_wall_wood.png",maps.SPRITE_FLOOR: "terrain_floor_wood.png" },
biome=context.HAB_BUILDING, setting=self.setting, desctags=(context.DES_CIVILIZED,) )
igen = randmaps.BuildingScene( interior )
gate_1 = waypoints.GateDoor()
Expand Down

0 comments on commit cf54b7d

Please sign in to comment.