Introduction: This Crafty JS tutorial is part of Alkottab Studio's internship program, to take developers with no previous game development experience in the quickest way to production phase. Prerequisites: Previous development experience. The very basics of HTML/CSS/Javascript. Finishing the first part of the Crafty tutorial on its website. [ How Crafty works , Download and Setup ] Section 1: Game description: A ball continuously moving and hitting walls and bricks. Bricks are destroyed and points are collected when hit by the ball. User controls a bat and moves it right and left to prevent the ball from hitting the ground. If the ball hits the ground, a life is lost. Section 2: File Structure: Before starting the tutorial, it is better to explain how the files are arranged: index file : links to JS files, game div, some simple CSS. js directory: Crafty file and game file. assets directory: images and spritesheets used. Section 3: Coding consi...
Sharing my experience from trials and troubles.