panning
This commit is contained in:
parent
162e7a7fb0
commit
7189f28c00
8 changed files with 139 additions and 33 deletions
|
|
@ -27,6 +27,8 @@
|
|||
#include "kubo_dynarray.h"
|
||||
#include "kubo_wall.h"
|
||||
|
||||
#define KUBO_CONTEXT_OFFSET_JMP 100
|
||||
|
||||
KUBO_DYNARRAY_REGISTER(kubo_wall_arr, struct kubo_wall *)
|
||||
|
||||
enum kubo_context_state {
|
||||
|
|
@ -49,6 +51,9 @@ struct kubo_context {
|
|||
struct kubo_wall_arr walls;
|
||||
struct kubo_context_state_data state;
|
||||
|
||||
int offset_x;
|
||||
int offset_y;
|
||||
|
||||
// KUBO_CONTEXT_WALL_SELECT
|
||||
size_t wall_select_index;
|
||||
};
|
||||
|
|
@ -64,7 +69,9 @@ void kubo_context_accept_cmd(struct kubo_context *context);
|
|||
struct kubo_wall *kubo_context_get_pending_wall(struct kubo_context *context);
|
||||
void kubo_context_delete_wall(struct kubo_context *context);
|
||||
|
||||
void kubo_context_select_next_wall(struct kubo_context *context);
|
||||
void kubo_context_select_prev_wall(struct kubo_context *context);
|
||||
void kubo_context_input_up(struct kubo_context *context);
|
||||
void kubo_context_input_down(struct kubo_context *context);
|
||||
void kubo_context_input_left(struct kubo_context *context);
|
||||
void kubo_context_input_right(struct kubo_context *context);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue