Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build a Sandwich Shop Game with Raylib & C++
Rating: 5.0 out of 5(1 rating)
81 students

Build a Sandwich Shop Game with Raylib & C++

Learn Raylib and C++ by building a complete sandwich shop game with buttons, textures, ingredients, UI systems, and game
Created byRamey Devs
Last updated 6/2026
English
English [Auto],

What you'll learn

  • Build a complete 2D Sandwich Shop game from scratch using Raylib and C++.
  • Learn object-oriented programming by creating reusable classes for buttons, ingredients, sandwiches, and orders.
  • Implement game systems including scoring, random order generation, sound effects, and save/load functionality.
  • Gain practical experience with vectors, enums, inheritance, asset management, and user interface programming in C++.

Course content

6 sections • 40 lectures • 4h 39m total length
  • Introduction0:52

    Introduction to the course

Requirements

  • Basic knowledge of C++ syntax is recommended (variables, functions, and classes). A Windows PC with Visual Studio 2022 installed. A willingness to learn game development by building a complete project from scratch. No prior experience with Raylib is required.

Description

Have you ever wanted to build your own 2D game using modern C++ without relying on a large game engine? In this course, you'll learn how to create a complete sandwich shop game from scratch using the Raylib game development library.

This project is designed to be beginner-friendly while introducing the core concepts used in real game development. Rather than creating isolated demos, you'll build a complete playable game that you can continue expanding after the course.

Throughout the course you'll learn how to:

  • Set up a Raylib C++ project

  • Draw sprites and textures

  • Build an ingredient selection system

  • Create interactive UI buttons

  • Detect mouse input and button clicks

  • Build a sandwich by adding ingredients

  • Manage game state and gameplay logic

  • Organize code using classes and clean project structure

  • Load and manage game assets

  • Polish the game with visual improvements

By the end of this course, you'll have a fully functional sandwich shop game along with the knowledge needed to create your own 2D projects using Raylib.

Whether you're new to game development or looking for a fun project to improve your C++ skills, this course will give you practical experience building a complete game from start to finish.

Who this course is for

  • Beginner C++ programmers interested in game development

  • Students wanting to learn the Raylib library

  • Developers looking for a simple, complete game project

  • Anyone who enjoys learning by building real projects

Requirements

  • Basic knowledge of C++

  • A Windows PC

  • Visual Studio 2022 (Community Edition is fine)

  • No prior Raylib experience required

By the end of this course you'll not only understand how to build this sandwich shop game, but you'll also have a strong foundation that you can apply to your own 2D games using Raylib and C++.

Who this course is for:

  • Beginner C++ developers who want to learn game development using Raylib. Students interested in building complete 2D games while learning object-oriented programming. Developers looking for a hands-on project that teaches practical game programming techniques. Anyone who enjoys learning by creating a fun, complete game from start to finish.