Time for updates about the sprite / object drawing!
The basic drawing system now works.
I still have to figure out how to handle the sprite drawing when the player is crawling (it appears to be more difficult than drawing the walls).
I've also began implementing the sprites as 3D-ish objects. More of that later in the post.
There is still some bugs with the drawing, but at least I have the basic maths working and the drawing process is functioning at least on some level.
Now, about those 3D-ish objects..
So what I mean with them, is that they are 3D models pre-rendered from 16 different angles. (Thanks to Jagmaster for providing the graphics!
)
I've inputted them as animations into GE, and am now working on making them change their animation based on what side of them the player
is. It currently works on some level, but I'm unsure about my maths, there possibly is a much better and more accurate way which I have to find.
Well, here's some screenshots to present the progress I've made.
(Click to see the full size images.)
This monkey head is for testing the math that should make it show the correct image depending on the angle the player is looking at it from.
It works almost as it's supposed to.
Here's some pillars.. The image is taken from an angle where one of the bigger problems isn't visible.
This problem is that there's something messing up the drawing order, and that makes the pillars that should be behind others, be drawn on
of the others and thus appear to be in front of them. Got to work on that.
This one is just made for fun. A spinning monkey head is always fun, isn't it?
And by the way, if you wonder what's it with that text field in the left corner, it's just something I made when I was bored..
A simple music playing option, mainly for making it nicer for me to test the engine.
And the summer background is also a part of one thing I'm testing..
I'll be adding the support of using rotating 360 panorama pictures as a background in Sabre.
I'll maybe also make it possible to have multiple layers of those images, for adding some depth via parallax scrolling.
Still have a LOT work to do with this sprite drawing. I have to write many functions just for letting Sabre users tell Sabre what size the image files are,
and other things like that. But it shouldn't be that hard, just a lot of work.