Most of you are probably aware that OpenBOR can direct draw lines, boxes, dots, and text. However, as there are no "circle" functions I'm betting you also think it can't draw curved lines or shapes without using sprites. Want to take that bet again? It's actually a lot simpler than you think. Remember, all graphics are just pixels arranged into patterns. All it takes is a bit of math and drawing dots to make whatever shape you want.
This particular example is just a simple sine wave. Just for kicks the color intensity is also on a sine.


I did this while optimizing an older sine wave code I made that cycles color intensity in HUD items (see the Arcade Golden Axe HUD for an example).
Of course you can do a lot more than this. OpenBOR supports all the math functions you need to plot arcs and circles. One really simple application I can think of right off the bat is a circular HP meter that doesn't need any sprite frames to work. You could get a lot more ambitious than that though. Scenery, projectiles, entity special effects, and whatever else. I can even see something like a Predator style warping invisibility effect for entities.
DC
This particular example is just a simple sine wave. Just for kicks the color intensity is also on a sine.


I did this while optimizing an older sine wave code I made that cycles color intensity in HUD items (see the Arcade Golden Axe HUD for an example).
Of course you can do a lot more than this. OpenBOR supports all the math functions you need to plot arcs and circles. One really simple application I can think of right off the bat is a circular HP meter that doesn't need any sprite frames to work. You could get a lot more ambitious than that though. Scenery, projectiles, entity special effects, and whatever else. I can even see something like a Predator style warping invisibility effect for entities.
DC