feat: add Python version of core_basic_window from raylib
This commit is contained in:
parent
d3fcb40408
commit
56369ce1da
1 changed files with 11 additions and 0 deletions
11
examples/contrib/core_basic_window.py
Normal file
11
examples/contrib/core_basic_window.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import pyray
|
||||
|
||||
pyray.init_window(800, 450, b"Hello Raylib [pyray]")
|
||||
|
||||
while not pyray.window_should_close():
|
||||
pyray.begin_drawing()
|
||||
pyray.clear_background(pyray.RAYWHITE)
|
||||
pyray.draw_text(b"Hello, world!", 190, 200, 20, pyray.DARKGRAY)
|
||||
pyray.end_drawing()
|
||||
|
||||
pyray.close_window()
|
Reference in a new issue