Learn Basic JavaScript by Building a Role Playing Game

Learn Basic JavaScript by Creating a Role-Playing Game, Not Started

JavaScript is a powerful programming language that allows you to create interactive web pages. It is one of the most important technologies used on the web, along with HTML and CSS. All major browsers support JavaScript, making it a crucial skill for web developers.

In this project, we will learn the basics of JavaScript by creating our own Role-Playing Game. We will explore key concepts such as arrays, strings, objects, functions, loops, and conditional statements. By the end of this project, you will have a solid foundation in JavaScript programming.

Let’s take a look at what we will be creating:

JavaScript allows us to create interactive websites that respond to user input.

Note: For all other projects in this training program, a basic understanding of HTML and CSS is required. If you are new to these languages, I recommend completing the Adaptive Web Design certification before proceeding further.

In relation to this, I have two questions:

  1. Is it possible to complete the JavaScript certification before obtaining certificates in HTML and CSS?

  2. Should these certifications be completed at the same time, or can they be done separately?

To learn how to write scripts for bots, do I only need to know JavaScript, HTML, and CSS, or is knowledge of Python also required?

Yes. The JS curriculum does use some HTML (maybe CSS?) So there is some overlap and it’s good to have a basic understanding of HTML in this case but there are no mandatory prerequisites.

If you can complete the material, you get the cert.

You can only physically to one thing at a time. I’d suggest doing them in order, one after the other, and to focus your attention. However, it’s totally up to you.

To learn how to write scripts for bots, do I only need to know JavaScript, HTML, and CSS, or is knowledge of Python also required?

It depends, are the bots going to output HTML code? I think just Python would probably serve you best here.

Generally, I think it’s a good idea to just go through the curriculum from start to finish and get a general understanding of everything. This is how it’s designed. If you get bogged down in material that you feel will be irrelevant, skip to something more relevant to you. There are no rules. Keep learning.

1 Like

Thank you for your opinion on the point. I also have a question regarding the project: “Learning the basics of JavaScript through the creation of a role-playing game”. Does this project involve actually creating bots on a website with animations? After all, a role-playing game in which the roles are played by animated characters, or bots, is it a project for creating and programming these bots? Or will the basic bot programs differ from the role-playing game itself? What is the distinction, if any, between the project “Learning the Basics of JavaScript through Role-Playing Game Creation” and other projects involving bot creation and artificial intelligence development?

There is a preview in the first step where you can play the game and see for yourself. Basically, no not really. You do fight monsters but I wouldn’t say the mechanic really falls under even basic game AI.

Usually by “AI” people are referring to Machine Learning. A bot may or may not use AI/ML as early chatbots did not use ML but it’s common these days that it will include ML. In computer games I don’t think the AI bots, enemies or NPCs commonly use ML even now, that will likely change though.

Do you have an example of what you mean when you say “bot” as this could refer to a variety of things.

Answering to your question: "Do you have an example of what you mean when you use the term “bot”? “It can refer to various things, so I would like to know more about what you have in mind”. I was thinking of game characters who act like robots with artificial intelligence, or perhaps a bot administrator who helps Forum users learn the basics of Forum behavior.

Ok well, this project would not really cover topics like this.

It will help build general basic programming principles however, which might eventually help you with your goals.

1 Like

I have another question regarding macros. Are they signs of HTML and CSS languages, or do they have a different purpose? If, for example, one were to create a bot or artificial intelligence for animation in Word and other programs on a PC or laptop, would macros be used? Where would the written code or script be inserted in this scenario? In the macro field or on the command line?

A little background: macros are a program that records a sequence of actions performed by the user, often used to automate repetitive tasks.

Examples of how macros can be used:

In office programs (Word, Excel, PowerPoint, etc.), macros help to automate repetitive tasks for professionals who frequently work with these programs, such as managers, accountants, analysts, and PR specialists.

In graphics programs like CorelDRAW, macros allow users to automate a sequence of actions, such as pressing keys or selecting menu items. This can save time and reduce the need for manual input.

Macros can also be used in programming languages like assembly, where they are symbolic names that represent a sequence of instructions that are executed during preprocessing.

I agree with you. This project is very helpful in any case.