Translating Bit Invader from Codea into JavaScript

Simon tried to reconstruct Bit Invader game (from Codea.io) in JavaScript, but got stuck at a certain point when he was programming the enemy to recognize the hero and the … Continue reading Translating Bit Invader from Codea into JavaScript

Thoughts on Fidget Spinner Simulation

In his recent Live Stream, Daniel Shiffman announced he would make a fidget spinner simulation in the near future. Inspired by this idea, Simon has jotted down some code for … Continue reading Thoughts on Fidget Spinner Simulation

Box2D into Codea, Java into Lua

Several recent translations of Box2D examples (from Daniel Shiffman’s book The Nature of Code) into Codea, that is Processing (Java) into Lua. Both Box2D and Codea are physics libraries. Surface: … Continue reading Box2D into Codea, Java into Lua

Autonomous Agents. Steering Behaviors. Flocking.

Simon’s full-screen take on Flocking, based on Chapter 6 from The Nature of Code (Autonomous Agents). The code comes from Daniel Shiffman’s tutorial Combining Behaviors: Flocking. In Simon’s words, Autonomous … Continue reading Autonomous Agents. Steering Behaviors. Flocking.

Cellular Automata in Arduino

Yesterday Simon spent the whole day studying the concept of Cellular Automaton (CA), a discrete model of a system of “cell” objects used in physics, math and theoretical biology. He … Continue reading Cellular Automata in Arduino

Smart Rockets Coding Challenge translated into Processing (Java)

And here is Simon’s translation of Daniel Shiffman’s Smart Rockets Coding Challenge into Processing (Java). This challenge (originally in JavaScript) was about implementing a genetic algorithm from scratch and create “smart rockets” … Continue reading Smart Rockets Coding Challenge translated into Processing (Java)

Pinball Dilemma. Simon’s own code.

Simon heard the word “pinball” and looked it up on Google (never played it himself). He then decided to write a pinball program in Processing (Java), but soon encountered a … Continue reading Pinball Dilemma. Simon’s own code.

Rose Petals with Attraction Repulsion Algorithm. Simon’s own code.

Simon wrote his own code in Processing (Java) to draw flowers using the attraction and repulsion algorithm with the ToxicLibs library. He also put this project on GitHub: https://github.com/simon-tiger/rosepettels_toxiclibs_verletphysics