TiledMapBuilder

851 views
Skip to first unread message

Tomáš Jurman

unread,
Feb 7, 2013, 3:11:05 PM2/7/13
to craf...@googlegroups.com
Hi guys

I release component for building tiled map.
I will be grateful for comments.

Tomáš

Christopher Johnson

unread,
Feb 14, 2013, 3:54:16 PM2/14/13
to craf...@googlegroups.com
Hello, Tomáš! I've sent you an email as well, but then I stumbled upon this page and felt it might be better if it were discussed openly for those who may come after me. Does your TiledMapBuilder currently support isometric views?

Thanks!

Tomáš Jurman

unread,
Feb 15, 2013, 1:28:07 AM2/15/13
to craf...@googlegroups.com
Dear Christopher Johnson

Does your TiledMapBuilder currently support isometric views?
I am sorry. No.

When I create TiledMapBuilder I did not think about it. 
I am going to solve this problem this weekend. After that I can send you a message.

Thanks for your message.

Regards
Tomas

--
You received this message because you are subscribed to the Google Groups "Crafty" group.
To unsubscribe from this group and stop receiving emails from it, send an email to craftyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
    mm    
 /^(  )^\   Tomáš Jurman
 \,(..),/   mob. 728 435 724  
   V~~V  

Tomáš Jurman

unread,
Feb 17, 2013, 6:33:41 AM2/17/13
to craf...@googlegroups.com
Hi

I added support for isometric diamond and isometric staggered map to TiledMapBuilder.

Tomas


On Friday, February 15, 2013 7:28:07 AM UTC+1, Tomáš Jurman wrote:
Dear Christopher Johnson

Does your TiledMapBuilder currently support isometric views?
I am sorry. No.

When I create TiledMapBuilder I did not think about it. 
I am going to solve this problem this weekend. After that I can send you a message.

Thanks for your message.

Regards
Tomas

On Thu, Feb 14, 2013 at 9:54 PM, Christopher Johnson <keito...@gmail.com> wrote:
Hello, Tomáš! I've sent you an email as well, but then I stumbled upon this page and felt it might be better if it were discussed openly for those who may come after me. Does your TiledMapBuilder currently support isometric views?

Thanks!


On Thursday, February 7, 2013 2:11:05 PM UTC-6, Tomáš Jurman wrote:
Hi guys

I release component for building tiled map.
I will be grateful for comments.

Tomáš

--
You received this message because you are subscribed to the Google Groups "Crafty" group.
To unsubscribe from this group and stop receiving emails from it, send an email to craftyjs+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
  
   V~~V  

Tomáš Jurman

unread,
Feb 19, 2013, 2:20:31 PM2/19/13
to craf...@googlegroups.com
Hi

I added two new demos to TiledMapBuilder examples.




Source of examples are there too.

Tomas

MIhail Ilinov

unread,
Mar 2, 2013, 7:37:43 AM3/2/13
to craf...@googlegroups.com
Wanted to say that demos looks pretty neat and GJ :)

One thing that is more of a Crafty problem is that with so many entities viewport scroll seams to work badly and
for some more action oriented platformer or other fast paced game this goes to unplayable...

Still i hope someone is going to fix it generally

Tomáš Jurman

unread,
Mar 2, 2013, 12:01:23 PM3/2/13
to craf...@googlegroups.com
Hi

maybe it help you:
http://www.lynnamerrill.com/craftyjs-map-demo.html

and in Crafty groups there were any big and nice hexagonal isometric demo, but I can not find it.
Maybe somebody get a link.

TiledMapBuilder create Entity for every tile. You can not create tile for all tiles. But you can create tile only for current viewport = dynamically.

Hint: Do you know for example Fallout? Do you think that they create tile for all world?

Tomas

Tomáš Jurman

unread,
Mar 5, 2013, 4:14:54 AM3/5/13
to craf...@googlegroups.com
Correction of my bad English:

"You can not create tile for all tiles. But you can create tile only for current viewport = dynamically."

Correctly:
You can not create tiles for all your game world.


Sorry
Tomas

Tomáš Jurman

unread,
Mar 10, 2013, 6:33:11 AM3/10/13
to craf...@googlegroups.com
Hi

newly added to TiledMapBuilder:

Tomas

Alex

unread,
Mar 31, 2013, 7:21:14 AM3/31/13
to craf...@googlegroups.com
TiledMapBuilder looks and works great :)
Is there a chance it can be used with https://github.com/lukebitts/A_star-for-Crafty for automatic pathfinding (or pathfinding can be implemented in some other way)? For example, if a monster comes to the map, it can avoid obstacles, or, we can click on the map to move a player to mouse position, avoiding obstacles?

Thanks for great work :)

Tomáš Jurman

unread,
Mar 31, 2013, 11:32:17 AM3/31/13
to craf...@googlegroups.com
Hi Alex

I mean that simple tile-based collision it is not difficult to implement and you can find a lot of interesting articles about it.

Please search for example on Google:
  • tile based collision
  • maze game collision
Here is my small hint.
Regards
Tomas



--
You received this message because you are subscribed to a topic in the Google Groups "Crafty" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/craftyjs/63eQ0SRw40I/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to craftyjs+u...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rubenwardy

