Giter Site home page Giter Site logo

seltee / vireye_tools Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 585 KB

Vireye is homebrew game console, that uses stm32f103c8t6 and ili9341 display.

Home Page: https://www.youtube.com/channel/UCXrhS68bHb1x0Uz-jLApMRA?view_as=subscriber

C 0.83% C++ 99.17%

vireye_tools's Introduction

This is tools for homebrew game console Vireye.

More infomation about this: https://github.com/seltee/vireye_core

Linker

Linker is the program, that gets .o files and combines them into .vex file. This format is executable of Vireye console.

Usage example: linker.exe main.o main.vex

Converter

This program turnes your images into something you can show on vireye. It creates pallete of colors and image arrays in .c and .h files. The maximum amount of colors is 255 (not 256 because 0 is always transparent color) and if you will exceed this value converter will reduce amount of colors to 255. For images it will choose nearest value, dithering is not supported. Note, that header files contain not only "extern"'s of your sprites, but also their width and height.

Basic usage: converter.exe image.png

This command will produce pallete.h and pallete.c, that you need to include into your object.

Also converter supports constant colors like this: converter.exe 0xffff 0x000000 image.png (both RGB565 and RGB888. RGB888 will be simply reduced to RGB565)

Constant colors will never be reduced and will be placed in the exect order, that you wrote them in command, starting from 1 (zero is transparent, do you remember?). Images may also use it after color reduction, if your constant colors will be close enough to reduced ones.

For specifying some parameters you need to use flages. -p flag sets image colors to be prioritized on the image reduction process. It's may be usefull if your game for example uses 128 colors for sprites and you have big images with a lot of colors and lazy enough to not convert them into your primary pallete with Photoshop or Aseprite. Converter will do it for you, but with saving your basic sprite colors.

Usage: converter.exe image.png -p sprite.png -p sprite2.png bigimage.png

With w[number of frames] you may split up sprites into an array of sprites. For example you have animation in the single image, that contains 10 sprites. Just use:

converter.exe image.png -w10p sprite.png -p sprite2.png -w5 sprite3.png

Width constant in header will contain width of one frame.

vireye_tools's People

Contributors

seltee avatar

Forkers

vehar

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.