raylib python

Solutions on MaxInterview for raylib python by the best coders in the world

showing results for - "raylib python"
Paolo
26 Mar 2018
1from raylib.static import *
2
3InitWindow(800, 450, b"Hello Raylib")
4SetTargetFPS(60)
5
6camera = ffi.new("struct Camera3D *", [[18.0, 16.0, 18.0], [0.0, 0.0, 0.0], [0.0, 1.0, 0.0], 45.0, 0])
7SetCameraMode(camera[0], CAMERA_ORBITAL)
8
9while not WindowShouldClose():
10    UpdateCamera(camera)
11    BeginDrawing()
12    ClearBackground(RAYWHITE)
13    BeginMode3D(camera[0])
14    DrawGrid(20, 1.0)
15    EndMode3D()
16    DrawText(b"Hellow World", 190, 200, 20, VIOLET)
17    EndDrawing()
18CloseWindow()
19
20
Mía
31 Apr 2018
1pip install raylib