1
Programming / Re: Cookie I/O
« on: September 28, 2012, 02:10:22 AM »
You might be able to compile it all to JavaScript with GWT or something.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
As for the walls, I had to make every wall adjacent to a "lit" floor space also be considered lit, and not actually cast light on the walls (which makes sense if you think about it: the wall is taking up the whole tile, and no light should be actually "entering" the tile, since it's all full of opaque wall). Even without the lighting issues you are talking about, the player's field of view looked really ugly without doing it that way. I ended up going back through the set of visible cells and adding all of the opaque cells adjacent to visible cells to the set of results, rather than trying to write it into the shadowcasting algorithm.
I do something very similar to what Leaf describes. A solid tile is lit (or not) depending on the light values of its 1 or 2 neighbors in the direction of the viewer. It works for me - good luck.
Just get it working with public domain and change it later to custom tiles in an update if you want to.
can Python run on iOS devices (iPad/iPhone)?
Finland is the second poorest country in the world after Poland so there is less chance for people to become athletes.