First person camera now works on web
This commit is contained in:
parent
fd1fe3ac14
commit
8ccb558996
3 changed files with 2131 additions and 2191 deletions
|
@ -88,6 +88,9 @@ void UpdateDrawFrame(void)
|
|||
// Update
|
||||
//----------------------------------------------------------------------------------
|
||||
UpdateCamera(&camera); // Update camera and player position
|
||||
|
||||
// Lock mouse cursor if mouse click on canvas
|
||||
if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) DisableCursor();
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue