itsAlive.js - mario
✓ Published0🌍 Public
SSladav
Last edited Jan 24, 2017
Created on Jan 16, 2017
This example demonstrates a Mario character that moves left, right, and jumps in response to arrow key input, with its position updated in real time on a grass-backgrounded page. Built with itsAlive.js and d3.v4, it uses living values and reducers to react to keydown/keyup events and a 60fps tick interval. The marioImage_ living value has side effects that update the img element’s src attribute and CSS left/bottom properties, while keypress, velocity, and position states flow through a functional pipeline.
AI-generated description