Midnight Blue Game and Engine
|
MB2D (Midnight Blue engine for 2D) is a free and open source (MIT License) 2D game engine built on top of the fantastic MonoGame API. A general purpose engine intended for any genre of 2D game, MB2D is code-only and uses the MonoGame content pipeline for resource management.
Views
that can be attached to any sceneLastKeyTyped
, LastChar
etc.CollisionComponent
and AABB to an entity. What exactly does efficient mean, though? The MB2D showcase game, Midnight Blue, is checking collisions against 5,000 on-screen AABB's at once at well over 60FPS.Right now, MB2D still has a dependency on MonoGame for spritebatching, content management, and some primitives so you'll need to download that and install on your system. Then download the MB2D DLL from ____ and add to your projects packages.
Everything in MB2D happens in Scenes
which makes getting started with a game super easy - All you need is Main
and a Scene
.
First, create a new scene:
Now define a Main entry point with a new MBGame
class passing in the type of scene you want the game to start with, in this case HelloScene
:
And that's it! Use the MonoGame pipeline tool to import any resources needed, otherwise enjoy MB2D!
Explore the horizon in a procedurally generated galaxy consisting of thousands of star systems and hundreds of thousands of planets in your ship, the Midnight Blue.
Built initially as a showcase for MB2D, a code-only 2D game engine built on top of MonoGame, Midnight Blue is currently a top-down space simulation, with the ability to travel across the galaxy, traverse star systems, land on planets with varied biomes and explore them to an eerie synth opera soundtrack. However, the plans for the game are much greater with the following in the works:
The MIT License (MIT) Copyright (c) 2016 Jacob Milligan
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.