Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Greenhouse

Member Since 14 Apr 2013
Offline Last Active Mar 31 2014 12:24 AM

Posts I've Made

In Topic: Need an advice for a pathfinding algorithm to fit best

10 February 2014 - 12:43 AM

If you want all connected paths from a start point you want the flood fill algorithm http://en.wikipedia.org/wiki/Flood_fill

 

Thanks a lot. I'll check this algorithm, looks like it's what I'm looking for.

 

 

Sounds like you want a flood fill algorithm that works across diagonals.

 

Yes, I need it to work in 8 directions.


In Topic: Need an advice for a pathfinding algorithm to fit best

10 February 2014 - 12:42 AM

double post. 


In Topic: Have an idea for board game but don't know to implement it. Need help!

22 April 2013 - 02:01 AM

You can paint anything on tiles, it is like different layer.

Seems like this can solve a problem smile.png

 

Layer1(bottom): Will hold a tiles board, that is basically will serve as a background, like so:  https://dl.dropboxusercontent.com/u/8655042/grid.bmp

but I still need to indicate which tile the player's finger on, like so: https://dl.dropboxusercontent.com/u/8655042/grid_touch_down_at_cell_1-1.bmp

so, to solve this I need a tiles board where each tile will have a touch event handler?

Layer2(top): Will be used for drawings on top of a tile board (layer1), like so: https://dl.dropboxusercontent.com/u/8655042/grid_base.bmp

 

Am I correct? ph34r.png


In Topic: Have an idea for board game but don't know to implement it. Need help!

20 April 2013 - 09:56 AM

Bogdanas, I also think that js is optimal for that kind of games (and not only), but it's not my cup of tea :(

 

What about cocos2d-x? I think it should be ok too? :)


In Topic: Have an idea for board game but don't know to implement it. Need help!

17 April 2013 - 07:10 AM

Or maybe instead of drawing the board line by line I should use tiles composition instead?

And each tile will have a touch event handler?

But then how can I paint on them?

 

unsure.png


PARTNERS