dchanman/minecraft_go

Hitbox Detection

Closed this issue · 0 comments

As a user, I want my touchscreen inputs detected so that I can play the minigames

Requirements:

  • Determine if a user has touched an object on the touchscreen

Implementation Details

The following C function needs to be available

/*
 * (x1,y1) is the top left corner of the box
 * (x2,y2) is the bottom right corner of the box
 */
int is_touch_in_box(int x1, int y1, int x2, int y2);