digger: SDL game

Play with your Puppy.
Post Reply
Message
Author
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

digger: SDL game

#1 Post by muggins »

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: Select all

 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>.
Attachments
digger.bz2
(63.15 KiB) Downloaded 1667 times
digger.png
(10.52 KiB) Downloaded 1199 times
Last edited by muggins on Sat 18 Aug 2007, 08:25, edited 1 time in total.

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#2 Post by HairyWill »

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: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#3 Post by muggins »

thanks hairywill,

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

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.

User avatar
gdemonta
Posts: 190
Joined: Mon 19 Feb 2007, 08:17
Location: Paris, France

#4 Post by gdemonta »

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!!
[color=blue]Dumbledore: "The evidence of the Dark Lord's return is incontrovertible"[/color]
IBM X31 - Puppy 2.16 Hard disk install with EZpup

Sektor
Posts: 2
Joined: Fri 17 Aug 2007, 17:27

#5 Post by Sektor »

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);

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#6 Post by muggins »

thanks sektor,

i didn't know of any memory leak probs, but i've re-compiled as you suggested, & re-uploaded.

Post Reply