Author Topic: Upcoming SGDK2 Outputs HTML5  (Read 10805 times)

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2736
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Upcoming SGDK2 Outputs HTML5
« on: 2011-10-23, 04:09:11 PM »
Take a look at what the next version of SGDK2 will do for you: http://sgdk2.enigmadream.com/ben/IsoSample.html

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #1 on: 2011-10-23, 06:26:02 PM »
I can see a big potential for this, since I can't think of any HTML5 editors at the moment. Nice job!
Looking to the skies.....

Tony M

  • Fanatic
  • ***
  • Posts: 395
  • Games Developed: 5
    • MSN Messenger - tonyxna@live.com
    • View Profile
    • Who Cares? Arts
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #2 on: 2011-10-24, 11:18:39 PM »
Looks awesome.
~ Current Projects ~
Websites

Like the Facebook page: https://www.facebook.com/WhoCaresArts

Vincent

  • SGDK2 Addict
  • Expert
  • Fanatic
  • *****
  • Posts: 608
  • Legacy of Kain: Revival is completed!!!
    • View Profile
    • Chivalrous Games
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #3 on: 2011-10-26, 05:47:31 AM »
Whoa!  That's impressive!  When did you start working on that secret project? :)
Legacy of Kain: Revival completed!
http://lokrevival.webs.com

See also my company website:
http://chivalrousgames.com

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2736
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #4 on: 2011-10-26, 01:39:49 PM »
I think I started the real work last Saturday and finished Sunday.  Programming these days is so much easier than it used to be!

BTW, Vincent, I got your whole LOK Revival project to output a page with all its maps visible and scrollable!  There are dozens of buttons (which the generator puts on the page) to switch between maps, and they all work (after a few additional adjustments to handle offsets correctly).  The file size is 32 MB.

Now I think I need to add support for the sprites.  Not the rules, just drawing the sprites in their designed positions and states.

Vincent

  • SGDK2 Addict
  • Expert
  • Fanatic
  • *****
  • Posts: 608
  • Legacy of Kain: Revival is completed!!!
    • View Profile
    • Chivalrous Games
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #5 on: 2011-10-26, 01:42:23 PM »
 :o Whoa!  Can you upload the page somewhere so I can see this?  If LoK:Revival worked in HTML5, that would be incredible!!!
Legacy of Kain: Revival completed!
http://lokrevival.webs.com

See also my company website:
http://chivalrousgames.com

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2736
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #6 on: 2011-10-26, 02:48:37 PM »
It's 16 MB 7-zipped and 32 MB un-zipped.  Would you rather see it posted in zipped form or unzipped?
Keep in mind, this is just the maps and no sprites at this point.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2736
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #7 on: 2011-10-26, 03:07:44 PM »
I posted the unzipped version at http://sgdk2.enigmadream.com/ben/LokRevivalHtml5.html.
You'll probably want to save that instead of navigating to it.
« Last Edit: 2011-10-26, 03:10:48 PM by bluemonkmn »

Vincent

  • SGDK2 Addict
  • Expert
  • Fanatic
  • *****
  • Posts: 608
  • Legacy of Kain: Revival is completed!!!
    • View Profile
    • Chivalrous Games
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #8 on: 2011-10-26, 08:08:10 PM »
That's absolutely amazing!  All maps and all layers are there. :)  At 32 MB, is everything contained?  (even if the sprites don't show up, are they included?)
Legacy of Kain: Revival completed!
http://lokrevival.webs.com

See also my company website:
http://chivalrousgames.com

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2736
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #9 on: 2011-10-27, 06:59:48 AM »
The graphic sheet images for the sprites are there (which is probably most of the size), but the data structures for representing the sprite states are not yet.

Vincent

  • SGDK2 Addict
  • Expert
  • Fanatic
  • *****
  • Posts: 608
  • Legacy of Kain: Revival is completed!!!
    • View Profile
    • Chivalrous Games
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #10 on: 2011-10-27, 07:05:22 AM »
Can't wait to see the next steps :)
Legacy of Kain: Revival completed!
http://lokrevival.webs.com

See also my company website:
http://chivalrousgames.com

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2736
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #11 on: 2011-10-29, 06:06:28 PM »
I got sprite definitions into the mix, and now sprites are drawing.  No rules, but you could probably go and edit the script to add your own rules in JavaScript form, and you might be able to make a simplistic game with complex sprites and tiles.  I uploaded an updated (zipped this time) version of the LOK Revival HTML to http://sgdk2.enigmadream.com/ben/LokRevivalHtml5.7z.  Oh, the sprites are always drawing on top of all the tiles on the layer right now.  I didn't do any work to make the sprites draw behind or between the tiles when appropriate.

I don't remember if it was slow before, but I'm noticing now that drawing/scrolling around the maps is slow, even though other projects with bigger views draw faster.  I'm not sure why.  But I'm done fiddling for today.  Maybe I'll figure it out later.  If anybody knows, you could save me some time.  I don't know if there are tools for easily checking performance issues in JavaScript.

Vincent

  • SGDK2 Addict
  • Expert
  • Fanatic
  • *****
  • Posts: 608
  • Legacy of Kain: Revival is completed!!!
    • View Profile
    • Chivalrous Games
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #12 on: 2011-10-31, 06:02:21 AM »
Hum, I don't see the problem with scrolling.  It works just as fine with this version as it did before.  I load the file locally with Firefox 7.0.1.
Legacy of Kain: Revival completed!
http://lokrevival.webs.com

See also my company website:
http://chivalrousgames.com

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2736
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #13 on: 2011-10-31, 01:20:01 PM »
How fast does it scroll?  For me, on some of the larger maps like the cave map near the beginning of the list, I think it was only updatng once or twice per second.  Is it faster for you?

Vincent

  • SGDK2 Addict
  • Expert
  • Fanatic
  • *****
  • Posts: 608
  • Legacy of Kain: Revival is completed!!!
    • View Profile
    • Chivalrous Games
    • Email
Re: Upcoming SGDK2 Outputs HTML5
« Reply #14 on: 2011-10-31, 06:48:27 PM »
I tried all the first maps (from ELBoss to ELPillarsGood, then skipped the Endings maps that don't show much since there is the white screen sprite, then tested HDBoss to HDLifeUp), so I guess I must have seen the map you tested.  It works very well for me, the display is smooth and the scrolling too.  The map follows the mouse almost in realtime, it's not easy to see the delay.  Unless I'm not scrolling the way you are?  I simply click with the mouse in the map and then drag around.  But the memory usage is violent, around 700 megs for Firefox to manage SGDK2 forum, Hotmail and LokRevival.htm at the same time.  Is that helping?
Legacy of Kain: Revival completed!
http://lokrevival.webs.com

See also my company website:
http://chivalrousgames.com