> LeekScript Tutorial
Welcome to Leek Wars! If you are here, it is surely that you are a beginner in programming and that you want to learn while having fun. Or maybe you have programming experience and a game in that area intrigues you.
Either way, this tutorial will teach you everything you need to know about the LeekScript to be able to effectively fight your leek.
Programming is the action of creating a Computer program. A program is written using a "Programming language". This language makes it possible to describe to the computer which will read the program what it must do. People who practice Programming are Programmers, or Developers. And above all, be careful not to talk about "programming" or "programmers", you wouldn't be making old bones.
An example program in LeekScript would look like this:
setWeapon(WEAPON_PISTOL); var enemy = getNearestEnemy(); moveToward(enemy); useWeapon(enemy);
On Leek Wars, we tend to talk about AI rather than program. Indeed, we are creating an Artificial Intelligence for our leeks. These are not programs intended to be executed on a computer but rather a script which will be read by our leek and which it will follow to the letter.
Here you will learn the basics of programming using the LeekScript. You will learn how to use variables, arrays, conditions, loops and functions. Later, the tutorial will certainly be reviewed to integrate more advanced notions, in particular with the arrival of LeekScript V2.
This tutorial is not intended to explain how a computer works. Some explanations will accompany the different notions of programming that you will discover, but if you really want to understand how a computer program and a computer work, you will have to take courses concerning "lower level" languages. that is, closer to the operation of the machine.
How difficult it is to learn programming depends on each person. Depending on your age, your knowledge, your abilities, you will have more or less difficulty assimilating the logic of programming. All you need to learn to program is logic.
You may have already been told that you have to be good at math to do programming. The answer is yes and no. Yes, you will need math skills. To learn the basics, knowing how to do basic operations is enough. Do you know how to add, subtract, multiply and divide? Everything should be fine. On the other hand, the battles of Leek Wars take place on a 2-dimensional terrain. If you want to be able to use the terrain to your advantage, you will need some notions of geometry and 2D spatialization. But again, nothing amazing. You just need to know how to use coordinates in a coordinate system.
In programming, sometimes you have to know how to be patient and cool. Unfortunately, your code won't always work the first time (if ever in fact). You can be sure that you will sometimes not understand why your program does not work, and that the error is very simple. Learning to proofread and track down bugs comes with experience. Don't underestimate outside help, a fresh eye on your code will often save you a lot of headaches.
In short, if you want to learn programming and become a talented leek farmer, you only need one thing. If you want to learn, you will progress quickly. Ask questions on the game chat, on the forum when you don't understand something, you will always find a charitable soul ready to explain to you (even, and especially, between midnight and 4am).
Remember that there are no dumb questions. Asking a question is proof of a willingness to understand, and there is nothing stupid about it.
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.