You are not logged in.

#1 2009-05-02 02:04:48

riklaunum
Beta Tester
Registered: 2009-05-02

Generating maps from tiles

I was looking for a solution in making isometric maps from tiles and didn't found anything simple&working. AFAIK vanthia "map exploration" demo was on mootools forum. Does vanthia uses tiles to make maps live, or the maps are pregenerated from tiles?

...and second - are there any JS scripts out there for generating/using such maps with player character interactions ? smile

Offline

 

#2 2009-05-03 09:03:07

Ricket
Beta Tester
From: North Carolina, USA
Registered: 2008-12-27

Re: Generating maps from tiles

The maps are generated live from tile images. I'm not sure if I'm supposed to link you here, but it's an open directory so anyone can find it, so I will:
http://beta.vanthia.com/new/_tiles/
So that's proof that yes, JavaScript constructs the map on the fly using those tile images and positions them isometrically.

I would highly recommend writing your own, as it will prove most useful rather than trying to take someone else's work and fit it to accomplish your goals. As for exactly how it's done, try reading some of the links under "Tile-Based Games" on this page:
http://www-cs-students.stanford.edu/~am … eprog.html

Offline

 

#3 2009-05-03 19:42:56

riklaunum
Beta Tester
Registered: 2009-05-02

Re: Generating maps from tiles

Thanks for the info. Currenlty I'm polishing some server-side code, and when that's finished I'll look at map making. Maybe I'll use JavaScript and browser based game or if I'm insane that much I'll use something like pygame or PyQt4 (as I use Python) for the game and make it not-browser-based wink

Offline

 

#4 2009-05-04 10:19:00

ollie
Beta Tester
From: New Zealand
Registered: 2009-03-20
Website

Re: Generating maps from tiles

atm i'm going java. i've began learning how to implement standard java code into applets effectively, and i wanna make a good, fast, smooth, realtime 2d (non-iso prob) MMO.

java applet + mmorpg = win smile
unless you purposely kill the game (looks at jagex)


invasionpoint.com
vb6, Java, PHP, HTML & CSS, AS2 & AS3, vb.net

programming . design . creativity

Offline

 

#5 2009-05-04 13:24:20

riklaunum
Beta Tester
Registered: 2009-05-02

Re: Generating maps from tiles

java applets or flash games can has a lot of eye candy and nice responsive UI... I want Python applets tongue Now I'm playing with "crappy" JavaScript to check if something good can be done using tiles and/or full isometric graphics like in Baldurs Gate.

Offline

 

#6 2009-05-05 07:37:01

ollie
Beta Tester
From: New Zealand
Registered: 2009-03-20
Website

Re: Generating maps from tiles

looks cool, a bit like diablo


invasionpoint.com
vb6, Java, PHP, HTML & CSS, AS2 & AS3, vb.net

programming . design . creativity

Offline

 

#7 2009-05-13 15:49:52

riklaunum
Beta Tester
Registered: 2009-05-02

Re: Generating maps from tiles

Well, for now I've decided to focus on small maps with dimetric tiles where you can go from mini map to another minimap (which are parts of a bigger set, like a dungeon smile)

http://images41.fotosik.pl/119/e9fcfa64be2ce6fem.jpg

Maps are described in JSON (separate movable zones, spawn areas, character locations areas, action ares [containers, messages, misc] and so on wink) right now I'm in process of implementing all that JSON logic. There isn't a lot of  JS, currently only AJAX character movement smile

Offline

 

#8 2009-05-20 10:14:28

ollie
Beta Tester
From: New Zealand
Registered: 2009-03-20
Website

Re: Generating maps from tiles

nice work! mine is 100% sockets.. simple big_smile


invasionpoint.com
vb6, Java, PHP, HTML & CSS, AS2 & AS3, vb.net

programming . design . creativity

Offline

 

#9 2009-07-26 22:37:29

coffinboy
Beta Tester
From: Sweden
Registered: 2009-06-24

Re: Generating maps from tiles

