Git Product home page Git Product logo

pixel-8's Introduction

Pixel-8

a fantasy console for making , tiny games or art Pixel-8

Specifications

โ€Œ โ€Œ
Display 64x64
Cart unlimited
Sound Not Supported
Code JavaScript
Sprites 64 8x8 sprites

Api

Canvas

  • boot(width,height);

Colors

  • RGB to color

    • rgbc(r,g,b);
  • RGB ro palette index

    • rgbi(palette,r,g,b);

Sprites

  • load cartridge sprite sheet

    • sprite('cartridge')
  • draw a 8x8 tile

    • spr(x,y,i,j);
  • draw a custom part

    • sspr(x,y,w,h,x1,y1,w1,h1);

Console

  • help();
  • open('cart');
  • editor();

Drawing

  • set color of a pixel

    • pset(x,y,color);
  • get color of a pixel

    • pget(x,y);
  • drawing filled shapes

    • rectfill(x,y,sizex,sizey,color);
    • circfill(x,y,size,color);
    • line(x,y,x1,y1,color,width);
    • trifill(x,y,x1,y1,x2,y2,color);
  • clear screen

    • cls(color);

Math

  • rnd(x);
  • flr(x);

Buttons

used with function!

  • btn_up();
  • btn_down();
  • btn_left();
  • btn_right();
  • btn_x();
  • btn_o();

Getting Started

PC Users

  • 1 - Download Source Code and extract
  • 2 - Open Player.html using your browser

Phone Users

  • 1 - Install a html , js editor
  • 2 - Download Source Code and extract
  • 3 - Open Player.html using html editor
  • 4 - run it

Type help() for help

Type run('cart-name') in console to run a cartridge from carts folder

Type editor() in console to open live viewer and editor

Creating New Project

  • 1 - Copy empty folder in carts folder
  • 2 - Rename it
  • 3 - Edit main.js or sprite.png

pixel-8's People

Contributors

toxeler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jcmacoder

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.