Re: ideas for grid scanning system?

2016-01-01 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: ideas for grid scanning system? Oops, made a mistake in my example. Should have but in a way to keep track of previously scanned tiles, so:def gridcheck(): # based on an implementation by Eric S. Raymond x = 5 y = 5 tile_id = grid[y][x] test = grid

Re: ideas for grid scanning system?

2016-01-01 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: ideas for grid scanning system? Oops, made a mistake in my example. Should have put in a way to keep track of previously scanned tiles, so:def gridcheck(): # based on an implementation by Eric S. Raymond x = 5 y = 5 tile_id = grid[y][x] test = grid

ideas for grid scanning system?

2016-01-01 Thread AudioGames . net Forum — Developers room : gamedude via Audiogames-reflector
ideas for grid scanning system? So, I'm sort of stumped on this one. Imagine you have a grid. Any particular grid will do. It could be a 3 by 3, a 7 by 7, or a 10 by 10. I recommend it being quite a large sized board. Anyways, you have a particular point of focus on this board. Let's say

Re: ideas for grid scanning system?

2016-01-01 Thread AudioGames . net Forum — Developers room : gamedude via Audiogames-reflector
Re: ideas for grid scanning system? So, anyone want to take a look at this? I've attempted to implament one of the flood fills found on the helpful Wikipedia page, but I'm still not getting the right results. I have a link to a simple example below:https://dl.dropboxusercontent.com/u/561

Re: ideas for grid scanning system?

2016-01-01 Thread AudioGames . net Forum — Developers room : gamedude via Audiogames-reflector
Re: ideas for grid scanning system? Well, I completely redesigned how I want to go about this situation. I updated the link above for anyone who wants to take a look. It still doesn't work, but it looks like it could turn out to be a lot less time consuming... URL: http

Re: ideas for grid scanning system?

2016-01-01 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: ideas for grid scanning system? Oops, made a mistake in my example. Should have put in a way to keep track of previously scanned tiles, so:def gridcheck(): # based on an implementation by Eric S. Raymond x = 5 y = 5 tile_id = grid[y][x] test = grid

Re: ideas for grid scanning system?

2016-01-01 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: ideas for grid scanning system? Oops, made a mistake in my example. Should have but in a way to keep track of previously scanned tiles, so:def gridcheck(): # based on an implementation by Eric S. Raymond x = 5 y = 5 tile_id = grid[y][x] test = grid

Re: ideas for grid scanning system?

2016-01-01 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: ideas for grid scanning system? Oops, made a mistake in my example. Should have but in a way to keep track of previously scanned tiles, so:def gridcheck(): # based on an implementation by Eric S. Raymond x = 5 y = 5 tile_id = grid[y][x] test = grid

Re: ideas for grid scanning system?

2015-12-31 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: ideas for grid scanning system? What your looking for is similar to a Flood Fill Algorithm, which coincidentally i've been working on recently for a project. So here's an example in python:def gridcheck(self, grid, start_x, start_y): # based on an implementation by Eric S. Raymond

Re: ideas for grid scanning system?

2015-12-31 Thread AudioGames . net Forum — Developers room : gamedude via Audiogames-reflector
Re: ideas for grid scanning system? So, anyone want to take a look at this? I've attempted to implament one of the flood fills found on the helpful Wikipedia page, but I'm still not getting the right results. I have a link to a simple example below:https://dl.dropboxusercontent.com/u/561

Re: ideas for grid scanning system?

2015-12-31 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: ideas for grid scanning system? I was kinda assuming you'd need to use recursion. Actually, I remember doing something like--APRONE! Isn't this kinda like how Goblins work in Castaways?Umm. I'm just going to think with my fingers for a minute.def fill(base, x, y, flags=None

ideas for grid scanning system?

2015-12-30 Thread AudioGames . net Forum — Developers room : gamedude via Audiogames-reflector
ideas for grid scanning system? So, I'm sort of stumped on this one. Imagine you have a grid. Any particular grid will do. It could be a 3 by 3, a 7 by 7, or a 10 by 10. I recommend it being quite a large sized board. Anyways, you have a particular point of focus on this board. Let's say

Re: ideas for grid scanning system?

2015-12-30 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector
Re: ideas for grid scanning system? are you asking how to identify connecting coords after supplying those coords? Or are you asking to search for a specific id in a coord system and then identify all of the connecting coords with the same id URL: http://forum.audiogames.net/viewtopic.php

Re: ideas for grid scanning system?

2015-12-30 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector
Re: ideas for grid scanning system? Well here I'll try and write something up in suto code cause I'll be typing fast and I am sure I'll mess up the syntax or something along the waygim a sec URL: http://forum.audiogames.net/viewtopic.php?pid=244799#p244799

Re: ideas for grid scanning system?

2015-12-30 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector
Re: ideas for grid scanning system? Having a hard time concentrating enough to fully flesh out this idea, but basicly you're wanting to create an alternative forloop manually. Here's what I have so far, let me know if it helps or not. idk. Assuming your grid is held in a 2d arrayint

Re: ideas for grid scanning system?

2015-12-30 Thread AudioGames . net Forum — Developers room : gamedude via Audiogames-reflector
Re: ideas for grid scanning system? Starting from a coordinate, i'm looking for a way to identify all of the coordinates that are connecting to it that have the same id. Each coordinate in the grid is assigned an id. Some of them could be the same. I'm looking for a way to identify

Re: ideas for grid scanning system?

2015-12-30 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: ideas for grid scanning system? What your looking for is similar to a Flood Fill Algorithm, which coincidentally i've been working on recently for a project. So here's an example in python:def gridcheck(self, grid, start_x, start_y): # based on an implementation by Eric S. Raymond