Page 3 of 4
Re: 2d browser web engine
Posted: Wed Jan 20, 2010 10:36 pm
by hallsofvallhalla
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.

Re: 2d browser web engine
Posted: Wed Jan 20, 2010 10:39 pm
by SpiritWebb
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!

Re: 2d browser web engine
Posted: Thu Jan 21, 2010 3:45 am
by ZeroComp
Tested it and forgot the links didn't work yet

Re: 2d browser web engine
Posted: Thu Jan 21, 2010 4:03 am
by Jackolantern
If this was released as an engine, I think there would be a
lot of interest in it.

Re: 2d browser web engine
Posted: Thu Jan 21, 2010 11:18 am
by Chris
Those PNGs are a pain in the ass. You should make a preload to load the char, it's very simple.
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>
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.
Re: 2d browser web engine
Posted: Thu Jan 21, 2010 2:41 pm
by hallsofvallhalla
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.
Re: 2d browser web engine
Posted: Thu Jan 21, 2010 10:19 pm
by Chris
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.
You could assure a server side action using POST with ajax aswell.
Re: 2d browser web engine
Posted: Thu Jan 21, 2010 11:04 pm
by hallsofvallhalla
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.
Re: 2d browser web engine
Posted: Fri Jan 22, 2010 9:05 pm
by hallsofvallhalla
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.
Re: 2d browser web engine
Posted: Fri Jan 22, 2010 9:26 pm
by SpiritWebb
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.
Very nice!!
