So the new year is upon us and it’s time I got back to this. I’ve been a bit distracted lately – Christmas and all that, as well as building factories in Factorio. This week I’ve tried to finish off my conversion to a React based interface. This has proved to be quite problematical, mostly
Continue reading Kotlin and React Progress
Tag: web worker
Message Passing in Web Workers
Once I’d implemented the Web Worker split, I had a new problem: How do I pass the messages back and forth? The main issues here is that I have to send the game state from the worker and the web page, and send requests for player interaction to the worker. Message Object The first thing
Continue reading Message Passing in Web Workers
Web Workers in Kotlin
Something I’ve known is useful for a web game is using Web Workers – the reason for this is that we need something to run in the background when the page isn’t active, and a page’s timer runs much more slowly when the page isn’t in focus (eg if you go to another tab) Kotlin does
Continue reading Web Workers in Kotlin