In this second episode of writing a Super Mario game in JavaScript, I show how to draw sprites and different layers.
We will look at
* Using setTimeout to create artificial delay.
* Parallelizing asynchronous calls using ().
* Higher order functions.
* Refactoring a classes.
Since we are writing modern JS this code might not run on all browsers yet. I was running Chrome 61 when I wrote this and if you wish to follow I recommend you do too.
Source code with step-by-step commits:
Music:
Demoscene Time Machine
30 views
8
1
2 months ago 01:09:41 1
Macron Va-t-il Sacrifier Barnier Pour Sauver Sa Peau ?
2 months ago 00:06:38 1
Meme Coin SUPER CYCLE - I Made 1 ETH PER DAY with This Meme Coin Trading Bot
2 months ago 01:07:30 1
MICHEL DOURTHE : Médium
3 months ago 00:30:38 1
Collective West hopes RUSSIAN economy will overheat and CRASH
3 months ago 00:26:51 1
Ukraine military slow motion disaster
3 months ago 00:42:31 1
Легендарный «Цезарь» (легион «Свобода России»). Войска России вошли в Стамбул, у Эрдогана инфаркт
3 months ago 00:44:11 1
Политик из США Пинкус. Сенсация от Ермака, переговоры Зеленского с Путиным, что спасет Украину