![]() ![]() Many people might also mention specific libraries known as game engines, to help you develop the physics, and other things you may need in your game, we won’t be using any here, we will be keeping it nice and simple.įor this reason, in this step by step guide, we will be using regular HTML5 elements in conjunction with JavaScript to build our 2D game. Whilst this is performant, it is not the easiest to understand in comparison to standard HTML5 elements like a div or a span. Many people would now start talking about how to use canvas, and combine it with JavaScript. If you are used to using a framework like React you will have to change the way you may normally write your applications to allow for game development, but I will help walk you through this. It’s not that much different when creating simple 2D JavaScript games or 2D HTML5 games. We usually use these frameworks to make making UI’s or web apps with animations, transitions, and event listeners nice and easy. We are all used to coding in JavaScript, HTML5, React, React Native, VueJS, AngularJS, VanillaJS, and so on… It’s outside our usual realm of coding so is almost unknown territory, but good news, it’s not as hard as it may seem! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |