UNPKG

collider.jam

Version:

Hand-crafted and fun to use game framework for jamming, creative coding, and rapid game development

10 lines (7 loc) 265 B
// Use /lib to place stateless utility functions like this // @returns {number} - number of planets in the lab function planetCount() { // select all instances of dna.Planet // and return the length of the result return lab.select('.Planet').length }