Snowflakes Falling > 2D

Draws textures (images) of snowflakes falling at random speeds with random rotations and sizes. To complete this example you will need to download the snowflakes image texture here. SPACE key to turn color on/off and TAB key to turn blur effect on/off. View on Github

Before you start
I am a self taught Go programmer and do it as a hobby, the code below is my own interpretation of how to do something, probably not the only way or the best way. This is intended as a resource to learn some basic Raylib and Go game dev skills. If you want to use any of the code anywhere else, feel free to do so.

Room Tiles > 2D

Demonstrates simple tiling of a rectangle with image texture tiles for floors and walls. The tiles can be resized in code and random colors are used for the floors and walls. To complete this example you will need to download the room tiles image texture here. UP arrow key to change zoom and SPACE key to create a new room. View on Github

Before you start
I am a self taught Go programmer and do it as a hobby, the code below is my own interpretation of how to do something, probably not the only way or the best way. This is intended as a resource to learn some basic Raylib and Go game dev skills. If you want to use any of the code anywhere else, feel free to do so.

Orbiting > 2D

This demonstrates the use of mathematics to create circles that orbit a center point. Press space key to change direction and speed. View on Github

Before you start
I am a self taught Go programmer and do it as a hobby, the code below is my own interpretation of how to do something, probably not the only way or the best way. This is intended as a resource to learn some basic Raylib and Go game dev skills. If you want to use any of the code anywhere else, feel free to do so.

Moving Polygon Triangles > 2D

This demonstrates the use of rl.DrawPoly for creating a line of moving triangles, direction can be changed using the W A S D keys. This represents a much easier approach for drawing triangles that change direction than using rl.DrawTriangle and should be considered as the method of choice in some cases. View on Github

Before you start
I am a self taught Go programmer and do it as a hobby, the code below is my own interpretation of how to do something, probably not the only way or the best way. This is intended as a resource to learn some basic Raylib and Go game dev skills. If you want to use any of the code anywhere else, feel free to do so.

Starfield is Space Exploration Summarised

2024/11/04 - Whilst this review is, for the most part, still pretty accurate, I replayed Starfield recently following a few updates. The addition of FSR means that the graphics can now be maxxed out more easily and the vehicle for travelling on planets makes exploring much more fun. Starfield remains a good game, however not the great game that I was expecting. Definitely worth playing, even more so being basically free on Xbox Game Pass, with many hours of gameplay, though it could have been a lot better.

Easy, Quick & Cheap Pasta Sauce

Anyway, so I am someone that eats more than they should, however, I do try and eat healthily (within reason) and often I don’t have anything super quick to eat. I love pasta so this recipe is something that is cheap, simple and keeps for ages in the fridge. This makes it a good addition to any fridge if you like pasta, don’t always want to cook something and don’t want to buy takeaway. It is more economical to use fresh tomatoes where I live and they are probably the healthier option, however, if you prefer just substitute for tinned. You can also use overripe, soft tomatoes that you were planning to throw in the bin. I also use the same sauce as a homemade pizza sauce under the mozarella.

Text Center & Scroll > 2D

Demonstrates centering of text at different sizes, moving of two different texts left and right across screen as well as up. View on Github

Before you start
I am a self taught Go programmer and do it as a hobby, the code below is my own interpretation of how to do something, probably not the only way or the best way. This is intended as a resource to learn some basic Raylib and Go game dev skills. If you want to use any of the code anywhere else, feel free to do so.

Moving Space/Shooting Stars Background > 2D

Quick way to create moving space background with random movement, color fade and direction change. If you would prefer to use sprites (images) then draw textures in place of the rectangles. View on Github

Before you start
I am a self taught Go programmer and do it as a hobby, the code below is my own interpretation of how to do something, probably not the only way or the best way. This is intended as a resource to learn some basic Raylib and Go game dev skills. If you want to use any of the code anywhere else, feel free to do so.

Grid of Random Color Blocks > 2D

Quick way to create colorful background of randomly colored blocks using a slice of structs to store the color and position information. Try changing color fade, outline, rectangle size and use textures to achieve different effects. Using the same or similar colours or textures can be used to create a simple tiled background. View on Github

Before you start
I am a self taught Go programmer and do it as a hobby, the code below is my own interpretation of how to do something, probably not the only way or the best way. This is intended as a resource to learn some basic Raylib and Go game dev skills. If you want to use any of the code anywhere else, feel free to do so.

Vector2 Point versus Border Collisions > 2D

Very simple example to demonstrate the use of Vector2 points to check for collisions of a moving rectangle inside a border rectangle. Four Vector2 points are created for each corner of the rectangle, if one exits the border rectangle then the movement direction changes. View on Github

Before you start
I am a self taught Go programmer and do it as a hobby, the code below is my own interpretation of how to do something, probably not the only way or the best way. This is intended as a resource to learn some basic Raylib and Go game dev skills. If you want to use any of the code anywhere else, feel free to do so.