OZONE Asylum
Forums
DHTML/Javascript
Been too long since I've done much JS hacking...
This page's ID:
28932
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
rukuartic: Yes, it's a 2D array, but with a twist: instead of managing it at the pixel level, I render it in blocks of 8-bits. This is because XBM's deal with bytes at a time, so it's smaller and easier to do it that way. Thus, there are 40 rows and 5 columns (40 / 8), and I add each row to the XBM output array at once, instead of a pixel or byte at a time, simply because it's easier in this case. Also, it's simple to note that I mirror the image vertically, which results in a little less work, since each scene is always going to be symmetrical about that axis. As for planning it out, it wasn't... it sort of grew organically. I originally had an idea of rendering a 3D first person scene (ala Scarab of Ra, or Phantasy Star...) in XBM, and when I decided to try to make it as small as possible, I tried to come up with an algorithm that would simplify it down a lot. Using 8x8 tiles seemed to be the best and only way to do it in a small amount of space, so that's what I went with. After doing the renderer, I just tacked on a map and walking code. Honestly, I'm not too happy with the map code, but it works, so I'll live with it! --- [url=http://www.rpi.edu/~laporj2/]Website[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »