GB Studio and its angles.
Context
When I started the development of the 'DF project', it was all a bit experimental, and that led me to the creation of the enemy "Eyeded" or just Eye.
The main thing about this enemy was the ability to detect where you are in relation to it, and launch a ball of energy towards you, which you (if you're skilled) can reflect if you hit.
- Hello, my name sounds obvious.
Study
The work started in July where I started studying how GB Studio's 'angle' system worked. Unfortunately, I came across a lack of any documentation on the internet, which made me start writing down anything discovered during the study in my notebook.
The first thing to note is that 90° was not a right angle, basically there was another right angle that was defined as the base.
And how did I discover this?
Testing one value at a time.
Which led me to this incorrect version:
But why?
There was an error in the first test I did in July, I didn't consider the speed of the projectile. In short, depending on the speed of the projectile, the angles may have a less relevant value, which led to failures due to inconsistencies in the first test.
Look:
Low
Fast
Fortunately, before making this post I tweaked it leading to this new result:
(Thank you SPERAR for showing me this better).
As you can see, it's still strange, but just compare the magnitude formula (rule of three), and then:
(64 x Real Angle/90= Angle GB Studio)
Some notes:
This has been my research since July, unfortunately I'm not studying this anymore, if there are any errors mentioned here, please report them in the comments of this post.
Feel free to use this information if you want to do more in-depth research.
I may soon make a post explaining how to adapt the 'angle between two vectors', but it will require several adjustments on my part.
If anyone wants to do it first, I'd be happy to share.
Thank you for your attention, and soon I hope to show you more about the development of my projects.
- Bye, do you really think my name is obvious?
Get DF project
DF project
Rogue-like with dungeon generation
Status | In development |
Author | :> |
Genre | Action |
Tags | 2D, 8-Bit, Game Boy, Game Boy ROM, gb-studio, gbstudio, Hack and Slash, Pixel Art, Retro, Roguelike |
Languages | English |
More posts
- Seed System in GB Studio.Oct 05, 2023
- Balancing Update! (0.2)Sep 28, 2023
- Minor update! (0.1b)Sep 22, 2023
Leave a comment
Log in with itch.io to leave a comment.