ollie wrote:

java applet + mmorpg = win smile

No, applets aren't win. Not concidering where the web is today. wink

Offline

 

#10 2009-07-26 23:00:15

Ricket
Beta Tester
From: North Carolina, USA
Registered: 2008-12-27

Re: Generating maps from tiles

Where is the web today? What does that have to do with Java applets?

Java applets have their place. They are good when you want to run a program in a browser. Flash should not be used for heavyweight applications; it makes good minigames and animated shorts and annoying corporate menubars, and anything that requires vector graphics. But Java is great for whole applications, or anything that Flash can't do. Java is sandboxed, just like ActionScript and JavaScript. But Java can break out of its sandbox if it is signed and has user permission, and that's where you get all the functionality of normal programs, but in the browser. Kinda like ActiveX, without all the evil.

I'm currently learning OpenGL - with Java, using the JOGL library. It's a piece of cake, I get all of the benefits of garbage collection but at almost the speed of C++, and when I choose to do so I can implement it as an applet and have my 3D programs running right in the browser. Or I can implement a one-click start using Java Web Start. Either way is so much more convenient than having the user download a random .exe, run it to install a program, then run my actual application.

Offline

 

#11 2009-07-27 15:21:27

nea
Developer
Registered: 2008-03-24

Re: Generating maps from tiles

Then again, Java was supposed to be the language of the web, and it failed were JavaScript prevailed! smile


Something primal, something strong

Offline

 

#12 2009-07-28 15:54:27

Ricket
Beta Tester
From: North Carolina, USA
Registered: 2008-12-27

Re: Generating maps from tiles

Well, I'm not sure. Java Applets are at least very cool, just not used often. I'm not really sure why, but the common misconception about Java being so slow probably has a great deal to do with it. The history section of the wikipedia article on Java is an interesting read though.

I'm just glad they /did/ fix the speed issues. Because yea, it was slow years ago. If it were still slow, I'd probably be dabbling in C++ right now. Yuck. :-P

Offline

 

#13 2009-07-29 22:56:35

Sandman
Server Admin
Registered: 2008-03-26

Re: Generating maps from tiles

*knock, knock*
Who's there?





















Java...


Respect my authority.

Offline

 

#14 2009-10-09 17:20:32

Raines80
New member
Registered: 2009-10-09

Re: Generating maps from tiles

Javascripts have their place... php has it's place... Adobe Flash  CS4 has it's place......  there isn't a better solution to a problem.. just a different solution.

Offline

 

#15 2009-10-09 22:35:38

Millar
Beta Tester
From: Nottingham, UK
Registered: 2008-04-26
Website

Re: Generating maps from tiles

php's place is straight in the bin. smile


ruby > python

Free Strategy Game (Under Construction)

Offline

 

#16 2010-07-21 08:44:12

Hotrootsoup
Member
Registered: 2010-07-17

Re: Generating maps from tiles

I don't fall under the opinion of others that Java is slow...I've experienced it myself plenty. I have noted Python and Javascript to be VERY smooth (I believe Gmail uses this combo?) so thats what I've decided to program any game/website I make out of. My current plan is CherryPy (Python) for the server, and JavaScript with JQuery and maybe JQuery UI for the client side part.

Offline

 

#17 2010-07-24 02:55:00

iHack
Member
Registered: 2010-06-27

Re: Generating maps from tiles

PHP > Python

Java... the applets are fine but the language is horrible

Just use processing smile

Last edited by iHack (2010-07-24 02:55:24)

Offline

 

#18 2010-07-24 10:57:26

nea
Developer
Registered: 2008-03-24

Re: Generating maps from tiles

iHack wrote:

PHP > Python

A-HAHAHAHAHAHA.

Good one Sir!


Something primal, something strong

Offline

 

#19 2010-07-24 21:17:09

iHack
Member
Registered: 2010-06-27

Re: Generating maps from tiles

nea wrote:

iHack wrote:

PHP > Python

A-HAHAHAHAHAHA.

Good one Sir!

