Coder Social home page Coder Social logo

asteroidsengine's Introduction

Asteroids Engine

The Asteroids engine is a C++ 2D engine.

Features:

  • Simplistic Networking interface (with automatic syncing of entities and components, and is quite resilient to lag)
  • Networked components and entities
  • Networked 2D physics
  • GUI system (powered by TGUI)
  • Window and audio system (powered by SFML)
  • Logging and error handling system

The engine is named after where it originated from, the game Asteroids. Documentation is a work in progress, but most of the code is self-explanatory.

Libraries

There are many libraries that the asteroids engine uses:

  • bitsery: For serialization and deserialization of networking messages
  • flecs: Entity-Component-System handling
  • GameNetworkingSockets: Steam's networking library, used for of course networking
  • SFML: Audio, Window, Rendering handling
  • TGUI: GUI handling
  • THST: Spatial partitioning library
  • nlohman/json: For config reading and writing
  • boost: various utility functions

Important for those building on Windows

It is required that you use VCPKG to build this engine, it is part of this engine's toolchain on Windows. Below is a step by step guide on how to install vcpkg

Installing vcpkg:

$ git clone https://github.com/microsoft/vcpkg
$ .\vcpkg\bootstrap-vcpkg.bat
$ .\vcpkg\vcpkg integrate install

Installing the neccessary packages with vcpkg

.\vcpkg\vcpkg install GameNetworkingSockets --triplet=x64-windows
.\vcpkg\vcpkg install protobuf --triplet=x64-windows

This is a crucial step! Guide yourself to the "Edit Enviroment Variables for your account" panel, next click "new." In the "variable name" field type "VCPKG_ROOT," and then under the "variable value" field insert the file path of where you cloned vcpkg, including the vcpkg directory itself. The variable value field should look something like this: "C:/My/path/to/the/thing/vcpkg"

Finally, in between where you call cmake_minimum_required() and your project(), insert this:

if(WIN32)
    message("Using the VCPKG Toolchain for Windows")
    set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")
endif()

asteroidsengine's People

Contributors

kubic-c avatar cwp1701 avatar

Stargazers

 avatar Ilya avatar Benji avatar  avatar Arn avatar

Watchers

 avatar

Forkers

cwp1701

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.