I've decided to use machine rendered graphics instead of sprites for everything but the background (star field). I've been messing around with polygons and have my ship shape figured out. I still need to make the vertices rotate with the ships direction (which should be fairly easy to accomplish with the lengthdir_* functions). The first enemy I'm gonna make is the diamond that flucuates in size. All I should need to do is set a variable that I can use to change the various vertice's positions. My biggest concern is the 'wave' effect that the grid performs when shots are fired, explosions are triggered, black holes are created, etc. Unless I can come up with a 2D line distortion system, I may end up having to completely shift my ideas to 3D (using a flat 3D terrain to get the desired affect.) This wouldn't be too much of an issue, except for the fact that it will make it more difficult to keep the game running at a high, or even a decent fps. Anyway, I guess that's it for now. I'll upload with a screen shot once I get a decent amount done. Untill next time.
You could try storing the grid line distorts in an array or ds
As for drawing things,code drawing is the much wiser decisionI was thinking about storing a bunch of grid positions (vertex positions) in an array or data structure, then using it to modify the primitve's shape (though the line would have to consist of quite a few vertices to get a good shape distortion. I was hoping coded graphics would be faster. Geo War looks like it was made that way too, so I didn't see any problem with it. I'm interested in seeing how fast I can get it to run with grid distortions, effects, and multiple instances :D .
Post a screenshot soon. It's hard to imagine what it's like without actually seeing it.
Ya,you could draw all the things as a single primitive if they use the same color.That's what I'm doing for my bullets in a project of mine
The grid could be done quite well with some pr_linestrips,and you may be able to dynamically store it so that a straight segment isn't drawn multiple times