本课程教你使用C++和Raylib游戏库,从零构建完整的2D三明治店经营游戏。涵盖项目搭建、面向对象架构、UI系统、随机订单及存档功能,适合初学者快速上手轻量级游戏开发。

原始标题:Build a Sandwich Shop Game with Raylib & C++

Build a Sandwich Shop Game with Raylib & C++

这是一门使用 C++ 和 Raylib 游戏库开发 2D 三明治店经营游戏的视频课程介绍。课程采用纯代码驱动的轻量级开发流程,教你摆脱笨重的大型游戏引擎,从零开始构建包含 UI 系统、材质渲染、随机订单、音效及存档功能的完整游戏。

📦 核心教学内容

  • Raylib 项目搭建与资产管理:学习如何在 C++ 环境(如 Visual Studio 2022)中配置 Raylib 库,并高效加载、绘制 2D 精灵图与纹理贴图。
  • 面向对象游戏架构:利用 C++ 的类、继承、向量(std::vector)和枚举(Enums),将按钮、食材、三明治和订单封装为可复用的模块。
  • 核心经营玩法开发:实现鼠标点击交互、食材组合判定、随机订单生成、得分计算以及游戏状态的管理与切换。

Published 6/2026
Created by Ramey Devs
MP4 | Video: h264, 1920×1080 | Audio: AAC, 44.1 KHz, 2 Ch
Level: Beginner | Genre: eLearning | Language: English | Duration: 40 Lectures ( 4h 39m ) | Size: 2.7 GB

Learn Raylib and C++ by building a complete sandwich shop game with buttons, textures, ingredients, UI systems, and game

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++.

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++ 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.

隐藏内容

百度网盘下载:

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注