Core2D is the powerhouse used by Maragato マラガト apps, among others. It is the evolution of Videogame, which in turn was the evolution of Quick. In its current form, it adopts JavaScript modules, leveraging the full power of Object-oriented programming.
Apps created with Core2D are made of one or more scenes, which may contain one or more sprites. These objects have properties that can be customized to shape their behavior. It's that simple.
Download or clone/fork the skeleton project to start building your app. Alternatively, the library can be also installed to your existing/new project:
npm install core2d
The best way to learn is by doing, and you can see what Core2D is capable of through existing open-sourced apps. Check the Hall of Fame below for some source code.
Please consider joining the Discussions for collaboration and support.
Translated to callbacks, to keep update logic clean.
Assets and their transformations are reused automatically to keep a solid performance.
Human interaction is unified via abstractions, so that apps will just work, regardless of the devices in use.
Gamepads or keyboard. When using a keyboard, sensible defaults (minding accessibility) are used, as seen in KeyMap.mjs.
Mice or touch screen.
Internal geometry frees the app logic from displays, i.e. your app can have an internal logic resolution of 800x600, while running on any display size.
The core of the library (under src/
) should remain agnostic and lean. Updates to the core library are usually related to technology developments in the platform (web API advances), while staying true to the basic concepts of the library, which are common to all apps.
Opinionated functionality should be implemented in the form of a plugin (under src/plugin/
). Plugins can add features that are domain driven, such as elements that can be reused by multiple apps, but not necessarily by every app.
Apps created with Core2D:
- Asteroids Remake (source)
- Cityscape - Single-player arcade survival game
- Cucurbita's Halloween
- Dragonfire (source)
- Missile Commander (source)
- Ms. Starship - Multi-player arcade shoot'em up
- Mythology - Single-player arcade pinball
- Raycaster (source)
- Starship - Single-player arcade shoot'em up
- Super Breakout Bros. (source)
- Tower Defense (source)