Skip to content

DnSClub/raylib-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raylib-workshop

Repo for DNS Raylib Workshop

Step 1: Clone/download this repo

git clone https://github.com/DnSClub/raylib-workshop.git

Do it! 🗿


Step 2: Compile raylib from source on your machine

[ Windows ]

If the repo doesn't already open the window.

  1. Get G++ compiler:
  • Go to this link
  • Download the latest Win64 7-zip archive
  • Extract it in :C\
  • Add C:..\mingw64\bin to your PATH variables.
  • Confirm by receiving correct path from where.exe g++
  1. Raylib repo -> Releases -> Source Code zip -> extract zip in C:\
  2. Terminal -> navigate to raylib\src -> mingw32-make PLATFORM=PLATFORM_DESKTOP
  3. Copy libraylib.a and paste into /lib in project folder

[ MacOS ]

  1. Get G++ compiler:
    brew install gcc
    g++ --version
  2. Raylib repo -> Releases -> raylib-version_macos.tar.gz -> extract in Users/your_username
  3. Copy libraylib.a and paste into /lib in project

[ Ubuntu Linux ]

  1. Get G++ compiler:
    sudo apt update
    sudo apt install build-essential
    g++ --version
  2. Raylib repo -> Releases -> Source Code zip -> extract zip in Home
  3. Terminal -> cd into raylib/src -> make PLATFORM=PLATFORM_DESKTOP -> sudo make install
  4. Copy libraylib.a and paste into /lib in project

Step 3: Compile and run main.cpp

  1. Open a terminal / the project in your editor
  2. make
  3. Windows: ./game.exe
    MacOS + Linux: ./game

About

DNS Raylib Workshop - Hosted by Saarang A.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published