-
-

Python Bindings for Raylib 4.5

+
+

Python Bindings for Raylib 5.0

New CFFI API static bindings.

  • Automatically generated to be as close as possible to @@ -114,7 +116,7 @@

    Python Bindings for Raylib 4.5Full documentation

-

Quickstart

+

Quickstart

pip3 install raylib

from pyray import *
 init_window(800, 450, "Hello")
@@ -128,7 +130,7 @@ 

Quickstart -

Installation

+

Installation

First make sure you have the latest pip installed:

python3 -m pip install --upgrade pip
 
@@ -142,11 +144,11 @@

Installation -

Raspberry Pi

+

Raspberry Pi

Using on Rasperry Pi

-

Dynamic binding version

+

Dynamic binding version

There is now a separate dynamic version of this binding:

python3 -m pip install raylib_dynamic
 
@@ -154,7 +156,7 @@

Dynamic binding versionIt works on some systems where the static version doesn’t, but be sure to read these caveats before using it

-

Beta testing

+

Beta testing

If you find a bug, it may be fixed in the latest dev release. You can install an alpha or beta version by specifying the exact version number like this:

python3 -m pip install raylib==4.2.0.0.dev4
@@ -162,7 +164,7 @@ 

Beta testing -

Problems?

+

Problems?

If it doesn’t work, try to build manually.. If that works then submit an issue to let us know what you did.

If you need help you can try asking on Discord.

@@ -170,48 +172,48 @@

Problems? -

How to use

+

How to use

There are two APIs, you can use either or both:

-

If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API

+

If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API

Use the C API.

-

If you prefer a slightly more Pythonistic API and don’t mind it might be slightly slower

+

If you prefer a slightly more Pythonistic API and don’t mind it might be slightly slower

Use the Python API.

-

App showcase

+

App showcase

Tanki

Alloy Bloxel Editor

Add your app here!

-

RLZero

+

RLZero

A related library (that is a work in progress!):

A simplified API for Raylib for use in education and to enable beginners to create 3d games

-

Help wanted

+

Help wanted

  • Converting more examples from C to Python

  • Testing on more platforms

-

License (updated)

+

License (updated)

The bindings are now under the Eclipse Public License, so you are free to statically link and use in non-free / proprietary / commercial projects!

-

Performance

+

Performance

For fastest performance use Pypy rather than standard Python.

Every call to C is costly, so it’s slightly faster if you use Python data structures and functions when calculating in your update loop and then only convert them to C data structures when you have to call the C functions for drawing.

-

Bunnymark

+

Bunnymark

@@ -251,7 +253,7 @@

Bunnymark -

Packaging your app

+

Packaging your app

You can create a standalone binary using the Nuitka compiler. For example, here is how to package Bunnymark:

pip3 install nuitka
 cd examples/textures
@@ -260,7 +262,7 @@ 

Packaging your app -

Advert

+

Advert

RetroWar: 8-bit Party Battle is out now. Defeat up to 15 of your friends in a tournament of 80s-inspired retro mini games.

Coding Games With Pygame Zero & Python is a book for Python beginners.

diff --git a/docs/RPI.html b/docs/RPI.html index b43ee09..3834958 100644 --- a/docs/RPI.html +++ b/docs/RPI.html @@ -1,22 +1,24 @@ - + - + Raspberry Pi — Raylib Python documentation - - - + + + + + - - - - - + + + + + @@ -44,7 +46,7 @@

Library

- - -
-

B

+ +
+ +

D

+ + +
- -
  • BlendMode (class in pyray) +

    G

    + + + +
    -
  • -
  • BORDER_COLOR_FOCUSED (in module raylib) +

    L

    + + + +
    -
  • -
  • BORDER_WIDTH (in module raylib) +

    M

    + + +
    -

    C

    +

    O

    +
    -
  • -
  • CAMERA_CUSTOM (in module raylib) +

    P

    + + + +
    -
  • -
  • CAMERA_ORTHOGRAPHIC (in module raylib) +

    R

    + + + +
    -
  • -
  • CameraProjection (class in pyray) +

    S

    + + +
    -
  • -
  • CHECKBOX (in module raylib) +

    V

    + + +
    + +

    W

    + -
    - -

    D

    - - - -
    - -

    E

    - - - -
    - -

    F

    - - - -
    - -

    G

    - - - -
    - -

    H

    - - - -
    - -

    I

    - - - -
    - -

    K

    - - - -
    - -

    L

    - - - -
    - -

    M

    - - - -
    - -

    N

    - - - -
    - -

    O

    - - - -
    - -

    P

    - - - -
    - -

    Q

    - - - -
    - -

    R

    - - - -
    - -

    S

    - - - -
    - -

    T

    - - - -
    - -

    U

    - - - -
    - -

    V

    - - - -
    - -

    W

    - - -
    diff --git a/docs/index.html b/docs/index.html index bd70efc..d713af7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,26 +1,28 @@ - + - + Raylib Python — Raylib Python documentation - - - + + + + + - - - - - + + + + + - + @@ -44,7 +46,7 @@