(adsbygoogle = window.adsbygoogle || []).push({});
Hi
I was offline for a long time , and i want to start postin again , i miss this .
---------------------------------
Some people ask me :
Whats the best coding lenguage to start?
I USED TO ANSWER:
Start in ruby on rails , its easy and fast to code
After 2 month , i realize that ruby on rails have no sense , because you dont even code :S
Now if someone ask me what is the best coding lenguage to start i say :
GREENFOOT (JAVASC
T)
Greenfoot its actually a program that allows easy development of two-dimensional graphical applications, such as simulations and interactive games.
Coding into greenfoot:
The Greenfoot programming model consists of a World class (represented by a rectangular screen area) and any number of actor objects that are present in the world and can be programmed to act independently. The world and actors are represented by Java objects and defined by Java classes. Greenfoot offers methods to easily program these actors, including method for movement, rotation, changes of appearance, collision detection, etc.
Programming in Greenfoot at its most basic consists of subclassing two built-in classes, World and Actor. An instance of the world subclass represents the world in which Greenfoot execution will occur. Actor subclasses are objects that can exist and act in the world. An instance of the world subclass is automatically created by the environment.
Execution in Greenfoot consists of a built-in main loop that repeatedly invokes each actor's act method. Programming a scenario, therefore, consists mainly of implementing act methods for the scenario's actors. Implementation is done in standard Java. Greenfoot offers API methods for a range of common tasks, such as animation, sound, randomisation, and image manipulation. All standard Java libraries can be used as well, and sophisticated functionality can be achieved.
Example:
public void act()
{
setLocation (getX() + 4, getY());
// Moves the object 4 cells to the right
setRotation (getRotation() + 2);
// Rotates the object 2 degrees clockwise
}//(An example of a simple act method in Greenfoot)
ANOTHER EXAMPLE:
Actor a = getOneIntersectingObject(Asteroid.class);
if (a != null) {
// we have hit an asteroid!
explode();
}//(An example of simple collision detection)
.
Some Images:
[ATTACH=CONFIG]24620[/ATTACH]
[ATTACH=CONFIG]24621[/ATTACH]
Download Link:
You must login or register to view this content.
You will also need to have a JDK installed :
You must login or register to view this content.
SO IF YOU ARE A BEGGINER I RECOMEND YOU TO START CODING IN GREENFOOT , GOOD LUCK , BE CREATIVE , DEVOLOP. I WILL BE MAKING A TUTORIAL THIS WEEK , THANKS FOR READING , GOOD LUCK,
Palomo.