ShabbyCat's Recent Forum Activity

  • Hi Guy's,

    The PoC I did in python ( Previous post ) but it wasn't very practical. My next attempt was to write a C2 wrapper in C# using webkit (via OpenWebkitSharp)that would let your C2 projects look and behave a bit more like exe's.

    Essentially it's like having a webbrowser with no distracting controls on it to display your files on the desktop, in a way that makes it look like an ordinary application.

    <img src="http://dl.dropbox.com/u/41800350/desktop_sblaster.JPG" border="0">

    I tried using the inbuilt browser object in C# but it gave an error saying my browser could not render HTML5, I think it's cause I don't have IE 9 yet, so I'll need to do more testing.

    To get it going you just need to unpack the zip and edit the settings.ini file (even if you are just testing the copy of Space Blaster included).

    I've bundled it all up along with the source code and the HTML5 of Space Blaster as C2WebkitWrapper.zip (40 mb). All my test games worked OK but they arn't as intensive as something like Space Blaster so it was a good test. On my laptop I do get some lag here and their playing Space Blaster, but all in all the controls and sound are good. I've included a copy of space blaster in the package so you can see how it hangs together.

    I've also included a Settings.ini configuration file. This let's you customize a few aspects of the Wrapper (I have to think of a better name). Like:

    Name - Let's you customize what's written in the title bar.

    Url - This is the location of you C2 exported game files, this can be on the local disk or on the internet. Local locations start with file:// instead of http://

    Screen size: Adjusts the size of the exe's screen to suit your game.

    Thoughts:

    There's embedded versions of Mozilla's Gecko which I could try.

    Also OpenWebkitSharp can use nightly releases of webkit that would probably run a lot quicker than the default Cairo 0.5. Also there's Awesomium (awesomium.com) that let's you embed chrome but it has a licence and it might get messy.

    If I do get the embeded IE working it's not a great solution as you would have to ensure people are running something like IE 9, I'll post the results of that one as it's pretty easy to do.

    In my mind the best mix would be something like webkit, C++ and GTK.

    You could then compile for windows and Linux.

  • First of all I'd like to point out that I don't know what I am doing.

    This is really just a PoC (proof of concept).

    I didn't try compiling the python to exe.

    I was playing around with Python and Webkit and was ablt to render a Construct2 game as a program independent of the browser, so it looks more like a regular program.

    Here's a pic:

    <img src="http://dl.dropbox.com/u/11384284/desktop.JPG" border="0" />

    I left the "Made with Construct" bit to show what was happening.

    I used a python wrapper for webkit but your could use C++ or C#.

    On a side note another way (haven't tried it yet) is just to code up a form (program screen) with an embeded browser using C# or VB.Net, which opens index.html in the same folder. You could even put an decryption routine in the program so your html files can stay encrypted on disk.

    If anyone is interested here's the python code from the PoC (you also need python, pyGTK and pyWebkitGTK installed). Should work on windows or linux.

    import gtk

    import webkit

    win = gtk.Window()

    bro = webkit.WebView()

    bro.open("C:\Documents and Settings\Frankie\Desktop\8bit Mage\index.html")

    win.add(bro)

    win.show_all()

    gtk.main()

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Woohoo I got 700, it's fun, I like it

  • Has anyone gotten sound working correctly via this method on Android?

  • I love it, good work

    Hotspots and audio for me.

  • So I've been experimenting publish apps to Android via Phonegap:

    scirra.com/forum/experiment-running-a-game-on-an-android_topic43897.html

    But I have found one issue, if I publish a game via Phonegap I get no sound coming from the game on my android app.

    ANyone else have the same issue or a fix?

  • Looks promising.

    I like the music.

    You culd probably replace the visual cues like reloading with a sound.

    Or change the ammo count to reloading to keep it out of the way.

    I think the zombies should moan, so when you get closer to a group you "hear more"

    You could make the zombies "hear" so the louder the bigger the waepon the more they are attracted to the sound, would give a good reason to use smaller pistols or silenced weapons near large groups.

    But all in all I think it's a great project.

  • I really like the background in R.E.D.D.I.T, the plasma effect looks cool.

  • Did you use another layer in inkscape to trace the exsisting graphics?

    Or was it freehand?

  • I agree it looks better, do you save the svg as a BMP or can Construct use SVG's?

    I was having a play with inkscape today, still going through the tutes. It's a bit different to a normal graphic's program but when I get the hang of it I'll update the graphics.

    Have you been using construct for long? Made any games?

  • That's cool.

    I haven't tried adding the Scale bahaviour, but I have a player ship and the turret going.

    .cap

    Guess I'll work on the bullets and removing those walls (like in your example).

ShabbyCat's avatar

ShabbyCat

Member since 7 Aug, 2011

None one is following ShabbyCat yet!

Trophy Case

  • 13-Year Club

Progress

13/44
How to earn trophies