Skip to main content

Kokodoko

Netherlands

Creative Technologist and Lecturer. I give workshops about building web apps, games and IoT devices with Typescript, Javascript, CSS, MakeCode, Arduino. Also dabbling in Machine Learning for the web.

1d
comment Error ''Cannot read properties of undefined (reading 'canvas')'' while creating a pixi.js app
Your own script probably runs before pixi is loaded. Can you try <script defer>your code </script>
Jul
18
answered 2D smooth movement from scratch (javascript, pixelart)
Jul
17
comment Uploading a video(file) through file explorer in Unity WebGl
I would suggest to do this on a separate html page and not from within the Unity game. Then you can just use a normal html file upload form, you don’t need any plugin. developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
Jul
15
comment How to return JSON response result to NodeJS application
It seems that express-handlebars creates HTML on the server and then sends the whole html page back to the browser. So you should be able to submit the form normally instead of using fetch. If you do want to use fetch you'll have to handle the result after fetch returns something. (by using then().)
Jul
11
comment How are GameManagers created in Unity?
Did you check Unity Learn? There are many guided paths that teach you all the basics. learn.unity.com
Jul
11
comment How are GameManagers created in Unity?
One big difference between Unity C# and oldschool SOLID C# is that in Unity you don't think as much in "classes" but more in components. A component has only one simple purpose. A Unity gameobject will have several components to create a behaviour.
Jul
11
comment In Unity, how can a regular RigidBody know if it collided with a CharacterController?
Thanks, this is working! But there is a delay of about ~0.5 second before the message actually sends/is received. Any idea what could cause this delay?
Jul
11
accepted In Unity, how can a regular RigidBody know if it collided with a CharacterController?
Jul
10
asked In Unity, how can a regular RigidBody know if it collided with a CharacterController?
Jul
10
comment Play failed: DOMException: Failed to load because no supported source was found
Can you add the whole code in your question, not as an image? Is there a reason why you use fetch and arrayBuffer to load a video, instead of directly setting the src of a <video> element?
Jul
8
awarded Notable Question
Jul
1
comment Event sourcing javascript implementation
Because of the unconventional coding style I find this code hard to parse. Why don't you use class notation with methods, instead of chaining functions in an object separated by a ,? Another potential issue is that functionality and graphic representation are mixed, so now I can't use the rotor to drive any different kind of animation than the one you hardcoded.
Jul
1
comment Is there any way in Css of getting a true vertical 100%?
I think you need to post a code example where it shows why height:100% doesn't work for you.
Jun
30
comment how can i make my sklearn prediction model better?
You could include the siblings/spouses from the dataset in your training
Jun
30
awarded html
Jun
29
answered How do I place two rows in a td cell: top and bottom of the cell?
Jun
26
comment React Hooks: useEffect() is called twice even if an empty array is used as an argument
@DrewReese I've read this whole page several times, but it's still not clear to me what the bug in my code could possibly be. Do I have to solve it? Is this expected behaviour in React? It seems even React experts don't have a definitive answer.
Jun
22
answered Encapsulating requestAnimationFrame loop in a class loses the object's this reference
Jun
19
awarded Notable Question
Jun
19
comment Use javascript animate() to animate css variables/properties
Some articles explain @property but that doesn't seem to be widely supported? developer.mozilla.org/en-US/docs/Web/CSS/@property
1 2 3 4 5