Git Product home page Git Product logo

gameenginesandbox's Introduction

GameEngineSandbox

Azure pipeline badge CodeFactor CodeQL

To try this small game engine follow these steps:

git clone https://github.com/johanlindfors/GameEngineSandbox.git

Make sure to fetch the thirdparty submodules:

git submodule update --init

These two commands can be combined as follows:

git clone --recurse-submodules https://github.com/johanlindfors/GameEngineSandbox.git

Building a Win32 version

If you want to build Win32 version, make sure to bootstrap vcpkg and fetch Win32 specific dependencies

./dependencies/thirdparty/vcpkg/bootstrap-vcpkg.bat
./dependencies/thirdparty/vcpkg/vcpkg.exe install glew:x64-windows
./dependencies/thirdparty/vcpkg/vcpkg.exe install libpng:x64-windows
./dependencies/thirdparty/vcpkg/vcpkg.exe install opengl:x64-windows

You can leverage the pipeline.ps1 Powershell command to automate the creation of the projects for your preferred platform.

Only generate a debug version for Win32

pipeline.ps1 -win32 -debug -generate

Compile an already existing debug configuration for Win32

pipeline.ps1 -win32 -debug -compile

Generate and build a release version of Win32, leveraging an already installed vcpkg-toolchain

pipeline.ps1 -win32 -build -toolchainFile:[path to explicit toolchain file for vcpkg]

Building a UWP version

pipeline.ps1 -uwp -build

Building on Ubuntu 22.04 or MacOS

Make sure to install the following:

sudo apt install libpng-dev pkg-config libglfw3-dev libssl-dev libjpeg-dev

Generate all the files needed to build the application, build and run:

cd build
cmake ..
cmake --build .
./games/sokoban/sokoban

There are three small games that can be build by passing the name as an argument to CMake such as:

cmake .. -DGAME_TO_BUILD=snake

or

cmake .. -DGAME_TO_BUILD=flappybird

or

cmake .. -DGAME_TO_BUILD=sokoban

There is also a simple sample that demonstrates the 3D capabilities with a ModelRenderer

cmake .. -DGAME_TO_BUILD=sample

Here are some screenshots of the current state of the applications/games:

Game on!

gameenginesandbox's People

Contributors

johanlindfors avatar johanlindfors-ts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gameenginesandbox's Issues

Implement filesystem functionality for Android

Android doesn't provide a native filesystem access into files that have been bundled with the app. Need to create functionality for loading files from bundle, and loading+saving to cached storage outside app data.

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.