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 26 Jul 2014, 05:27
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 [6 Posts]  
Author Message
muggins

Joined: 20 Jan 2006
Posts: 6673
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  1132 Time(s) 
digger.png
 Description   
 Filesize   10.52 KB
 Viewed   709 Time(s)

digger.png


Last edited by muggins on Sat 18 Aug 2007, 04:25; edited 1 time in 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: 6673
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: 6673
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 from previous:   Sort by:   
Page 1 of 1 [6 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.0550s ][ Queries: 12 (0.0080s) ][ GZIP on ]