So today i came up with this nice little shadow program in axe.
Unfortunately, it was horribly slow. So i decided to have a
crack at Axiom developement.
(https://lh4.googleusercontent.com/-H9bgcnJcatY/VK2usl70sFI/AAAAAAAABPU/CTLtwhZ_qXI/w96-h64-no/screen.png)
It works by first copying the main buffer to the back buffer,
then looping through each byte of the back buffer and moving it 12 bytes to the right
(one pixel down). Then, depending on the command, one bit right or one bit left.
Although it's not amazingly optimized ASM it works quite well.
I haven't really tested it for bugs, so please use at your own risk :P
EDIT: The tokens are found in the stat-calc menu (at 5, 6 and 7)
Actually, it's a pretty nice idea and a pretty nice result! Have you tried with different graphisms, like hollow shapes?
Not yet, but i can guess what happens :p
Can you move the light source?
No it only has 3 angles :/
It was just a quick implementation,
but i think im gonna look more in to
this.
Something that would be cool is if you could find a way to make Axe graphics so that instead of 4 shades of gray, you have black, medium gray, white and transparent, Basically, the dark gray layer would display as medium gray and the light gray layer would be white, while the white layer would be transparent. Then with your program, anything that isn't transparent could generate a shadow at the angle of your choice. I'M unsure if this would be ideal in all situations, but I guess it wouldn't hurt to try to see how it looks like, assuming that is feasible. The shadow would be medium gray.
On a side note, nice to see a new ASM programmer :D
This looks really interesting! How is performance with more than one shape?
i haven't really tested, but it shouldnt be more since it does the whole buffer in one go
Ah, I thought you had to put in objects and then it traced those. Seems I was incorrect :P
Seems good :) can't wait to see where this will go.
I'm actually planning something quite big. I'll see if it works out
I can't wait to see :D. But remember that if you are still somewhat new to programming or Axe programming, it's generally recommended to start small and experiment. For example, don't do a Portal or Pokémon clone as your first ever Axe project because it might be too much of a burden.
Although it is something i tend to do, this project shouldn't be too hard :P.
Actually doing it now :)
Looking pretty awesome, cumred!