filmov
tv
Making a WEB GAME in Swift and WebAssembly!
Показать описание
Today I re-made snake using Swift and compiled it to WebAssembly using Tokamak, JavaScriptKit and Carton. The end result is a game that is playable in any browser.
This is probably one of the cleanest WebAssembly development environments I have seen so far. There are still a few quirks and missing features, but overall, the Tokamak framework is ready to be used.
The incredible part of this is that I did not have to touch the CSS, HTML or JavaScript to make this game. Everything can be written in pure Swift.
== Source code on GitHub ==
If you want to see the source code as it was after creating this video:
If you want to see the source code with some changes I have made since uploading this video:
== Play the game on my website ==
== Other links ==
== Music used in this video ==
Music by Anton_Vlasov from Pixabay
Music by RomanBelov from Pixabay
Thank you for watching, and happy coding!
This is probably one of the cleanest WebAssembly development environments I have seen so far. There are still a few quirks and missing features, but overall, the Tokamak framework is ready to be used.
The incredible part of this is that I did not have to touch the CSS, HTML or JavaScript to make this game. Everything can be written in pure Swift.
== Source code on GitHub ==
If you want to see the source code as it was after creating this video:
If you want to see the source code with some changes I have made since uploading this video:
== Play the game on my website ==
== Other links ==
== Music used in this video ==
Music by Anton_Vlasov from Pixabay
Music by RomanBelov from Pixabay
Thank you for watching, and happy coding!