2021-07-30 20:21:40 +00:00
|
|
|
#include "platform.h"
|
|
|
|
#include "pc98.h"
|
|
|
|
#include "master.hpp"
|
|
|
|
#include "th01/math/subpixel.hpp"
|
|
|
|
#include "th04/math/motion.hpp"
|
2022-04-02 23:03:58 +00:00
|
|
|
#include "th04/main/playfld.hpp"
|
2021-07-30 20:21:40 +00:00
|
|
|
#include "th05/main/player/player.hpp"
|
|
|
|
|
|
|
|
unsigned char pascal near player_angle_from(
|
|
|
|
Subpixel x, Subpixel y, unsigned char plus_angle
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return (
|
|
|
|
iatan2((player_pos.cur.y - y), (player_pos.cur.x - x)) + plus_angle
|
|
|
|
);
|
|
|
|
}
|
|
|
|
#pragma codestring "\x90"
|