| bio | website | blog.tankorsmash.com |
|---|---|---|
| location | Astoria | |
| age | 93 | |
| visits | member for | 1 year, 1 month |
| seen | Feb 14 at 20:32 | |
| stats | profile views | 3 |
I'm a new hobbyist programmer, starting with Python. I run a blog at blog.tankorsmash.com which chronicles my struggles with Python, C# and now Javascript/jQuery. It's always a good time.
I also tweet a lot at @tankorsmash. I'm always looking to meet new people, so make sure to say hi!
|
Dec 18 |
awarded | Autobiographer |
|
Aug 31 |
awarded | Supporter |
|
May 9 |
awarded | Scholar |
|
May 9 |
accepted | How to detect whether or not a tile is occupied? |
|
May 9 |
comment |
How to detect whether or not a tile is occupied? Alright, so then the 2D array is definitely the consensus. Thank you for the the clarification as well as the detailed answer! |
|
May 9 |
revised |
How to detect whether or not a tile is occupied? added 205 characters in body |
|
May 8 |
awarded | Student |
|
May 8 |
revised |
How to detect whether or not a tile is occupied? added 484 characters in body |
|
May 8 |
comment |
How to detect whether or not a tile is occupied? Is an array like that the best solution for doing all things tile related though? Thanks for the quick answer. I'm not that deep into gamedev yet, but I did use arrays for a roguelike I worked on a while back. It doesn't seem like it could be as dynamic as what I want to use it for. I'm probably wrong though. |
|
May 8 |
comment |
How to detect whether or not a tile is occupied? @jhocking 825 tiles total, on a 800x600 pixel screen, with each tile being 25x25. I'm using Python, which is said to be slow, but who knows. I've changed the lines of code to: for tile in TILES:
pass
and the game still takes a 10FPS or so hit. edit: Also note that the coords attribute has 625 coords in it. |
|
May 8 |
awarded | Editor |
|
May 8 |
revised |
How to detect whether or not a tile is occupied? added 147 characters in body |
|
May 8 |
asked | How to detect whether or not a tile is occupied? |