Skip to content

JuhaKiili/Fupixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Fupixel

Code-centric pixel framework for Unity.

Want to make games in Unity with using SetPixel() and GetPixel() only? Now you can.

Fupixel handles the Unity setup. All you need to do is start poking those pixels from code :)

Quickstart:

  1. Create a new scene
  2. Add empty GameObject
  3. Drag Fupixel script to the new GameObject
  4. Drag Examples/SinglePixel.cs to the new GameObject
  5. Press play

You can setup your resolution from the Fupixel-component inspector. It's probably a good idea to set your player resolution to match it. For example 160x120 for Fupixel and 640x480 for Unity player gives you nice 4x pixels.

Examine the source code and examples for more information.

TIP: SetPixel(int index, byte r, byte g, byte b, byte a) is the fastest way to set single pixel.


Examples:

Starfield http://juhakiili.com/fupixel/starfield

Snake http://juhakiili.com/fupixel/snake


MIT License Source code for Fupixel is Copyright © 2013 Juha Kiili and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Code-centric pixel framework for Unity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages