void obj(void)
{
draw(objx, objy, 20.0f,);
}
void player(void)
{
draw(playerx, playery, 20.0f,);
}
void hittest(void) {
if ((objx < playerx + 20) &&
(playerx < objx + 20) &&
(objy < playery + 20) &&
(playery < objy + 20)) {
playerx=playerx;
}
プレイヤーを移動してオブジェクトに当たるとプレイヤーは移動できなくなる
上の2つの事をしたいのですがわからないので上記のプログラムを教えてください