Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raysan5/challenges
graphics programming challenges
https://github.com/raysan5/challenges
blocks dungeons maze opengl raylib videogames
Last synced: 2 months ago
JSON representation
graphics programming challenges
- Host: GitHub
- URL: https://github.com/raysan5/challenges
- Owner: raysan5
- License: other
- Created: 2017-02-23T16:32:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T16:37:00.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T10:19:31.037Z (3 months ago)
- Topics: blocks, dungeons, maze, opengl, raylib, videogames
- Language: C
- Homepage:
- Size: 36.5 MB
- Stars: 165
- Watchers: 10
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-raylib - Graphics programming challenges by raysan5 (GitHub repository)
README
# Graphics Programming
This repo contains some challenges about Graphics Programming. Challenges are organized in folders and include the solutions. They are intended to be used as tutorials to learn graphics programming for videogames development.Some of those challenges are based on [raylib](http://www.raylib.com/), a simple and easy-to-use library to enjoy videogames programming.
## [Challenge 01. Blocks game](01_challenge_blocks#challenge-01-blocks-game)
A blocks game where player has to break a wall of blocks controlling a ball with a paddle.
This game is developed using [raylib](http://www.raylib.com/) library.
**Learning outcomes:**
- raylib functionality and possibilities
- Videogame life cycle (Init -> Update -> Draw -> DeInit)
- Basic screens management with screens transition
- Basic shapes drawing (circle, rectangle)
- Inputs management (keyboard, mouse)
- Collision detection and resolution
- Textures loading and drawing
- Fonts loading and text drawing
- Sounds and music loading and playing![blocks game](01_challenge_blocks/blocks_game.gif "Blocks Game")
## [Challenge 02. Dungeon 2D game](02_challenge_dungeon2d#challenge-02-2d-dungeon-game)
A tile-based dungeon 2D game where player moves around a 2D dungeon finding keys and defeating monsters.
This game is developed using raylib [rlgl](https://github.com/raysan5/raylib/blob/develop/src/rlgl.c) low-level library module.
**Learning outcomes:**
- rlgl functionality and possibilities
- Window creation, configuration and management (GLFW3)
- Context creation (OpenGL 3.3) and extensions loading (GLAD)
- Inputs management (keyboard, mouse) (GLFW3)
- Basic shaped drawing defining vertex data (immediate-mode)
- Image loading (RAM), texture creation (VRAM) and drawing
- Tilemap data loading from text file
- Tilemap drawing and collision detection![dungeon game](02_challenge_dungeon2d/dungeon_game.gif "Dungeon Game")
## [Challenge 03. Maze 3D game](03_challenge_maze3d#challenge-03-3d-maze-game)
A cubes-based maze 3D game where player has to escape from a 3D labyrinth.
This game is developed using [OpenGL](https://en.wikipedia.org/wiki/OpenGL) graphics library.
**Learning outcomes:**
- OpenGL 3.3 graphic pipeline functionality
- Window creation, configuration and management (GLFW3)
- Context creation (OpenGL 3.3) and extensions loading (GLAD)
- Inputs management (keyboard, mouse, gamepad) (GLFW3)
- Image loading (RAM), texture creation (VRAM) and drawing
- Models loading, transform and drawing (3d meshes)
- Level map data loading and vertex buffers generation (VBO)
- Camera system creation and management (1st person)
- Collision detection and resolution (AABB collisions)![maze game](03_challenge_maze3d/maze_game.gif "Maze Game")
# License
All challenges lectures are licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
All challenges code is licensed under an unmodified zlib/libpng license.
Check [LICENSE](LICENSE) for further details.
*Copyright (c) 2017 Ramon Santamaria ([@raysan5](https://twitter.com/raysan5))*