JSRobot: Javascript learning game in the browser

The lovingly designed Jump ‘n’ Run JSRobot shows you playful Javascript.  How this works, you’ll learn in our game tip.

JSRobot: Javascript learning game in the browser

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

jsrobot_screenshot

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

[cc lang=”javascript”]robot.action = {type: ‘move’, amount: 40};[/cc]

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

Recent Articles

spot_img

Related Stories

1 Comment

Leave A Reply

Please enter your comment!
Please enter your name here