Giter Club home page Giter Club logo

morbula's Introduction

Morbula

1/2/2021

A barebones 2d game/collision engine for personal project(s). Mostly focused around creating interesting 2d platformer movement and co-op/versus gameplay mechanics. (It's prronounced morb-you-la, like morbid and nebula)

Made referencing the Lazy Foo SDL tutorial.

Project Goals

  • Make the (2d) physics engine abstract enough that 3d assets can eventually be used, perhaps with another rendering engine alltogether
  • Keep the game state sufficently sepeprated from the rendering logic to allow for rollback netcode via ggpo

Code Improvements

Toolchain

Dependencies

Ideas & Notes

  • co-op camera: two local players have a split screen, each with their own camera tracking them. If they come within range of eachother in world space, their cameras move towards where they would turn into one camera. Add hysteresis so the camera can more easily stay locked as a single wide camera.
  • Different character ECBs are different sizes in melee. It looks like they actually dont collide with eachother eather, characters just exert a force (I will make this proportional to their mass) on eachother when their ECBs overlap
  • What the heck are '&' symbols doing in function parameter lists?

Build It

Makefile coming soon!

g++ -w ./lib/gca-plus/*.cpp -lusb-1.0 ./src/*.cpp -IC:\msys64\mingw32\include\SDL2 -LC:\msys64\mingw32\lib -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -std=c++17 -o ./bin/game -Ddblogs
  • warnings: -Wall for all warnings or -w to supress all warnings. other warning types exist to give you some granual control over which warnings you want, such warnings can be found can be found here
  • add -Wl,-subsystem,windows option to detach from console at startup
  • add -Ddblogs option to build with debug logs enabled, they wont be printed if the above option is also used
  • you may have to replace -IC:\msys64\mingw32\include\SDL2 and -LC:\msys64\mingw32\lib with your own install directories if you chose something other than the default install locations
  • libraries -l* are placed directly after the source files that use them
  • find the name of a library in its package config file, which is located in [mysis64-install-location]\mingw64\lib\pkgconfig\[libary name].pc

morbula's People

Watchers

James Cloos avatar Cynthia avatar

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.