OLPCities/Hello World!: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
What is a "Lot"?
What is a "Lot"?


[[Image:Tut1-00.jpg|left ]]
[[Image:Tut1-00.jpg|center ]]


In the figure you see a "City" having 12 "Lots". They are empty. At a real OLPcity each Lot has an activity that can be an educational game, a link to some article etc. etc.
In the figure you see a "City" having 12 "Lots". They are empty. At a real OLPcity each Lot has an activity that can be an educational game, a link to some article etc. etc.
Line 20: Line 20:
*[[Links]]
*[[Links]]


[[Image:Tut1-1.jpg|right ]]
[[Image:Tut1-1.jpg|center ]]


Or you can create a new one (remember to put it available for everybody). You can modify something in the downloaded sprite. You can use the free [http://www.gimp.org GIMP] to do it. t the exercice we will create only a floor having a plaque (it's one of the "Hard objects") where can be readed: "HELLO WORLD!"
Or you can create a new one (remember to put it available for everybody). You can modify something in the downloaded sprite. You can use the free [http://www.gimp.org GIMP] to do it. t the exercice we will create only a floor having a plaque (it's one of the "Hard objects") where can be readed: "HELLO WORLD!"

Revision as of 22:30, 20 September 2006

It's a tradition. The first application of a programer, when learning a new language, will write: "Hello World!"

Ok... but here "world" is too much! We are creating a "City"... Or, better our first exercice will be to create a "Lot".

What is a "Lot"?

Tut1-00.jpg

In the figure you see a "City" having 12 "Lots". They are empty. At a real OLPcity each Lot has an activity that can be an educational game, a link to some article etc. etc.

A Lot is really a "normal" webpage created using objects of the "OLPCities Inventory". We are talking about objects in the OOPL sense. Somo of these objects will have a graphic representation that are "sprites".

You can use one of the sprites of our Inventory downloading from one of the pages:

Tut1-1.jpg

Or you can create a new one (remember to put it available for everybody). You can modify something in the downloaded sprite. You can use the free GIMP to do it. t the exercice we will create only a floor having a plaque (it's one of the "Hard objects") where can be readed: "HELLO WORLD!"