|
Post by vovchik on Aug 22, 2013 23:37:26 GMT 1
Dear Alex, Here is an archive of sounds that we can use in our forthcoming Bong With kind regards, vovchik Attachments:bong_wav.tar.gz (176.3 KB)
|
|
|
Post by alexfish on Aug 23, 2013 16:07:24 GMT 1
Hi @ All
ping , ping
The first Member Excluding God above , to Name this Years Winner of the 'Wimbledon mens single Tennis Final' , gets a Free Copy of BONG.
Alex
|
|
|
Post by vovchik on Aug 23, 2013 18:24:39 GMT 1
Dear All, Bing, bong - the witch is dead!. Alex and I have concocted a GFX version of pong (BONG) - that perennial retro favourite of 1970-ish geeks, loners and other digital oddballs. I remember programming my first little pong in 8088 assembler decades ago, and I thought that BaCon would be somehow incomplete without an implementation of this game So here is our maiden effort to bongify the world. Just compile as usual for GFX and have the directory with the sound files dir below the executable. For sound to work you need libcanberra, but that is standard in many distributions, including Ubuntu and family. Have fun. We did. Alex also did a great job at capturing keystrokes (look at the source). Joe, I think you will be interested and can showcase that bit. With kind regards, vovchik PS. Instructions are basically all contained in the Start button tooltip. PPS. Those Sharapova screams can get annoying. If so, just comment out the SOUND statement in the last line of the FLASH sub. PPPS. Also commented out the SPLEEP in the FLASH sub for slightly smoother play. Attachments:
bong_src.tar.gz (202.49 KB)
|
|
|
Post by Pjot on Aug 23, 2013 18:59:01 GMT 1
vovchik, alex, Very nice! But first I had to change the code at lines 356-359 because it crashed ' Fill background with gradient bg = RECTANGLE(win, 1, 1, 1, 1, CLASS, ITEM_RECTANGLE, "can-focus", 1, \ "line-width", 0.0, "fill_pattern", fill_lin, "stroke-color", "none", \ "antialias", 3, NULL)
As you can see I had to put 'NULL' as last parameter, instead of '0'. Now all works on my 64bit Linux Mint! Thanks, Peter
|
|
|
Post by vovchik on Aug 23, 2013 19:03:04 GMT 1
Dear Peter,
Thanks,
I'll change that line and repost the archive....
With kind regards, vovchik
|
|
|
Post by vovchik on Aug 23, 2013 22:23:27 GMT 1
Dear All, I think breakout might be on the horizon With kind regards, vovchik
|
|
|
Post by alexfish on Aug 23, 2013 22:58:34 GMT 1
Hi @ All A Little Tip for BONG , after chasing the Pingbong if hit success or not , thing more will be Miss in this one Move the Bat to center , press SPACE BAR , or any key except "r" or "tab" then the RacketBat / will stop. then will move again on the next up or down key pess , I found this NECESSARY after VOVCHIK put this BONG into Pro mode:: HTH Alex
|
|
|
Post by vovchik on Aug 24, 2013 23:49:24 GMT 1
Dear All, Bong has just improved. Now you can use the mouse wheel to control the paddle. That stuff is in a USEC, but I don't know how to do it otherwise (or am just too lazy today). Seems to be equally difficult with mouse or cursor keys. I also changed the background to make it more tennis-like.... With kind regards, vovchik Attachments:bong-mouse-src.tar.gz (204.06 KB)
|
|
|
Post by alexfish on Sept 1, 2013 20:03:07 GMT 1
Hi @ All GFX G_EDIT demo '32bit Binary' , size @ 51.5 kb This is a preview of What the G_EDIT will look like , This one Has a very much BaCon Theme Purpose of Preview Binary :: 1. test Load file module for G_Edit 2. test scroll and cursor placement as in Insert at Cursor 3. test and show the Line numbers 4. to show @ GFX Scrolled Window IE :: this is not a GTK Scrolled window and nor a GTK Text View Scroll by mouse not Implemented , use the Scroll Bars The demo will look for "bacon.bac" file to load , ensure 'bacon.bac' is in same directory as the binary The Text is not editable , nor will it save. run from terminal to see Results Have Fun Alex Attachments:g-edit.tar.bz2 (49.26 KB)
|
|
|
Post by vovchik on Sept 4, 2013 20:43:39 GMT 1
Dear Alex, These are the sounds for Breakout at the moment.... With kind regards, vovchik Attachments:breakout_wav.tar.gz (160.18 KB)
|
|
|
Post by vovchik on Sept 5, 2013 23:04:47 GMT 1
Dear All, We (Alex and I) have another retro game for you to look at - Breakout - which has pretty decent game play and shows what you can do with pretty modest resrouces. All the graphics are inline svgs, so there are no external files except for sounds in a separate directory (included in the archive). You need libcanberra for sound. There are 24 bricks and you have four chances to break them up. Your "lives" are indicated by a ball that changes colour - and by appropriate info in the status line. There are still some issues with cursor movement using arrow keys, so just use your mouse wheel for now. To restart the game once game play has begun, press 'r'. I think more bells and whistles might be appropriate for the next version, as well as sidespin when the paddle hits the ball. Have fun With kind regards, vovchik Attachments:
breakout_gfx.tar.gz (63.82 KB)
|
|
|
Post by Pjot on Sept 6, 2013 19:34:28 GMT 1
Thanks Alex and vovchik!
Looks nice, compiles and runs, however, two remarks:
(1) I keep getting this error:
Not sure if this hurts or not, graphically the game runs as advertised.
(2) When using keys, it seems the paddle only can go to the extreme right or the extreme left... it doesn't scroll but it only seems to be able to occupy those two positions. Maybe my laptop is too fast?
BR, Peter
|
|
|
Post by vovchik on Sept 6, 2013 21:00:42 GMT 1
Dear Peter, Thanks for the kind words. I think I can explain two things that are giving you problems, one of which is easily solvable. Only in recent libgoo versions is there an "alpha" property for images. The author of goo introduced this property with v. 0.98, if I remember correctly, so try to install v. 1.0 and then the "alpha" will work fine (it's used quite a bit in this game for all sorts of nice things - and also in Bong). As for the keyboard, we are looking into that, and I posted a little warning earlier (first breakout post, I think): I think that we might have to modify the keypress capture routine, but the mouse wheel works fine, as does the lower case 'r' for restart once the ball is in motion. Since most of the timing is done in millisecond increments, I don't think CPU speed here is that critical. I am still looking at sidespin, so I hope to have that before too long. With kind regards, vovchik PS. Here is a link re the alpha property: goo alpha
|
|
|
Post by vovchik on Sept 6, 2013 23:55:39 GMT 1
Dear All, I posted the source for goocanvas 1.0 on 16 Jun 2013: And here is a direct link to the source on the forum: goo canvas 1.0 sourceWith kind regards, vovchik
|
|
|
Post by Pjot on Sept 7, 2013 22:02:55 GMT 1
Thanks vovchik,
Using mouse and the updated goocanvas it all works fine!
BR, Peter
|
|