Skip to content

planetis-m/raylib-examples

Repository files navigation

raylib-examples ported to Nim

This repository contains raylib examples ported to the Nim programming language. It also includes unique examples built with naylib from the start.

Unique naylib Examples

A* (IDA*) Path Finding

File: astar.nim

This example demonstrates the IDA* (Iterative Deepening A*) path finding algorithm. It's an efficient way to find the shortest path between two points in a graph or grid.

A* Path Finding

Binary Search Tree

File: bst.nim

An implementation and visualization of a binary search tree data structure. This example helps in understanding tree traversal and basic operations on a BST.

Binary Search Tree

Nim Crown

File: crown.nim

A creative example that draws a crown using raylib's drawing functions, paying homage to the Nim programming language.

Nim Crown

8 Queens Puzzle

File: nqueens.nim

This classic chess puzzle challenges you to place eight queens on a chessboard so that no two queens threaten each other. The example provides a solver and visualization.

8 Queens Puzzle

Raylib Perceptron

File: perceptron.nim

An implementation of a simple perceptron, demonstrating basic concepts of neural networks and machine learning using raylib for visualization.

Raylib Perceptron

Rogue (Advent of Code Solution)

File: rogue.nim

This example is a solution to the "Beverage Bandits" problem from Advent of Code 2018, Day 15. It implements a rogue-like game simulation.

Rogue

Problem Link

Shader Art Coding

File: shaderart.nim

An introduction to Shader Art Coding, based on the YouTube tutorial by @kishimisu. This example demonstrates how to create interesting visual effects using shaders.

Shader Art

Tutorial Video

Target 9 Puzzle Game

File: target9.nim

A puzzle game where the objective is to change all digits on a 3x3 grid to 9 by incrementing the values in selected rows and columns.

Target 9

Contributing

We welcome contributions to this repository! If you have created an interesting example using raylib/naylib and Nim, feel free to submit it. Please ensure your code is well-commented and follows the existing style guidelines.

License

This project is licensed under the MIT License.


Happy coding with raylib and Nim!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published