A very simple 3D maze game with ray tracing

PytracingMaze Simple ray tracing game in Python, based on my ray casting project. As you may have guessed, things started to get a bit heavy for Python, so i had to resort to the Numba library, improving performance by 100x. Intro Rays The basic approach is to trace rays of light in the reverse direction, starting from the camera and interacting with the environment, with three basic types of rays: Vision rays – Initial rays that shoots from the camera […]

Read more

Deep Q-learning for playing chrome dino game

Deep Q-learning for playing Chrome Dino python source code for training an agent to play flappy bird. It could be seen as a very basic example of Reinforcement Learning’s application. Result The corresponding output video will also be generated and stored by default at output/chrome_dino.mp4Output video How to use my code With my code, you can: Train your model from scratch by running python train.py Test your trained model by running python test.py Trained models You could find my trained […]

Read more

An open source programming language for the creation of cross-platform video games

Wonkey Programming Language Wonkey is an open source programming language for the creation of cross-platform video games, highly inspired by the “Blitz” range of languages. Showcase Wonkey on Raspbian (Raspberry PI 4) Click screenshots to run the examples in browser: Setup Emscripten target See installation instructions from Emscripten site. # Get the emsdk repo git clone https://github.com/emscripten-core/emsdk.git # Enter that directory cd emsdk # Fetch the latest version of the emsdk (not needed the first time you clone) git pull […]

Read more

A Boids Simulation written in Python with Pygame

PyNBoids A Python Boids SimulationThis is a Boids simulation, written in Python3 with Pygame2. To use save the pynboids.py file somewhere (and nboids.png if you wantit’s icon, not required), and run via python. (Example: python3 pynboids.py) Esc key to quit. I’ve included several tweakable settings near the top of the code. You canadjust window size, fullscreen, fps, and how many boids to spawn, as well aswhether boids avoid screen edges or wrap to the other side.. Change thebackground color, or […]

Read more

A fan-made, text-adventure Pokémon game in Python

PythonRed Version A fan-made, text-adventure Pokémon game in Python! Based on Pokémon Red, but with elements from most of the official and spin-off Pokémon games. Important Notes: This is not a perfect recreation of Pokémon Red; it’s a fan-made game that, like Pokémon Red, takes place in the Kanto region. Prior in-depth knowledge of the Pokémon franchise, especially the video game series, is recommended and may be required to fully enjoy this game. Windows OS only!! This game makes use […]

Read more

A webcam-based 3x3x3 rubik’s cube solver written in Python 3

Qbr Qbr, pronounced as Cuber, is a webcam-based 3x3x3 rubik’s cube solver written inPython 3 and OpenCV. :rainbow: Accurate color detection :mag: Accurate 3x3x3 rubik’s cube detection :capital_abcd: Multilingual Solve mode Calibrate mode Isn’t the default color detection working out for you? Use the calibratemode to let Qbr be familiar with your cube’s color scheme. If your room hasproper lighting then this will give you a 99.9% guarantee that your colors willbe detected properly. Simply follow the on-screen instructions and […]

Read more
1 7 8 9