Back to Browse

How To Write A JavaScript Platformer - Part 6 - Loading Levels

2.9K views
Apr 13, 2018
22:14

Learn how to load levels for your html5 game in this pure JavaScript game design tutorial. I'll talk about creating JSON level files, loading them with XMLHttpRequest, and using JSON.parse to create a usable JavaScript object to populate the game world with. I'll also talk about collision detection with door objects to trigger level loads. Check out the working example here: https://pothonprogramming.github.io/content/rabbit-trap/rabbit-trap.html?06 And check out the source code on my Github page here: https://github.com/pothonprogramming/pothonprogramming.github.io/tree/master/content/rabbit-trap/06

Download

0 formats

No download links available.

How To Write A JavaScript Platformer - Part 6 - Loading Levels | NatokHD