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 Wed 26 Nov 2014, 12:12
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 Posts_count  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4379

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: 4379

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0451s ][ Queries: 12 (0.0050s) ][ GZIP on ]