Today at RC was dubbed “impossible day” – the goal was to try to build something that was well beyond our edge. I decided to try to build the game Set as a desktop game, using React and Electron. Since I hadn’t really ever built anything in Electron before and since I haven’t built a (non-terminal based) game before, this felt like a good challenge. I didn’t get super far – most of my time was spent fighting with styling svgs and figuring out how to get the electron app up and running.
But, for only a few hours worth of work, I think where I ended up is pretty cool.
Some things I learned:
module and commonjs is important when building an electron app, but not entirely sure whynpm run dev and in the electron app as npm run start. App has to be rebuilt every time if wanting to run it in Electron, but can use the browser for hot reloading for faster dev loop