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 Sat 25 Oct 2014, 14:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
digger: SDL game
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
muggins

Joined: 20 Jan 2006
Posts: 6689
Location: lisbon

PostPosted: Thu 16 Aug 2007, 06:19    Post_subject:  digger: SDL game  

This is an old-style game ported to SDL. There is only 1 file included in the archive, the actual game, digger, so you can extract it to wherever you want, (possibly /usr/bin?), and play by typing ./digger on the commandline, or clicking on the file. Of course the game requires SDL libs to run.

digger -h generates:

Code:
 DIGGER [[/S:]speed] [[/L:]level file] [/C] [/B] [/Q] [/M] [/P:playback file]
         [/E:playback file] [/R:record file] [/O] [/K[A]] [/G[:time]] [/2]
         [/A:device,port,irq,dma,rate,length] [/V] [/U] [/I:level]

/Q = Quiet mode (no sound at all)       /M = No music
/R = Record graphics to file
/P = Playback and restart program       /E = Playback and exit program
/O = Loop to beginning of command line
/K = Redefine keyboard
/G = Gauntlet mode
/2 = Two player simultaneous mode
/A = Use alternate sound device
/U = Allow unlimited lives
/I = Start on a level other than 1


So starting with digger /A enables sound. Also it's probably a good idea to re-define the keys as the default keys for firing are either <Tab> or <F1>.
digger.bz2
Description 
bz2

 Download 
Filename  digger.bz2 
Filesize  63.15 KB 
Downloaded  1166 Time(s) 
digger.png
 Description   
 Filesize   10.52 KB
 Viewed   734 Time(s)

digger.png


Edited_time_total
Back to top
View user's profile Send_private_message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Thu 16 Aug 2007, 06:31    Post_subject:  

cool
minor point
it won't run just by extracting and then clicking, you need to set the permission to executable first
chmod 700 digger

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6689
Location: lisbon

PostPosted: Thu 16 Aug 2007, 06:49    Post_subject:  

thanks hairywill,

i always assume that if it works on my computer, then it must work for everybody else...

it's a pity the size seems restricted to 600x480. i had a quick look at the source but couldn't find an easy way yo resize. i might have another look later.
Back to top
View user's profile Send_private_message 
gdemonta


Joined: 19 Feb 2007
Posts: 190
Location: Paris, France

PostPosted: Fri 17 Aug 2007, 10:02    Post_subject:  

thanks a lot Muggins,
I used to play digger with an old NCR PC4 (4,7Mhz, 10Mb HDD, 128Kb of ram, do you think it could handle Puppy?!!!), so many memories!!! As well as Sid meier's Pirates, Big top, Double dragon,... with those 5"1/4 disks which always had problem being read!!
I'll try this for sure!!

_________________
Dumbledore: "The evidence of the Dark Lord's return is incontrovertible"
IBM X31 - Puppy 2.16 Hard disk install with EZpup
Back to top
View user's profile Send_private_message 
Sektor

Joined: 17 Aug 2007
Posts: 2

PostPosted: Fri 17 Aug 2007, 15:22    Post_subject:  

There is a memory leak in the original Digger/SDL source. If no one fixed it in this version then you need to make the following changes:

open sdl_vid.c.

Find the end of the vgawrite function and add:

free(copy);
Back to top
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6689
Location: lisbon

PostPosted: Sat 18 Aug 2007, 04:27    Post_subject:  

thanks sektor,

i didn't know of any memory leak probs, but i've re-compiled as you suggested, & re-uploaded.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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