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 Thu 23 Oct 2014, 10:37
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
simple bash/awk/<language> game framework based on svg
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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?)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: 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
View user's profile Send private message 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sun 23 Dec 2012, 02:52    Post subject:  

I too would be interested in something like this.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sun 23 Dec 2012, 17:34    Post subject:  

I posted a working version in the programming section.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0452s ][ Queries: 12 (0.0042s) ][ GZIP on ]