back

Game of Life

Play

Description

I had heard Vue 3's new composition api works well together with Typescript, and felt like I should test it out. I used Vite's default Vue + Typescript template to make a quick little sandbox game about a growing forest, based on John Conway's Game of Life.

So far there are only 3 types of plants; grass, bushes and trees. I didn't really have any inspiration to make any more stuff. The main goal was playing around with Typescript and the composition API. I feel like that works pretty well, although I've noticed in other projects that using Typescript in Vue can get a little bumpy if you want to use it together with state management like Pinia. But overall it's a success and I do prefer composition over the old options api.

Screenshot

a screenshot of the game