Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 05 Dec 2016, 06:36
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Text-Maze
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
TecnoGuy458

Joined: 26 Jan 2015
Posts: 121
Location: Ohio

PostPosted: Fri 13 Nov 2015, 14:44    Post subject:  Text-Maze
Subject description: a customizable maze game written in bash.
 

EDIT: second edition is out. (v2.x)

GITHUB:https://github.com/ThomasTheSpaceFox/Text-Maze-2
text maze uses various bash scripts to allow the player to solve mazes.
lookup.sh -used in wall detection logic
T-IMG.sh -used to display the current maze view.
play-text-maze.sh -runs the game in the terminal designated in
NOTE: for versions 2.2 and later this has changed. see text-maze.conf section below.
Code:
term.config.txt

mazesearch.sh is located in the
Code:
MAZE
directory and searches for the main maze files (.MAZE)

each maze is made up of 2 files: where sample is the maze filename
sample.MAZE -contains all necessary info about the maze.
sample.MOD.txt -maze data file.

sample.MAZE looks like this:
Code:
sample maze
sample.MOD.txt
11
9
2
2
9
2

explanation:
name
.MOD.txt file
sizey -maze size Y (lines)
sizex -maze size X (columns)
starty -player start Y (lines)
startx -player start X (columns)
endy -player end goal Y (lines)
endx -player end goal X (columns)

where Y1 X1 is the number at line 1 column 1

sample.MOD.txt looks like this:
Code:
111111111
101111111
100010011
101110101
101000101
100010001
101110111
101111111
101111111
101111111
111111111


1=wall
0=path
please ensure starting and ending positions are on paths.

note that no path is along the edge of the maze, that there is at least one wall (1) space between the player and the edge of the maze at all times. this is necessary due to how text-maze 2, determines witch T-IMG image to present as the current maze view.

game is installed in
Code:
/usr/local/Text-Maze-2/


note on controls in versions 2.2 or later:
you can change the keymap in the config file. see below.

text-maze.conf

the config file is named:
Code:
text-maze.conf


First is the control settings. where "w" would mean pressing the "w" key.
Please note that the key map is case sensitive.
Code:
# controls
#up/forward
UKEY="w"
#down/backward
DKEY="s"
#left
LKEY="a"
#right
RKEY="d"
#quit
QUITKEY="q"


next is the system settings area. here you can enable/disable debugging mode. as well as specify a terminal emulator to use. (used by play-text-maze-2.sh to start the program.)
Code:
#system settings
#terminal emulator to use
THETERMINATOLUSE="urxvt"
# turn debugging on(1) or off(0)
DEBUG=0



2 mazes are included:
sample.MAZE -original test maze used during development
similar.MAZE -maze identical to the one shown in text-maze's icon
Text-Maze-v2.4.pet
Description  Text-Maze-v2.4 (newer 3D perspective view system (faster)
-(much) faster display time
-simpler maze selector.
pet

 Download 
Filename  Text-Maze-v2.4.pet 
Filesize  28.1 KB 
Downloaded  99 Time(s) 
Text-Maze-v1.1.pet
Description  Text-Maze-v1.1 (older 2D TOP-down view system (slower)
pet

 Download 
Filename  Text-Maze-v1.1.pet 
Filesize  16.84 KB 
Downloaded  96 Time(s) 

Last edited by TecnoGuy458 on Sun 17 Apr 2016, 07:53; edited 6 times in total
Back to top
View user's profile Send private message 
TecnoGuy458

Joined: 26 Jan 2015
Posts: 121
Location: Ohio

PostPosted: Fri 13 Nov 2015, 14:55    Post subject: Text-Maze  

screenshots of similar.MAZE
text-maze-v2.2.jpg
 Description   Text-Maze-v2.x view system (version shown is v2.2)
 Filesize   41.75 KB
 Viewed   480 Time(s)

text-maze-v2.2.jpg

capture21943.jpg
 Description   Text-Maze-v1.x view system
 Filesize   27.36 KB
 Viewed   611 Time(s)

capture21943.jpg


Last edited by TecnoGuy458 on Wed 10 Feb 2016, 21:42; edited 1 time in total
Back to top
View user's profile Send private message 
TecnoGuy458

Joined: 26 Jan 2015
Posts: 121
Location: Ohio

PostPosted: Tue 29 Dec 2015, 01:16    Post subject:  

second edition (v2.x) is here! (see first post)
Back to top
View user's profile Send private message 
TecnoGuy458

Joined: 26 Jan 2015
Posts: 121
Location: Ohio

PostPosted: Wed 10 Feb 2016, 14:42    Post subject:  

UPDATE: v2.2 is out.

->finished switching over to the new lookup routine.

->reworked the controls to use "wasd" for mvement and "q" to quit. as a default key-map. (key-map can be changed in the config file (see first post)

->add config file (see first post)

->update TIMG to v3.1
Back to top
View user's profile Send private message 
TecnoGuy458

Joined: 26 Jan 2015
Posts: 121
Location: Ohio

PostPosted: Sun 17 Apr 2016, 08:02    Post subject: UPDATE: v2.4 is out  

-first off, the v2.* display system has been sped up (again).
this was done using a T-IMG to escape code converter, which makes the draw time (very) fast.

(NOTE: this is not going to cause a significant speed up in the 1.x versions, due to the compositor being the major culprit of their slowness.)

-also, the maze selector has been reworked as a numbered list based one.
each maze is given a number and you enter a number(and press enter) to choose a maze.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0353s ][ Queries: 12 (0.0040s) ][ GZIP on ]