Git Product home page Git Product logo

null0's Introduction

null0

This is a very simple cross-platform (including web, and fast native) game library that uses wasm on all platforms (compile once and distribute.) It takes inspiration from love2d and wasm4, but it's way less complete. Initially, it will just be a demo project for building your own stuff, but I hope to make a CLI tool for getting started quick, and maybe a libretro core and a few modules you can optionally use (networking for example.)

You can think of it as a "fantasy console", but it's not nearly as constrained or complete as other really awesome ones, like wasm4, TIC80, etc. If you want something more like a gameboy, try wasm4 or TIC80. If you want a complete game library, try raylib (with many native language bindings) or love2d (fun, lua-based wrapper around SDL, that is easy to work with, if you don't need anything else.)

You can see the current demo here.

features

  • sound - audio-files & mod-music
  • graphics - 320x240, any colors, driven by images/sprites, not really shapes/pixels/etc
  • input - mapped from keys & joystick, A, B, X, Y, L, R, start, select, digital directional

You can write your games in any language that compiles to wasm (simialr to wasm4, where you import the header for the language you prefer.)

One idea is to setup fast/easy dev in a browser, then later you can use that same wasm file with a native runtime.

Currently, I am putting it all together, so it's mostly just a demo/dev project. You can install deps with npm i, and all the tasks are setup as top-level npm run tasks:

# build the example wasm game (written in assemblyscript)
npm run build:example

# build the native C runtime
npm run build:native

# Build & run the example in the native runtime
npm test

null0's People

Contributors

konsumer 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.