mirror of
https://github.com/ProgramSnail/snake_2024.git
synced 2025-12-18 20:28:45 +00:00
support mouse cursor
This commit is contained in:
parent
f86c1a22ac
commit
a1430a42aa
3 changed files with 41 additions and 2 deletions
3
Game.cpp
3
Game.cpp
|
|
@ -11,10 +11,11 @@
|
|||
// is_key_pressed(int button_vk_code) - check if a key is pressed,
|
||||
// use keycodes (VK_SPACE, VK_RIGHT, VK_LEFT, VK_UP, VK_DOWN, VK_RETURN)
|
||||
//
|
||||
// get_cursor_x(), get_cursor_y() - get mouse cursor position
|
||||
// is_mouse_button_pressed(int button) - check if mouse button is pressed (0 - left button, 1 - right button)
|
||||
// schedule_quit_game() - quit game after act()
|
||||
|
||||
|
||||
|
||||
// initialize game data in this function
|
||||
void initialize()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue