basic 2D game library.
npm install --save @oidoid/void
- Aseprite
- cwebp
to avoid threading template parameters throughout all code, declaration merging is used for the following:
DebugEntEntSchemaLoaderPoolMapSpriteSys
it's similar to modifying HTMLElementTagNameMap.
queries declare system dependencies.
sprite is a kind of common denominator for position and area. if the ent should have no visual representation, leave the sprite as hidden.
ents are updated in insertion order. the cam and then cursor ents should appear first.
components are parsed and updated in key order. the recommended order is:
debugInputidnametextspritetextWHcursorhudninePatchbuttontextXYinvalidoverride
systems are uniquely associated with a key. zero or one system per key. if multiple keys on an ent are associated with a system, it will be run multiple times per update.
there are two schemas: a game configuration (void.json) and level configs (*.level.jsonc). the parser assumes a valid schema to minimize code size.
levels are described with the level schema. some schema components may only be applied at parse time.
Ents and subsystems self-report as invalid when an update or render is required. Ents should avoid reading another ent's invalid state since it's cleared once that ent has been updated.
© oidoid.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
╭>°╮┬┌─╮╭─╮┬┌─╮
╰──╯┴└─╯╰─╯┴└─╯