forked from sirvaulterscoff/darktower-rl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
22 additions
and
47 deletions.
There are no files selected for viewing
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,12 @@ | ||
class Player(object): | ||
cur_pos_x, cur_pos_y = 0, 0 | ||
char = '@' | ||
color = [255, 255, 255] | ||
|
||
class Critter(Player): | ||
def __init__(self, char, color, x=0, y=0): | ||
self.char = char | ||
self.color = color | ||
self.cur_pos_x = x | ||
self.cur_pos_y = y | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from thirdparty.libtcod import libtcodpy as libtcod | ||
|
||
class Map(object): | ||
def __init__(self, map_src): | ||
|