The time now is Fri 24 May 2013, 17:19
All times are UTC - 4 |
| Author |
Message |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Tue 14 Aug 2012, 23:22 Post subject:
simple bash/awk/<language> game framework based on svg |
|
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?)
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
linuph

Joined: 03 Jun 2012 Posts: 127 Location: Philippines
|
Posted: Sat 22 Dec 2012, 23:29 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
Dave_G

Joined: 21 Jul 2011 Posts: 459
|
Posted: Sun 23 Dec 2012, 02:52 Post subject:
|
|
I too would be interested in something like this.
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Sun 23 Dec 2012, 17:34 Post subject:
|
|
I posted a working version in the programming section.
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
|
|
|
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
|