GithubHelp home page GithubHelp logo

rafaelvasco / blit64 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 260 KB

C# Retro Style 2D Engine

C# 99.96% Batchfile 0.04%
retro-style pixmap game-engine game-development game-2d retro immediate-mode software-rendering csharp sdl2

blit64's Introduction

BLIT64

C# Retro Style 2D Engine

Current Screenshot

BLIT64 Screenshot

Mission: Retro Fantasy Console style game engine.

Inspired by several game engines and fantasy game consoles. The editor interface is especially inspired by TIC-80.

Status: WIP

Tech Stack

  • C#/.NET Core 3.1+

External Libs

  • SDL2 (SDL2CS)
  • Binaron.Serializer
  • StbImageSharp

Current Features

  • Retro style color indexed based rendering.
  • KB and Mouse Input, later GamePad too.
  • Immediate mode rendering style: Draw index-based bitmaps, text and primitives
  • Palette Based Rendering: All pixel values are index values on a palette. Change palette and everything changes.
  • Gui System: Statefull, container-child based, with Theming. In Progress. Current Controls: Button, CheckBox, Window, ListView (ScrollList), Label, TabView, Panel.
  • PAK based asset handling. When the game is loaded, asset data is loaded from PAK files, which contain assets metadata and image data.
  • Game Editor: In Progress: Sprite Editor. Planned: Map Editor. Future: SFX and Music editors
  • Rendering scheme: Everything is directly drawn into Pixmaps. Pixmaps are arrays of colors. Each color is in fact an index inside a palette. The renderer class is called Blitter. Blitter takes a Pixmap and modifies its colors. By default Blitter draws inside the main window Pixmap. If you want to draw to another pixmap just set it as draw target to Blitter. Pixmaps can be drawn on other Pixmaps . There are some specialized Pixmaps: SpriteSheet, Fonts. SpriteSheet is and indexable Pixmap from which you can draw portions of it or the entire thing at once. Each portion is indexed by an integer number. Alternatively names can be assigned to each portion for better referencing. Font is a kind of SpriteSheet in which each portion is additionally index by character. Each character correspond to a portion of the SpriteSheet. Everything that is inside a SpriteSheet can be referenced and grouped inside a Map. So a Map is basically a big array of indices of a SpriteSheet to be later drawn onto the screen or another Pixmap. After everything is drawn to the main game Pixmap, the former is then translated to a DrawSurface which is an array of bytes representing rgba color components, four for each color. This then is copied to a final Texture to be rendered on screen.(Obs.: This scheme is not fully defined yet.)

blit64's People

Contributors

rafaelvasco avatar

Stargazers

 avatar

Watchers

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