Monday, March 13, 2017

A Chemistry System?!

Hey all,

So, I got this idea from my trip to GDC last week, from Nintendo's The Legend of Zelda talk. The idea was to make a chemistry system for games, since physics engines already exist.

You can see the commit here: JFramework

Basically, I created a component (called material) with properties such as melting point, freezing point, boiling point, conductivity, temperature, etc. that keeps track of properties of a material. This component can essentially set objects to freeze, or melt, or whatever I need it to do given the right conditions.

On top of materials, I created an element component, which radiates a temperature and/or wattage.

The rules of the system are as follows:
  • A manager will have a global temperature to apply to materials.
  • Materials can exchange temperature and wattage from other materials, and elements.
  • Elements can exchange temperature and wattage from other elements. (i.e. a flame can be put out by water.)
It's a pretty basic rule set, and may be adjusted later.

I thought I would discuss what I was working on while NOT playing The Legend of Zelda: Breath of the Wild.

Speaking of Zelda... Play it. It's now my favorite game of all time, maybe a full review later?

New A Sound Plan footage here: YouTube