simple bash/awk/<language> game framework based on svg

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

simple bash/awk/<language> game framework based on svg

#1 Post by technosaurus »

So... I got to thinking about what the minimum would be for a game frontend. It really just needs to draw the backgrounds and sprites and update them as necessary. What I have come up with is about 10 lines of C. Draw an svg image and refresh it if it changes.... Why svg? Besides being able to draw various shapes, svg has a nifty include feature that can, for instance, load an external jpg as the background and 1+ pngs as 'sprites'. The rest is up to the imagination...code to follow but taking suggestions 1st. I assume any sounds could be aplay'd, but I am still trying to decide how to pass keys and clicks (just printf through a pipe?)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
linuph
Posts: 128
Joined: Mon 04 Jun 2012, 02:29
Location: Philippines

#2 Post by linuph »

I'm looking for something like that. A graphical 'backend' to BASH. I'm using awk to dynamically calculate distances and bearings between GPS coordinates and want to plot named objects (like cities) on screen within a definable range from the user's position, like a radar screen. There should also be descriptions in different text sizes, fonts and colors.

Sofar, I didn't get any further than dynamic text bars with DZEN2 but have difficulty getting beyond fixed font.

As to the 'radar' screen I looked into GNUPLOT (doesn't seem dynamic), Tcl/Tk (a whole new programming language), direct access of the frame buffer (that is turned off in Puppy - in my case Dpup Exprimo) and even looked into Graphpup, where direct framebuffer access would be possible. Unforunately, Graphpup has an older kernel and misses other stuff, like WiFi wireless, Bluetooth, BASH 4 etc. No wonder, Graphpup is old and no longer maintained.

HTML5 could be a possibility or, indeed SVG. I'm learning about SVG now.

Summary: I am very interested in this, although not for gaming.

User avatar
Dave_G
Posts: 453
Joined: Thu 21 Jul 2011, 13:53

#3 Post by Dave_G »

I too would be interested in something like this.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#4 Post by technosaurus »

I posted a working version in the programming section.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply