Skip to content
/ raygame Public template

A sample C++ project setup with raylib for Visual Studio 2022

License

Notifications You must be signed in to change notification settings

AIE-Seattle-Prog/raygame

Repository files navigation

raygame - sample project

This is a sample C++ project setup with raylib for Visual Studio 2022. Raylib is a simple game programming framework that is designed to be friendly to beginners. It is created by Ramon Santamaria (@raysan5).

This version is compatible with any documentation referring to Raylib 5.0.

It is primarily intended for use by students in the Game Programming course at the Seattle Campus of the Academy of Interactive Entertainment.

Getting Started

To get started with this sample project, click the Use this template button up top to copy this repository to your own account. Then, follow the instructions in the Building section below.

Once you've got it working, check out the cheatsheet for more information on the Raylib API or browse the example projects. If using the object-oriented wrapper for raylib, refer to its repository.

raylib links - website / discord / reddit / raylib repo / api reference, examples

Building

This project supports by Visual Studio 2022 or newer.

Property Value
Windows SDK Version 10.0 (latest installed version)
Platform Toolset Visual Studio 2022 (v143)
C++ Language Standard ISO C++20 Standard (std:c++20)

When building, please make sure that your installation of Visual Studio has the necessary components to compile this project, per the table above. If you get any errors, consult the table above and refer to Microsoft Docs to learn how to configure your installation appropriately.

Clone the repository and open the solution in Visual Studio. Both the solution and project should already be configured and ready to start working with. To test this, build and run the provided sample project.

A screenshot of the included sample project

The sample project that is provided is the basic window example from raylib. Further examples can be found in its repository or on the website.

You can review the cheatsheet for the full range of functions made available through raylib.

Raylib

Raylib is now integrated using the C++ NuGet package instead of maintaining copies of its header and binaries in the thirdparty folder. Visual Studio should check and resolve it as a dependency if the necessary files have not yet been downloaded.

License

MIT License - Copyright (c) 2018-2020, 2024 Academy of Interactive Entertainment

For more information, see the license file.

Third party works are attributed under thirdparty.md.

About

A sample C++ project setup with raylib for Visual Studio 2022

Topics

Resources

License

Stars

Watchers

Forks

Languages