This repository contains different one file raylib examples.
It uses the F# Scripting ability (dotnet fsi). On Linux you just can make the
scripts executable and just run them as long dotnet is installed.
On Windows you maybe need to delete the first line shebang line to run the scripts.
The purpose is either to just show basic Raylib usage, or exploring different concepts related to game development.
mouse_follow.fsxA circle following the mouse cursor, drawing on a render texture while doing so.moveable.fsxDrag 'n Drop examplerender_texture.fsxDrawing to a permanent rendering texture.sine_wave.fsxUses DrawPixel() to draw a sine wave function.
-
inside_poly.fsxAlgorithm to check if a certain point is inside a concave mesh -
raycast.fsxAlgorithm that checks if a certain ray intersects with a line. -
spatial.fsxVisualization for a Spatial Tree implementation. You can drag'n'drop points and add new points with right mouse click. Shows the initialized cells in the Spatial Tree and when you move inside a cell which points are inside.A spatial tree is for example used in efficent physic collision systems.
circle.fsxUses Polar coordinate and conversation to cartesian to create circlesparticle_system.fsxA particle systempolar.fsxAnother example using Polar coordinates to create some "art".snowflake.fsxShows an animation of a koch fractal snowflake. Repeats forever.snowflake2.fsxLet's you draw lines and then split every line with the koch fractal "algorithm".
euler.fsxA physics simulation using Euler Integration. Not so good at the moment. Better look at verlet.fsx.verlet.fsxUses Verlet integration for physics simulation. Another example of doing physics compared toeuler.fsxthat used Euler Integration. Also uses the Spatial Tree.verlet_sticks.fsxMass aggegragte physic system that uses verlet integration. Multiple points are connected to form a restriction. This way different shapes like boxes, ropes or soft-body physics can be created and simulated.