jonathanperret / paysage

Paysage is a visual shared playground for code.
http://paysage.xyz
GNU Affero General Public License v3.0
19 stars 9 forks source link

Rewrite creature example #101

Closed etienneCharignon closed 6 years ago

etienneCharignon commented 7 years ago

This is almost a rewrite of the creature example.

Actually, this has been done through refactoring but arrived to a very different implementation.

I kept the intermediate commits for information but I'm expecting a squash before merging to master.

etienneCharignon commented 7 years ago

I'm still working on simplifications. You might want to wait before reviewing.

jonathanperret commented 7 years ago

❤️

etienneCharignon commented 7 years ago

I'm finished with this. I've been pretty far into refactoring it but without changing the behaviour (hopefully).

Comments are welcome.

jonathanperret commented 6 years ago

Nice work! I was about to merge this but found something annoying: the code is not compatible with the (Java) Processing PDE. I think we should keep it valid Java, even though the Processing.js transpiler is very tolerant. Hopefully this is not too hard to do.

jonathanperret commented 6 years ago

I just tried to run the original version (before your changes) in Processing and the following changes were needed:

Other than that it runs fine. When I tried your version a number of things did not even compile (const does not exist in Java, for example).

jonathanperret commented 6 years ago

👍