Its kinda weird at first, but once you realize the patterns its all the same as javascript + types and a couple cool new things that save a ton of time when it comes to defining classes and their properties. Interfaces are a must, and constructor private/public param binding is legit too. Plus then with all the extra code security/safety nets it puts in makes it well well worth it especially as your codebase grows in size.
I even shave my head:) but it still starts to show:)
there is hot loading and watch functions in webpack for sure.
I use
npm run start
, and that boots up a server with the page going strong. It reloads just as fast as hitting play on the playground.
Havok Demo with Three.js
Sorry for the off topic - since it is not made in native babylon - but it was too cool not to mention this!
Really B E A U T I F U L
Nice Geometry, perfect materials and perfect Ilumination with super soft-shadows
found a little jumping game. press on the “hopp!” button
Nice !!! I have never seen this one before !!!
109.74
390.01!
(though I may have injected this line of code after line 384 to help just a little…)
( (10 - (distance%10)) < speed * 0.3 + 1.3 && !jumpTriggered && (function() { player.jump(); jumpTriggered = true; })()) || ((10 - (distance%10)) >= speed * 0.3 + 1.3 && (jumpTriggered = false));
Absolutely LOVE it
May i steal the idea for future work?