Tuesday 6 August 2013

Programming Lessons-Pascal-Part1-Introduction

            Well, time to learn you guys programming! I won't say it's easy and that you'll do it in no time! These lessons are made for people that have no experience in Pascal, if you have some you can skim through until you come across something you don't know. First of all I have a lot of experience in programming, I've been programming in pascal for about three years already and lately I've been studying Unity (game engine) so that when the time comes, I'll guide you guys into making a game (yes you've heard it). First of all I have to tell you that it will be hard, belive me. At first I was so optimistic that I'll learn programming and make games in a year or so, I was wrong and the only thing that kept me going was the thought that I'll make a game, right now I'm making a game and it's not easy. My point is: if you don't have any experience in programming, don't expect to be making a game in a year, unless you spend all the days in the year studying and excersing programming (I don't think anyone will study the whole year), but don't be discouraged, once you learn Pascal you'll be able to learn other languages in a day or so (every language has something specific about it). Why Pascal, because it's a programming language made for studying. I recommend that you download Free Pascal, in the next part I'll cover the basics in working with it, otherwise download Lazarus, a free pascal IDE which is very good sometimes, but also not so good for some things.

To download Lazarus: click here.
To download Free Pascal also known as FPC: click here.

            There's a funny thing, I wasn't planning to do these lessons at all, but my friends encouraged me because they're interested in programming and making games (say thanks to them).

            LET US START! Finally. Well since this is an introduction, for the finish I'll show you an example of a Pascal program:

program example;
uses crt;
var
   x,y:integer;
   z:integer;
begin
   readln(x);
   y:=5;
   z:=x+y;
   writeln(z);
end.

            That's it for the first part. Be patient the next part is not that far away!
Makrokrama

No comments:

Post a Comment