Skip to content

Simple demo on how to write Native Raylib App in RPython

License

Notifications You must be signed in to change notification settings

tsoding/rpython-raylib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RPython Raylib Example

RPython is a subset of Python2 that is compilable to C. Created specifically to implement PyPy. To learn more about it read https://rpython.readthedocs.io/en/latest/

Here is a simple demo on how to write Native Raylib App in RPython.

Quick Start

Download and unpack the dependencies.

$ wget https://github.com/raysan5/raylib/releases/download/5.0/raylib-5.0_linux_amd64.tar.gz
$ tar fvx raylib-5.0_linux_amd64.tar.gz
$ wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2
$ tar fvx pypy2.7-v7.3.17-linux64.tar.bz2
$ wget https://downloads.python.org/pypy/pypy3.10-v7.3.17-src.tar.bz2
$ tar fvx pypy3.10-v7.3.17-src.tar.bz2

Over time the versions in the links may get outdated. Update them accordingly from:

Build and run the example:

$ ./pypy2.7-v7.3.17-linux64/bin/pypy ./pypy3.10-v7.3.17-src/rpython main.py
$ ./urmom

About

Simple demo on how to write Native Raylib App in RPython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages