Coder Social home page Coder Social logo

games's Introduction

Games

Snake

Compiling the Snake Game

To compile the Snake game, you can use the following command:

g++ -o ./snake/snake ./snake/snake.cpp -lncurses

Running the Game

To start the Snake game, simply run the compiled executable:

./snake/snake

Ping Pong

Setting up raylib for ping-pong-raylib

This guide will walk you through setting up the raylib library.

Step 1: Clone raylib repository

Clone the raylib repository from GitHub:

git clone https://github.com/raysan5/raylib.git

Step 2: Navigate to raylib source directory:

Change directory to the src folder inside the cloned raylib repository:

cd ./raylib/src/

Step 3: Build raylib:

Build the raylib library using make:

make

Step 4: Copy library and header files:

Copy the built libraylib.a, raylib.h, and raymath.h files to your project directory named "ping-pong-raylib" (replace <your-path> with the path to your project directory):

cp libraylib.a <your-path>/ping-pong-raylib
cp raylib.h <your-path>/ping-pong-raylib
cp raymath.h <your-path>/ping-pong-raylib

Compiling the Ping Pong Game using MacOS

To compile the Ping Pong game using MacOS, you can use the following command:

g++ -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL -std=c++11 libraylib.a pingpong.cpp -o pingpong

Running the Game

To start the Ping Pong game, simply run the compiled executable:

./pingpong

games's People

Contributors

lutaii avatar

Watchers

 avatar

games's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.