JSRobot: Javascript learning game elements in the browser

2

2D platformers are classics of the video game genre. The browser game JSRobot combines the concept that also made Mario successful with learning game elements. The goal: to transport a small blue robot to the respective level output. But instead of controlling the robot directly, you have to give commands with the help of Javascript.

JSRobot: screenshots of the javascript learning game

Below the actual level, JSRobot displays four tabs. The first is for explanation and gives you helpful hints to master the level and thus the basics of Javascript.

In the second tab you can then write your actual scripts, which ideally lead to the robot reaching the end of the level. You will see that it starts with some functions and expects you to write down your code. For example, if you want to make your robot to move write this line on loop function.

robot.action = {type: 'move', amount: 40};

In the third tab you can also enter and execute individual commands. Finally, there is also a Properties tab in which the health of the character but also all available methods are listed.

Fun game for Javascript beginners

JSRobot is a fun way to get started with Javascript. For advanced players, however, the game offers no real challenge, especially since there are not too many levels. More interesting is a look at the source code of the game, which the developer Reaal Khalil published on Github.

You can see more learning games by follow this link

Source: https://helpdev.eu/jsrobot-javascript-learning-game-in-the-browser/

Share This:

2 Comments

  1. Pingback: JSRobot: Javascript learning game elements in the browser - Coding Videos

  2. Pingback: JSRobot: Javascript learning game elements in the browser – Javascript World

Leave A Reply

Powered by FrontNet