项目
在 GitHub 查看
ftsf/nico
关于
一个受 Pico-8 启发、使用 Nim 编写的游戏框架。
游戏与模拟器可以做什么
- It's fun and easy to use
- Learn Nim the fun way! It's a great new statically typed programming language that compiles to C.
- You can build for Web, Windows, Linux, Mac, Android, and potentially other platforms.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文NICO Game Framework
NICO is a simple game framework for the Nim programming language inspired by the PICO-8 API.
Supported platforms:
- Windows
- Linux, including RaspberryPi
- Web/HTML5 via Emscripten
- Android
- MacOS
What it does:
- Paletted Bitmap Graphics (you can load a custom palette up to 256 colors)
- Fixed or flexible custom display resolution with pixel scaling
- Sprite drawing, load png spritesheets, specify tile size per sheet (can load multiple and switch between them)
- Tilemap drawing, import json from Tiled
- Drawing primitives: pixels, lines, rectangles, circles, triangles
- Input: Keyboard, Gamepad, Mouse, Touch
- Sfx playback: load and play ogg vorbis files, configurable number of mixer channels.
- Built in chip synth
- Music playback: stream ogg vorbis files.
- Custom audio callback for generating your own sounds via code.
- Text drawing: load and draw fonts from png, supports variable width fonts.
- Export animated gifs
Installation
- You will need to have the Nim compiler installed
- Run
nimble install nico - Run
nicoboot <yourname> <projectname> <directory>to create a new directory with an example base ready to start working with. - You can watch a quick tutorial here
- Native build:
- You'll need SDL2 for native builds, on Windows, ensure SDL2.dll is copied to your project directory.
- From your project directory run
nimble runrto build and run the example as a native build. - From your project directory run
nimble rundto build and run the example as a debug native build.
- Web build:
- For web builds you'll need Emscripten.
- From your project directory run
nimble webrto build for web in release mode. - From your project directory run
nimble webdto build for web in debug mode.
Learning
Why should you use NICO?
- It's fun and easy to use
- Learn Nim the fun way! It's a great new statically typed programming language that compiles to C.
- You can build for Web, Windows, Linux, Mac, Android, and potentially other platforms.
Future work:
- API Documentation
- More examples
- Tests
- Utility modules for common higher level tasks
- Browser to browser networking using WebRTC
- Immediate mode GUI
- 3D Utils and Rasterizer
Games made using NICO:
探索相关项目
加载中…