• Stars
    star
    282
  • Rank 146,549 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Game of life with particles

Particle Light

Particle Life

A game of life using particles, instead of cells.

A JavaScript conversion, based on Particle-Life by HackerPoet.

See it in the browser

Todo

  • Optimize rendering
    • Perhaps switch from canvas-sketch to a more stable and performant library (or home-grown)
  • Further optimize the algorithm.
    • Use fixed-size data structures instead of arrays?
    • Allocate as much during initialization, before rendering.
    • Measure and optimize Universe.step() function.
    • Measure random-js and prob.js performance to ensure it is not a huge bottleneck.
  • Add camera logic with zoom and tracking.

Known Bugs

  • Rendering performance is currently pretty poor (18-20 fps).
  • There's no keymapping for zooming / reset, yet.

Development

Scripts

  • start β€” Start development. Opens browser and enables Hot reloading.
  • build β€” Build distrobution-friendly files.
  • format β€” Format files with prettier.

Contributing

Contributions are very welcome. If you've found a bug create an issue or even better, a pull request.

Credits

HackerPoet better known as CodeParade, for the original implementation. Check out his YouTube channel.

More Repositories

1

sketch-dockpreview

A Sketch plugin that lets you preview your current artboard in the Dock.
JavaScript
90
star
2

behave-theme

A theme that makes you happy like cats on the internet, and Morgan Freeman's sexy voice.
85
star
3

css3-uiswitch

A pretty sweet and pure CSS3 iOS 7 UISwitch
CSS
53
star
4

fnky

My profile
35
star
5

studiomdl

A cross-platform compatible version of studiomdl for Half-Life.
C
17
star
6

SublimeIt

An extension for Alfred to open selected or specified files in Sublime Text 2
13
star
7

react-nodegui-testing-library

Simple React NodeGui testing utilities that encourage good testing practices.
TypeScript
8
star
8

uh-oh

Makes error handling beautiful in express
JavaScript
5
star
9

svencoop-mapping

Extensive documenation for Sven Co-Op mapping
5
star
10

editorial

Rich editor and blog system
TypeScript
4
star
11

particle-life-rs

Particle Life implemented in Rust
Rust
3
star
12

gulp-parker

Gulp plugin for Parker, a stylesheet analysis tool.
CSS
2
star
13

rust-chat

A scalable chat service using WebSockets implemented in Rust
Rust
2
star
14

deno_base

A boilerplate project for Deno modules and programs
TypeScript
2
star
15

events-data

Events data
2
star
16

aoc2022

My solutions to Advent of Code challenges in Rust
Rust
2
star
17

alfred-themes

My collection of various Alfred themes
2
star
18

es4x-139-relative-path

An example of how ES4X can not run files within a sub directory.
TypeScript
2
star
19

fontess

A Font Custom Boilerplate
2
star
20

BlenderSourceTools_GSRC

Allow to export SMDs compatible for GoldSource to avoid remaking them in Milkshape or by editing the file
Python
2
star
21

celina

Nice and focused dark theme
Shell
1
star
22

nex

A utility library for games and applications with heavy use of vectors and OpenGL.
C
1
star
23

RBHamburgerMenu

Objective-C
1
star
24

sublime-config

My sublime configuration
1
star
25

anywho

A service to find songs in livestreams
1
star
26

Rayless

A subtle dark theme for Alfred 2
1
star
27

Freeflow

An OS X app to create flow charts – just for fun... for now
Objective-C
1
star
28

fnky.github.io

Personal website
ApacheConf
1
star
29

extend-accessors

extend objects with accessors without poofing
JavaScript
1
star
30

CleanFrameView

Content view for borderless NSWindow, that allows you to precisely control it appearance.
Swift
1
star
31

language-fgd

FGD (Forge Game Data) language support in Atom
CoffeeScript
1
star