MDR Falcon's Programming Blog
The programming blog of the legendary MDR Falcon, programmer of TI calculator games as well as Nintendo DS homebrew.
Scrolling Map Character Detection (4/3/07)
photo

4/3/07


On Sunday (4/1/07), I finally sat down and took the ten minutes to figure out and add character detection in my scrolling homescreen map programs.  Basically, if you know the value of the tracking variable (which is variable A in my tutorials) and the coordinates of the sprite moving around the screen (variables P and Q in my tutorials), then you can figure out the position in the string of the characters that appear around your sprite on the map.  Once you know that, you can compare the character next to the sprite to characters that do special things in the program, such as acting as walls.  It may sound pretty complicated, but it's really not if you look at the source code and understood how the previous codes worked.  Hopefully I will be able to get my tutorials updated within the next week or so to reflect this discovery (it's a discovery for me, at least).


-MDR Falcon


2007-04-04 00:56:13 GMT
Hosted by www.Geocities.ws

1