mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-29 10:19:18 -05:00
First person camera now works on web
This commit is contained in:
@ -88,6 +88,9 @@ void UpdateDrawFrame(void)
|
|||||||
// Update
|
// Update
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
UpdateCamera(&camera); // Update camera and player position
|
UpdateCamera(&camera); // Update camera and player position
|
||||||
|
|
||||||
|
// Lock mouse cursor if mouse click on canvas
|
||||||
|
if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) DisableCursor();
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Draw
|
// Draw
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -58,6 +58,17 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||||
|
# Emscripten required variables
|
||||||
|
EMSDK_PATH = C:/emsdk
|
||||||
|
EMSCRIPTEN_VERSION = 1.37.9
|
||||||
|
CLANG_VERSION=e1.37.9_64bit
|
||||||
|
PYTHON_VERSION=2.7.5.3_64bit
|
||||||
|
NODE_VERSION=4.1.1_64bit
|
||||||
|
export PATH=$(EMSDK_PATH);$(EMSDK_PATH)\clang\$(CLANG_VERSION);$(EMSDK_PATH)\node\$(NODE_VERSION)\bin;$(EMSDK_PATH)\python\$(PYTHON_VERSION);$(EMSDK_PATH)\emscripten\$(EMSCRIPTEN_VERSION);C:\raylib\MinGW\bin:$$(PATH)
|
||||||
|
EMSCRIPTEN=$(EMSDK_PATH)\emscripten\$(EMSCRIPTEN_VERSION)
|
||||||
|
endif
|
||||||
|
|
||||||
# define compiler: gcc for C program, define as g++ for C++
|
# define compiler: gcc for C program, define as g++ for C++
|
||||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||||
# define emscripten compiler
|
# define emscripten compiler
|
||||||
|
|||||||
Reference in New Issue
Block a user