Python's weird tongue
PHP is a lot easier to code in.

Offline

 

#20 2010-07-30 12:11:07

ollie
Beta Tester
From: New Zealand
Registered: 2009-03-20
Website

Re: Generating maps from tiles

iHack wrote:

nea wrote:

iHack wrote:

PHP > Python

A-HAHAHAHAHAHA.

Good one Sir!

Python's weird tongue
PHP is a lot easier to code in.

Agreed


invasionpoint.com
vb6, Java, PHP, HTML & CSS, AS2 & AS3, vb.net

programming . design . creativity

Offline

 

#21 2010-07-30 14:09:18

nea
Developer
Registered: 2008-03-24

Re: Generating maps from tiles

let's see...

Code:

for($i = 0; $i < 5; $i++){

vs

Code:

for i in range(5):

Hmm.....

It can be hard to get used to after working with curly brackets forever, but saying it's harder to code in is blasphemy.


Something primal, something strong

Offline

 

#22 2010-07-30 21:02:30

iHack
Member
Registered: 2010-06-27

Re: Generating maps from tiles

nea wrote:

let's see...

Code:

for($i = 0; $i < 5; $i++){

vs

Code:

for i in range(5):

Hmm.....

It can be hard to get used to after working with curly brackets forever, but saying it's harder to code in is blasphemy.

There's people who love Java too...

lol

Offline

 

#23 2010-07-31 16:53:21

Ricket
Beta Tester
From: North Carolina, USA
Registered: 2008-12-27

Re: Generating maps from tiles

You start in PHP or Python. You write a bunch of messy tangled procedural code. You leave PHP because you realize its object-oriented features are a kludge and it'll only ever be messy, but you look back often because all the big open-source web projects use PHP (WordPress, Drupal, phpBB, vBulletin, Mediawiki, ...). Python you continue to do the occasional scripting in but you might realize it's not a "serious" language and move on, or you might continue to do amazing and really cool things in it.

Then you get a job, and you work with ASP.NET or maybe JSP. You learn a whole different paradigm, and you treat your webpages as part of web applications rather than just separate scripts in a messy system. Your code is pretty clean, you're working on a team, and life is pretty good. But something just feels wrong about treating web development like application development. After all, they're webpages; a lot of behind-the-scenes generation is going on to trick you and your users into thinking it's a smooth experience.


Then you keep going with your job because it's a job, and you learn to like whatever you boss says you're going to like because nothing's perfect. The end?

Offline

 

#24 2010-07-31 21:22:51

Marzipan
Beta Tester
From: Kobold Cave
Registered: 2009-07-06

Re: Generating maps from tiles

Ricket wrote:

You start in PHP or Python. You write a bunch of messy tangled procedural code. You leave PHP because you realize its object-oriented features are a kludge and it'll only ever be messy, but you look back often because all the big open-source web projects use PHP (WordPress, Drupal, phpBB, vBulletin, Mediawiki, ...). Python you continue to do the occasional scripting in but you might realize it's not a "serious" language and move on, or you might continue to do amazing and really cool things in it.

Then you get a job, and you work with ASP.NET or maybe JSP. You learn a whole different paradigm, and you treat your webpages as part of web applications rather than just separate scripts in a messy system. Your code is pretty clean, you're working on a team, and life is pretty good. But something just feels wrong about treating web development like application development. After all, they're webpages; a lot of behind-the-scenes generation is going on to trick you and your users into thinking it's a smooth experience.


Then you keep going with your job because it's a job, and you learn to like whatever you boss says you're going to like because nothing's perfect. The end?

This is the end you know lady the plans we had went all wrong...

sounds depressing.


Marzipan

Why be normal when you can be yourself?
We dance because we can not fly

Offline

 

#25 2010-08-02 22:26:33

nea
Developer
Registered: 2008-03-24

Re: Generating maps from tiles

Or you never get into corporate bullshit and are free to do whatever you like.

Being a heretic has it's positive sides smile.


Something primal, something strong

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson