Make WebAssembly vector games using AssemblyScript

preview_player
Показать описание
This is a tutorial video for making old-school vector based arcade games for WebAssembly. This is an intro tutorial, where I am using AssemblyScript and VectorEngine to create a simple vector animation in this tutorial.
Рекомендации по теме
Комментарии
Автор

Very cool Vector engine! I am a huge fan of vector games, and I go way back to the Atari days of the late 70s into the 80s, putting quarters into Asteroids, Tempest, Star War, Space Duel, Black Widow, etc. I have owned a full-size arcade Tempest cabinet since 1983. I would love to see a port of Atari classic vector games.

nrnoble
Автор

Thanks for making this! It worked for me. I changed the expression for scale to this so that it made more mathy sense, at least to me:
const minSize: f32 = 0.2;
const beatSizeChange: f32 = 0.02
const beatSpeed: f32 = 7;

const scale: f32 = (Mathf.sin(timeChange * beatSpeed) + 1) * beatSizeChange + minSize;

nickroach
Автор

Amazing! Please create more videos like this using Assemblyscript!

MandacaruAlfa
Автор

It sounds quite promising, I haven't seen anyone write AS so it would be hard for me to start, shame there are no more videos here...

danser_theplayer
Автор

The reason why smaller numbers are faster is because a CPU typically has to load a set amount of bits (64 nowadays). For a 64bit cache line in the CPU you can load both numbers at once in one cycle, without wasting space.

danser_theplayer
Автор

Writing something in wasm only makes it faster if it's the part that performs computations (not I/O or HTML manipulation), and if you move to manual memory management in AS.

danser_theplayer
join shbcf.ru