This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: Arkanoid.java | |
* ------------------- | |
* | |
* This recreates the BreakOut Game - also known as Arkanoid. After clicking to start the user can control the | |
* paddle with the mouse and keyboard and has to hit the ball in order to destroy bricks on top. | |
* | |
* Some bricks drop stars of diferrent colors. Each color when picked up by the paddle has a different effect. | |
* The bricks and the items add to the overall score (some stars actually decrease the score when picked up). | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: Pyramid.java | |
* O objectivo é criar uma pirâmide centrada horizontalmente no ecrã cujos tijolos vão dimiuindo um a um enquanto sobe. | |
* A minha estratégia vai ser criar um método que desenhe uma linha horizontal de tijolos e inseri-la num loop | |
* que vá subindo esta ao mesmo tempo que subtrai os tijolos em 1 cada vez que sobe. | |
*/ | |
import acm.graphics.*; | |
import acm.program.*; | |
import java.awt.*; |