unread,
Apr 5, 2013, 2:45:14 PM4/5/13
to craf...@googlegroups.com

Rubenwardy

unread,
Apr 5, 2013, 3:02:38 PM4/5/13
to craf...@googlegroups.com
Nevermind, fixed.

What is the license of this, and the "Terrain_tileset.png" image?

Tomáš Jurman

unread,
Apr 5, 2013, 3:28:36 PM4/5/13
to craf...@googlegroups.com


On Fri, Apr 5, 2013 at 9:02 PM, Rubenwardy <anja...@gmail.com> wrote:
Nevermind, fixed.

What is the license of this, and the "Terrain_tileset.png" image?

--
You received this message because you are subscribed to a topic in the Google Groups "Crafty" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/craftyjs/63eQ0SRw40I/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to craftyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rubenwardy

unread,
Apr 8, 2013, 12:35:59 PM4/8/13
to craf...@googlegroups.com
I want to add buildings on to this ingame that the user can add, edit and delete.

How can I do this?

Should I use a layer on this, or should I make my own frame work for it? (ie use other sprites)

Rubenwardy

unread,
Apr 8, 2013, 1:19:44 PM4/8/13
to craf...@googlegroups.com
I want to do something like:

out_tile = tiled_map.getTile( x, y, "sdf" );

if (out_tile.tile_type == 11){
return "grass"
}

Without having to loop through out_tile.__c.Tile<id>

Rubenwardy

unread,
Apr 8, 2013, 1:40:14 PM4/8/13
to craf...@googlegroups.com
Worked it out for my self.

Replaced var mock, in createMockEntity, in create_mocks_module.js with

var mock = {
            head:"2D,Tile," + this._renderMethod + ",Tile" + layer.data[dataIndex] + "," + layer.name,
            tile_id: layer.data[dataIndex]
        };

and then added

var entity = Crafty.e( mockEntity.head ).attr({ x:mockEntity.x, y:mockEntity.y });
                    entity.tile_id = mockEntity.tile_id;

to createEntitiesFromMock in the main tilemapbuilder.js
Message has been deleted

Rubenwardy

unread,
Apr 8, 2013, 2:17:02 PM4/8/13
to craf...@googlegroups.com
Now, how do I add and delete tiles from specific layers?

Tomáš Jurman

unread,
Apr 9, 2013, 2:13:13 AM4/9/13
to craf...@googlegroups.com
Hi Ruben

every tile is Crafty Entity.


In TiledMapBuilder are all entities in layers {JavaScript Array}

In TiledMapBuilder you can acces for instance to:
var source = TiledMapBuilder.getSource();
var entities = TiledMapBuilder.getEntitiesInLayer( layerName );
var tile = TiledMapBuilder.getTile( row, column, layerName );
Regards
Tomas

Israel Gonçalves

unread,
Sep 2, 2013, 10:13:31 PM9/2/13
to craf...@googlegroups.com
Hello, Tomáš!
TiledMapBuilder works very well, plus how do I get the number of row and column for each entity to use the pathfinder? it is hard for me

Nguyen Micheal

unread,
Sep 5, 2013, 3:47:46 AM9/5/13
to craf...@googlegroups.com
Hi,

I'm using your TiledMap component and also noticed a post talking about the slowness due to some kind of "duplicated draw" in canvas?
Is it fixed, because the current tiled is quite slow also?

I also have question about PathFinding. Is it any plan that the Builder also open hooks, like onLoad in its initlization phase, to add more addition infos for PathFinding and spatial?

Of course I can have a pull request but just ask if any the authors had plan or ideas?

Vào 03:11:05 UTC+7 Thứ sáu, ngày 08 tháng hai năm 2013, Tomáš Jurman đã viết:

Rubenwardy

unread,
Sep 11, 2013, 5:11:19 AM9/11/13
to craf...@googlegroups.com
I want my player to go to a certain position, but it does not work, and the player ends up half way in the middle of nowhere at the top left.
The map object is set to attr({x:0,y:0}), and the map is 40X20.
The scale seems to be fine (moving a tile in a direction moves the right distance) but it is in the wrong position

update_position: function(){
console.log("Moving player to "+this.tile.x+","+this.tile.y);
this.attr({
x:((this.tile.y - this.tile.x) * 20),
y:((this.tile.y + this.tile.x) * 10)
});
console.log("Result "+this.x+","+this.y);
}

Rubenwardy

unread,
Oct 16, 2013, 2:21:07 PM10/16/13
to craf...@googlegroups.com
Thanks for your quick reply.

Maybe it would be easier for you if I just asked how to get a position from a tile x/y.

Rubenwardy

unread,
Dec 18, 2013, 8:09:03 AM12/18/13
to craf...@googlegroups.com
Can you at least give an indication that you have read the post?

starwed

unread,
Dec 18, 2013, 1:21:46 PM12/18/13
to craf...@googlegroups.com
Probably they haven't. 

I've never used this particular component, but I'd suggest starting by looking at the source code for it.
Message has been deleted

Sirzechs

unread,
Sep 17, 2014, 3:29:00 AM9/17/14
to craf...@googlegroups.com
Hey guys

Is there any way i can bind the View (createView) to the viewport of the player Entity?

Thanks
Reply all
Reply to author
Forward
0 new messages