Volunteer Programmer
| Interstate Outlaws home | Forum indexNews archive |
Volunteer Programmer
| cfraz89 | Mar 30 2008, 02:54 UTC |
Hey Quadrofonic, It would be great to have you on board. We need all the coding help we can get! Get in touch with me, my email is cfraz89 @ * | |
| TaMaX | Mar 30 2008, 14:40 UTC |
QUOTE I learned BASIC and 6502 assembler in the 80s to create my own games, including competitive AIs. wow ... that must be very interesting , i wanna learn about it ! | |
| Quadrofonic | Apr 24 2008, 14:46 UTC |
Well first of all, the Apple II used vector shapes rather than bitmapped sprites. This meant they could be rotated or scaled up to appear larger instead of having to use bitmaps of different rotations and sizes. Thus I was able to use one shape for an Apollo lunar module I could rotate, and one shape for the rocket flame I could scale up to depict the thrust level with HCOLOR=5 (orange). Vector shapes also meant a lot of binary math, all done on paper. First you used graph paper to plot out the shape, then you converted it to a series of vectors, then you converted the vectors to their binary representations, then you combined them with binary math to end up with the bytes that represented the shape. Once all your shapes were encoded thusly, you would calculate the shape table index to define the number of shapes and byte offsets to each, then POKE the entire shape table into a specific memory location, byte by byte. (See Example 19) Once that was done, you could rotate, scale or color the shape when drawn on the screen. (Though the color wouldn't matter unless you had an expensive color monitor. Most were orange or green.) The XDRAW routine drew the shape with an XOR mask so it wouldn't erase other graphics it moved over, mostly. It also returned a collision detection value your game logic could use to determine, for example, if your lunar lander just collided with the moon. Check the vertical and horizontal velocity values to see if you need to draw the spinning explosion vector shape (HCOLOR=5) and POKE a suitable series of tones to the speaker. And all this happened in 280x192 resolution, unless you opted to use four lines of text at the bottom of the screen (a text HUD used less CPU than a graphical one) which left you with 280x168. | |