2d browser web engine
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: 2d browser web engine
after much debate with myself on how I should do encounters I have decided to go the extra mile and make them real creatures walking around on the map. If you touch them you go into a tactical battle much like the old final fantasy's. I will post more info when(if) I get this working. 
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: 2d browser web engine
Tested on IE 7...works there too! SWEET!
And cannot wait to see how the creatures moving on screen go! Will be a neat feature!
And cannot wait to see how the creatures moving on screen go! Will be a neat feature!
Re: 2d browser web engine
Tested it and forgot the links didn't work yet 
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: 2d browser web engine
If this was released as an engine, I think there would be a lot of interest in it. 
The indelible lord of tl;dr
Re: 2d browser web engine
Those PNGs are a pain in the ass. You should make a preload to load the char, it's very simple.
Off the top of my head, that should work.
Another anoying thing is that the page reloads when you go into a new area. But I'm sure you already knew that
. Some ajax will fix that.
Code: Select all
<script type="text/javascript">
var imageArray = new Array();
imageArray[] = "image1.png";
imageArray[] = "image2.png";
for( var url in imageArray )
{
image = new Image();
image.src = url;
}
</script>
Another anoying thing is that the page reloads when you go into a new area. But I'm sure you already knew that
Fighting for peace is declaring war on war. If you want peace be peaceful.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: 2d browser web engine
I am currently using ajax to save all the characters positioning but reloading the page upon entering a new map helps fight cheating. It assures a server side action and reloads data.
Right now nothing is optimized so yeah its a little slow but thanks for the suggestions, I will give it a try when I start optimizing it.
Right now nothing is optimized so yeah its a little slow but thanks for the suggestions, I will give it a try when I start optimizing it.
Re: 2d browser web engine
You could assure a server side action using POST with ajax aswell.hallsofvallhalla wrote:I am currently using ajax to save all the characters positioning but reloading the page upon entering a new map helps fight cheating. It assures a server side action and reloads data.
Right now nothing is optimized so yeah its a little slow but thanks for the suggestions, I will give it a try when I start optimizing it.
Fighting for peace is declaring war on war. If you want peace be peaceful.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: 2d browser web engine
no because you still need a client side update using javascript to the page. I would have to use Javascript for all my data output. The only truly secure way to reload the page is using PHP and leaving the output through PHP. Once the code is optimized the page refresh won't be so noticeable.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: 2d browser web engine
I have decided to turn this into a game creation engine. A product where you can make your own games with it with tools and such.
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: 2d browser web engine
Very nice!!hallsofvallhalla wrote:I have decided to turn this into a game creation engine. A product where you can make your own games with it with tools and such.

