I'm trying to make a game like Gallagher in C language, and the rest of the elements are all implemented, but they're blocked at the stage of implementing the movement of the enemy. It'd be nice if it was a simple random move, but it's too hard to guessAs I see it, I want to implement the movement of the enemy plane in a circle. When I searched the Internet, they told me to use a trigonometric function or an equation of a circle, but I didn't know how to implement it even though I saw it with a score of 30. I wonder how to implement it in detail.
c function
You can find it by just looking for Wiki. And if you google it, it'll come out like heaven and earth.
https://ko.wikipedia.org/wiki/%EC%9B%90_(%EA%B8%B0%ED%95%98%ED%95%99)
For reference, use the parameter equation
shown in the wiki.
Programming usually does not use the general form of the equation of XX. Because you can't express direct relational expressions for different variables in programming language.
Turning theory into code is one of the virtues of engineers. Fighting.
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
578 Understanding How to Configure Google API Key
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
619 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.