GithubHelp home page GithubHelp logo

pico-8_particle-simulation's Introduction

Simple Particle Simulation Using PICO-8

A simple particle simulation made with pico-8. Now only includes the explosion effect. Other effects might be achieved by changing serval parameters in the code.

Installation

Requirement: PICO-8 or Chrome
Open the .p8 file or the .png with PICO-8, or unzip particle_html.zip and open particle.html to play in browser

Control

Z to change palette
X to explode!

Parameters

p_rnd=true --random position
p_auto=true --auto explosion
p_auto_freq=30 --frequency of auto explosion, up to 30/s
p_x=64
p_y=64
p_num=100 --# of p each explosion
p_max_num=500 --# of p allow in the pool before resuing
p_r=5 --radius
p_vx=2
p_vy=2
p_life=3 --life time
p_style=0 -- 0=>fill 1=>wire
plt_num=1 --palete using (1-#plt)

--palette of explosion.
--randomly pick a color
--from the selected subtables
plt={{9,10},
{8,9,10},
{2,8},
{2,8,14},
{6,7},
{5,6,7},
{1,12},
{1,12,13},
{3,11},
{3,11,12}}

Written with StackEdit.

pico-8_particle-simulation's People

Contributors

wiiasd avatar

Watchers

 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.