项目作者: bity-8

项目描述 :
Yet Another Fantasy Console.
高级语言: Rust
项目地址: git://github.com/bity-8/bity-8.git
创建时间: 2018-05-16T23:36:25Z
项目社区:https://github.com/bity-8/bity-8

开源协议:GNU General Public License v3.0

下载


" class="reference-link">

BITY-8 is a fantasy console comparable to many others fantasy consoles: PICO-8,
TIC-80, LICO-12, PV8, and many more!

To understand what a fantasy console, imagine the old Nintendo Entertainment
System. Now put that console into a program. Shazam! You have an emulator.

The difference between an emulator and a fantasy console is that the
hardware for the fantasy console has never existed before, but it could!

Fantasy consoles are slowly gaining popularity because they are fun to play
with and fun to develop with. Begin your BITY-8 journey today!

Hardware Specifications

Main Specs

Specs may slightly change during alpha. But most are set in stone.

  1. Cartridge: 256KB expandable space
  2. Code: Lua 5.2, cartridge stores source code
  3. Display: 192x144 screen
  4. 4-bit rewritable palette
  5. 60 FPS
  6. Input: D-pad, A, B, START, SELECT
  7. 4 controllers
  8. Memory: 256KB read area
  9. 64KB read/write area
  10. Music: 32 2-byte note measures, 4 measure staves
  11. 0-255 staves
  12. Map: 96x72 8-bit cell maps
  13. 0-31 maps
  14. Sprite: 96x72 4-bit pixel sheets
  15. 0-63 sheets
  16. Sound: 4 channel
  17. 8 instruments (128 samples, 8-bit amplitudes)
  18. 88-key (piano) range
  19. 60 notes a second
  20. 4 default waves (square, sawtooth, triangle, noise)
  21. 4 custom waves

Standard Library

Here is the list of supported standard library functions so far:

  1. _peek _poke _mset _mcpy
  2. _max _min _floor _ceil
  3. _sin _cos _atan2
  4. _sqrt _abs
  5. _rand
  6. _and _or _xor _not
  7. _rotl
  8. _draw_rect _draw_line

Note that the standard library is still in alpha, and may change at any time.

Running Alpha

This assumes that you already have rust installed on your system. If you don’t,
see this.

Next, make sure you have both the sdl2 and sdl2_gfx developer packages
installed on your system. On Arch Linux, this looks like:

  1. sudo pacman -S sdl2 sdl2_gfx

If you have a different operating system/package manager, you may want to
consult this page.

After meeting those two requirements, it should be simple to run BITY-8 on your
machine:

  1. # Clone the repo
  2. git clone https://github.com/bity-8/bity-8.git
  3. # Go into the demo directory.
  4. cd bity-8/bity-8/assets/demo
  5. # Compile the demo program.
  6. ./comp.sh
  7. # And run the demo program with BITY-8!
  8. cargo run out.b8

That’s it, you have the alpha version of BITY-8 running on your machine now.