Compare commits
45 Commits
f7f611c2ae
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| df41cd63c3 | |||
| 18f6594ec7 | |||
| c52ba44c44 | |||
| 8a15fa5a51 | |||
| c0b6517f14 | |||
| 40d5295716 | |||
| 153f710a44 | |||
| d84b853b65 | |||
| bd0e81a2f7 | |||
| a36481e098 | |||
| c97dcde07a | |||
| 4d5e6ad567 | |||
| 69e753d5a8 | |||
| a7cfa6923a | |||
| fe6d466cd6 | |||
| 047fe9597d | |||
| af551a1a57 | |||
| dc85fd679b | |||
| 8ae09335c0 | |||
| c1de4dad10 | |||
| fe9208291f | |||
| 1fbc555d31 | |||
| 2e11569755 | |||
| b5bbd00cc1 | |||
| 97c8d5641e | |||
| 964725a81c | |||
| aa07effa13 | |||
| 6ab5576115 | |||
| f70e394f01 | |||
| 9a0d7e7f7a | |||
| f1bb70a2a2 | |||
| 1796607c93 | |||
| 5cf095c370 | |||
| ddba231979 | |||
| c0c5151c41 | |||
| 236a363572 | |||
| 6215bff73d | |||
| c719e5b053 | |||
| b3a951626c | |||
| 3d047538f1 | |||
| a39e816038 | |||
| 443b4e9247 | |||
| 1ed7e0ce1f | |||
| fe11e83e78 | |||
| fc9f3a660e |
@@ -25,7 +25,7 @@ public class BreakingPlattform extends Plattform
|
|||||||
{
|
{
|
||||||
IsBreaking= true;
|
IsBreaking= true;
|
||||||
//Greenfoot.playSound("...")
|
//Greenfoot.playSound("...")
|
||||||
this.setImage("BreakingPlattform2.png");
|
this.setImage("Breaking2.png");
|
||||||
|
|
||||||
}
|
}
|
||||||
if(IsBreaking)
|
if(IsBreaking)
|
||||||
|
|||||||
@@ -34,9 +34,14 @@ public class Enemy extends Actor
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void shootAtPlayer(){
|
public void shootAtPlayer(){
|
||||||
|
Player player = getWorld().getObjects(Player.class).get(0);
|
||||||
shootTimer++;
|
shootTimer++;
|
||||||
|
if (player.getX() - getX() < 0){
|
||||||
|
setImage("Enemy.png");
|
||||||
|
} else if (player.getX() - getX() > 0){
|
||||||
|
setImage("EnemyRight.png");
|
||||||
|
}
|
||||||
if (shootTimer >= 100){
|
if (shootTimer >= 100){
|
||||||
Player player = getWorld().getObjects(Player.class).get(0);
|
|
||||||
EnemyProjectile enemyProjectile = new EnemyProjectile();
|
EnemyProjectile enemyProjectile = new EnemyProjectile();
|
||||||
getWorld().addObject(enemyProjectile, getX(), getY());
|
getWorld().addObject(enemyProjectile, getX(), getY());
|
||||||
enemyProjectile.turnTowards(player.getX(), player.getY());
|
enemyProjectile.turnTowards(player.getX(), player.getY());
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class EnemyProjectile extends Projectile
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//Check X-Value
|
//Check X-Value
|
||||||
if (getX() <= 0 || getX() >= getWorld().getHeight()-1){
|
if (getX() <= 0 || getX() >= getWorld().getWidth()-1){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
#BlueJ class context
|
#BlueJ class context
|
||||||
comment0.target=GameOverWorld
|
comment0.target=GameOverWorld
|
||||||
comment0.text=\r\n\ Write\ a\ description\ of\ class\ GameOverWorld\ here.\r\n\ \r\n\ @author\ (your\ name)\ \r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n
|
comment0.text=\r\n\ Write\ a\ description\ of\ class\ GameOverWorld\ here.\r\n\ \r\n\ @author\ (your\ name)\ \r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n
|
||||||
comment1.params=
|
comment1.params=score
|
||||||
comment1.target=GameOverWorld()
|
comment1.target=GameOverWorld(int)
|
||||||
comment1.text=\r\n\ Constructor\ for\ objects\ of\ class\ GameOverWorld.\r\n\ \r\n
|
|
||||||
comment2.params=
|
comment2.params=
|
||||||
comment2.target=void\ prepare()
|
comment2.target=void\ prepare()
|
||||||
comment2.text=\r\n\ Prepare\ the\ world\ for\ the\ start\ of\ the\ program.\r\n\ That\ is\:\ create\ the\ initial\ objects\ and\ add\ them\ to\ the\ world.\r\n
|
comment2.text=\r\n\ Prepare\ the\ world\ for\ the\ start\ of\ the\ program.\r\n\ That\ is\:\ create\ the\ initial\ objects\ and\ add\ them\ to\ the\ world.\r\n
|
||||||
numComments=3
|
comment3.params=
|
||||||
|
comment3.target=void\ showScore()
|
||||||
|
numComments=4
|
||||||
|
|||||||
@@ -13,10 +13,12 @@ public class GameOverWorld extends World
|
|||||||
* Constructor for objects of class GameOverWorld.
|
* Constructor for objects of class GameOverWorld.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GameOverWorld()
|
int score;
|
||||||
|
public GameOverWorld(int score)
|
||||||
{
|
{
|
||||||
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
|
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
|
||||||
super(400, 600, 1);
|
super(400, 600, 1);
|
||||||
|
this.score = score;
|
||||||
prepare();
|
prepare();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,7 +29,16 @@ public class GameOverWorld extends World
|
|||||||
private void prepare()
|
private void prepare()
|
||||||
{
|
{
|
||||||
Button button = new Button();
|
Button button = new Button();
|
||||||
addObject(button,200,350);
|
addObject(button,200,520);
|
||||||
button.setImage("Neustart.png");
|
button.setImage("Neustart.png");
|
||||||
|
showScore();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void showScore(){
|
||||||
|
Color hintergrundFarbe = new Color(0,0,0,0);
|
||||||
|
GreenfootImage scoreBild = new GreenfootImage("" + score, 75, Color.WHITE, hintergrundFarbe);
|
||||||
|
Score score3 = new Score();
|
||||||
|
addObject(score3,200,72);
|
||||||
|
score3.setImage(scoreBild);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,4 @@ comment1.target=void\ act()
|
|||||||
comment1.text=\r\n\ Act\ -\ do\ whatever\ the\ StarPowerUp\ wants\ to\ do.\ This\ method\ is\ called\ whenever\r\n\ the\ 'Act'\ or\ 'Run'\ button\ gets\ pressed\ in\ the\ environment.\r\n
|
comment1.text=\r\n\ Act\ -\ do\ whatever\ the\ StarPowerUp\ wants\ to\ do.\ This\ method\ is\ called\ whenever\r\n\ the\ 'Act'\ or\ 'Run'\ button\ gets\ pressed\ in\ the\ environment.\r\n
|
||||||
comment2.params=
|
comment2.params=
|
||||||
comment2.target=void\ collect()
|
comment2.target=void\ collect()
|
||||||
comment3.params=
|
numComments=3
|
||||||
comment3.target=void\ bewegeNachUnten()
|
|
||||||
numComments=4
|
|
||||||
|
|||||||
@@ -8,30 +8,23 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
|||||||
*/
|
*/
|
||||||
public class Groundflower extends PowerUps
|
public class Groundflower extends PowerUps
|
||||||
{
|
{
|
||||||
int duration= 60*8; //15 Sekunden
|
int duration= 60*4; //15 Sekunden
|
||||||
/**
|
/**
|
||||||
* Act - do whatever the StarPowerUp wants to do. This method is called whenever
|
* Act - do whatever the StarPowerUp wants to do. This method is called whenever
|
||||||
* the 'Act' or 'Run' button gets pressed in the environment.
|
* the 'Act' or 'Run' button gets pressed in the environment.
|
||||||
*/
|
*/
|
||||||
public void act()
|
public void act()
|
||||||
{
|
{
|
||||||
bewegeNachUnten();
|
moveDown();
|
||||||
this.touchedByPlayer();
|
touchedByPlayer();
|
||||||
// Add your action code here.
|
if (deleteAfterActCycle){
|
||||||
|
getWorld().removeObject(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ Override void collect()
|
@ Override void collect()
|
||||||
{
|
{
|
||||||
Player player = getIntersectingObjects(Player.class).get(0);
|
Player player = getIntersectingObjects(Player.class).get(0);
|
||||||
player.reveivePowerUp(duration, "GroundPower");
|
player.receivePowerUp(duration, "GroundPower");
|
||||||
}
|
|
||||||
|
|
||||||
public void bewegeNachUnten()
|
|
||||||
{
|
|
||||||
this.setLocation(this.getX(), this.getY()+2);
|
|
||||||
if(this.getY()>=this.getWorld().getHeight())
|
|
||||||
{
|
|
||||||
this.getWorld().removeObject(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,14 +8,17 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
|||||||
*/
|
*/
|
||||||
public class HealthItem extends PowerUps
|
public class HealthItem extends PowerUps
|
||||||
{
|
{
|
||||||
int duration = 60*60;
|
|
||||||
public void act()
|
public void act()
|
||||||
{
|
{
|
||||||
|
moveDown();
|
||||||
touchedByPlayer();
|
touchedByPlayer();
|
||||||
|
if (deleteAfterActCycle){
|
||||||
|
getWorld().removeObject(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override void collect(){
|
@Override void collect(){
|
||||||
Player player = getIntersectingObjects(Player.class).get(0);
|
Player player = getIntersectingObjects(Player.class).get(0);
|
||||||
player.reveivePowerUp(duration, "Heal");
|
player.receivePowerUp(duration, "Heal");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
#BlueJ class context
|
|
||||||
comment0.target=Healthbar
|
|
||||||
comment0.text=\r\n\ Write\ a\ description\ of\ class\ Healthbar\ here.\r\n\ \r\n\ @author\ (your\ name)\ \r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n
|
|
||||||
comment1.params=
|
|
||||||
comment1.target=void\ act()
|
|
||||||
comment2.params=
|
|
||||||
comment2.target=void\ draw_health()
|
|
||||||
numComments=3
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write a description of class Healthbar here.
|
|
||||||
*
|
|
||||||
* @author (your name)
|
|
||||||
* @version (a version number or a date)
|
|
||||||
*/
|
|
||||||
public class Healthbar extends Actor
|
|
||||||
{
|
|
||||||
public void act()
|
|
||||||
{
|
|
||||||
draw_health();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void draw_health(){
|
|
||||||
Player player = getWorld().getObjects(Player.class).get(0);
|
|
||||||
setImage(new GreenfootImage("Health:" + player.health, 24, Color.WHITE, Color.BLACK));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#BlueJ class context
|
||||||
|
comment0.target=Heart
|
||||||
|
comment0.text=\r\n\ Write\ a\ description\ of\ class\ Heart\ here.\r\n\ \r\n\ @author\ (your\ name)\ \r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n
|
||||||
|
comment1.params=
|
||||||
|
comment1.target=void\ act()
|
||||||
|
comment1.text=\r\n\ Act\ -\ do\ whatever\ the\ Heart\ wants\ to\ do.\ This\ method\ is\ called\ whenever\r\n\ the\ 'Act'\ or\ 'Run'\ button\ gets\ pressed\ in\ the\ environment.\r\n
|
||||||
|
numComments=2
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write a description of class Heart here.
|
||||||
|
*
|
||||||
|
* @author (your name)
|
||||||
|
* @version (a version number or a date)
|
||||||
|
*/
|
||||||
|
public class Heart extends Actor
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Act - do whatever the Heart wants to do. This method is called whenever
|
||||||
|
* the 'Act' or 'Run' button gets pressed in the environment.
|
||||||
|
*/
|
||||||
|
public void act()
|
||||||
|
{
|
||||||
|
// Add your action code here.
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,14 +8,18 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
|||||||
*/
|
*/
|
||||||
public class JumpBoostItem extends PowerUps
|
public class JumpBoostItem extends PowerUps
|
||||||
{
|
{
|
||||||
int duration = 60*60;
|
int duration = 60*5;
|
||||||
public void act()
|
public void act()
|
||||||
{
|
{
|
||||||
|
moveDown();
|
||||||
touchedByPlayer();
|
touchedByPlayer();
|
||||||
|
if (deleteAfterActCycle){
|
||||||
|
getWorld().removeObject(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override void collect(){
|
@Override void collect(){
|
||||||
Player player = getIntersectingObjects(Player.class).get(0);
|
Player player = getIntersectingObjects(Player.class).get(0);
|
||||||
player.reveivePowerUp(duration, "JumpBoost");
|
player.receivePowerUp(duration, "JumpBoost");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class MovingPlattform extends Plattform
|
|||||||
Player DerSpieler = theWorld.getObjects(Player.class).get(0);
|
Player DerSpieler = theWorld.getObjects(Player.class).get(0);
|
||||||
if(DerSpieler!=null)
|
if(DerSpieler!=null)
|
||||||
{
|
{
|
||||||
DerSpieler.setLocation(DerSpieler.getX()+speed*3, DerSpieler.getY());
|
DerSpieler.setLocation(DerSpieler.getX()+speed*2, DerSpieler.getY());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,15 @@ comment2.text=\r\n\ Prepare\ the\ world\ for\ the\ start\ of\ the\ program.\r\n\
|
|||||||
comment3.params=
|
comment3.params=
|
||||||
comment3.target=void\ act()
|
comment3.target=void\ act()
|
||||||
comment4.params=
|
comment4.params=
|
||||||
comment4.target=void\ projectile()
|
comment4.target=void\ drawNewHearts()
|
||||||
comment5.params=
|
comment5.params=
|
||||||
comment5.target=void\ targetingProjectile()
|
comment5.target=void\ spawnItems()
|
||||||
comment6.params=
|
comment6.params=
|
||||||
comment6.target=void\ showScore()
|
comment6.target=void\ spawnEnemies()
|
||||||
numComments=7
|
comment7.params=
|
||||||
|
comment7.target=void\ projectile()
|
||||||
|
comment8.params=
|
||||||
|
comment8.target=void\ targetingProjectile()
|
||||||
|
comment9.params=
|
||||||
|
comment9.target=void\ showScore()
|
||||||
|
numComments=10
|
||||||
|
|||||||
@@ -9,10 +9,12 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
|||||||
public class MyWorld extends World
|
public class MyWorld extends World
|
||||||
{
|
{
|
||||||
int PlattformCountdown;
|
int PlattformCountdown;
|
||||||
int timer = 300; //Zeit, bevor das erste Projektil auftaucht
|
int timer = 600; //Zeit, bevor das erste Projektil auftaucht
|
||||||
//kann später noch beliebig angepasst werden
|
//kann später noch beliebig angepasst werden
|
||||||
int targetTimer = 1000;
|
int targetTimer = 1000;
|
||||||
int time = 0;
|
int time = 0;
|
||||||
|
int enemyTimer;
|
||||||
|
int itemTimer;
|
||||||
int score = 0;
|
int score = 0;
|
||||||
/**
|
/**
|
||||||
* Constructor for objects of class MyWorld.
|
* Constructor for objects of class MyWorld.
|
||||||
@@ -33,12 +35,12 @@ public class MyWorld extends World
|
|||||||
{
|
{
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
addObject(player,302,320);
|
addObject(player,302,320);
|
||||||
Score score = new Score();
|
|
||||||
addObject(score, 200, 30);
|
|
||||||
score.setImage("Score1.png");
|
|
||||||
Score score1 = new Score();
|
Score score1 = new Score();
|
||||||
addObject(score1, 200, 60);
|
addObject(score1, 200, 30);
|
||||||
score1.setImage("Score2.png");
|
score1.setImage("Score1.png");
|
||||||
|
Score score2 = new Score();
|
||||||
|
addObject(score2, 200, 60);
|
||||||
|
score2.setImage("Score2.png");
|
||||||
Plattform plattform = new Plattform();
|
Plattform plattform = new Plattform();
|
||||||
addObject(plattform,285,577);
|
addObject(plattform,285,577);
|
||||||
plattform.setLocation(286,492);
|
plattform.setLocation(286,492);
|
||||||
@@ -56,8 +58,14 @@ public class MyWorld extends World
|
|||||||
plattform2.setLocation(320,367);
|
plattform2.setLocation(320,367);
|
||||||
plattform2.setLocation(312,371);
|
plattform2.setLocation(312,371);
|
||||||
plattform2.setLocation(308,382);
|
plattform2.setLocation(308,382);
|
||||||
Healthbar healthbar = new Healthbar();
|
Heart heart = new Heart();
|
||||||
addObject(healthbar,50,50);
|
addObject(heart,371,27);
|
||||||
|
Heart heart2 = new Heart();
|
||||||
|
addObject(heart2,343,27);
|
||||||
|
Heart heart3 = new Heart();
|
||||||
|
addObject(heart3,314,27);
|
||||||
|
|
||||||
|
addObject(new TemporaryGround(60*8), 200, 575);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void act()
|
public void act()
|
||||||
@@ -65,49 +73,96 @@ public class MyWorld extends World
|
|||||||
if (getObjects(Score.class).size() > 0){
|
if (getObjects(Score.class).size() > 0){
|
||||||
removeObjects(getObjects(Score.class));
|
removeObjects(getObjects(Score.class));
|
||||||
}
|
}
|
||||||
Score score = new Score();
|
|
||||||
addObject(score, 200, 30);
|
|
||||||
score.setImage("Score1.png");
|
|
||||||
Score score1 = new Score();
|
Score score1 = new Score();
|
||||||
addObject(score1, 200, 60);
|
addObject(score1, 200, 30);
|
||||||
score1.setImage("Score2.png");
|
score1.setImage("Score1.png");
|
||||||
|
Score score2 = new Score();
|
||||||
|
addObject(score2, 200, 60);
|
||||||
|
score2.setImage("Score2.png");
|
||||||
showScore();
|
showScore();
|
||||||
projectile();
|
projectile();
|
||||||
|
spawnEnemies();
|
||||||
targetingProjectile();
|
targetingProjectile();
|
||||||
|
spawnItems();
|
||||||
|
drawNewHearts();
|
||||||
if(PlattformCountdown==0) //Damit in regelmäßigen Abständen auf jeden Fall eine Plattform auftaucht
|
if(PlattformCountdown==0) //Damit in regelmäßigen Abständen auf jeden Fall eine Plattform auftaucht
|
||||||
{
|
{
|
||||||
addObject(new Plattform(), Greenfoot.getRandomNumber(400), 5);
|
addObject(new Plattform(), 1+Greenfoot.getRandomNumber(398), 5);
|
||||||
PlattformCountdown=50;
|
PlattformCountdown=50;
|
||||||
}
|
}
|
||||||
PlattformCountdown--;
|
PlattformCountdown--;
|
||||||
if(Greenfoot.getRandomNumber(100000)>=99800)
|
if(Greenfoot.getRandomNumber(100000)>=99800)
|
||||||
{
|
{
|
||||||
addObject(new Plattform(), Greenfoot.getRandomNumber(400), 5);
|
addObject(new Plattform(), 1+Greenfoot.getRandomNumber(398), 5);
|
||||||
}
|
}
|
||||||
if(Greenfoot.getRandomNumber(100000)>=99900)
|
if(Greenfoot.getRandomNumber(100000)>=99900)
|
||||||
{
|
{
|
||||||
addObject(new MovingPlattform(2), Greenfoot.getRandomNumber(400), 6); //Nach Rechts bewegende Plattform
|
addObject(new MovingPlattform(1), 1+Greenfoot.getRandomNumber(398), 6); //Nach Rechts bewegende Plattform
|
||||||
}
|
}
|
||||||
if(Greenfoot.getRandomNumber(100000)>=99900)
|
if(Greenfoot.getRandomNumber(100000)>=99900)
|
||||||
{
|
{
|
||||||
addObject(new MovingPlattform(-2), Greenfoot.getRandomNumber(400), 6); //Nach Links bewegende Plattform
|
addObject(new MovingPlattform(-1), 1+Greenfoot.getRandomNumber(398), 6); //Nach Links bewegende Plattform
|
||||||
}
|
}
|
||||||
if(Greenfoot.getRandomNumber(100000)>=99750)
|
if(Greenfoot.getRandomNumber(100000)>=99750)
|
||||||
{
|
{
|
||||||
addObject(new BreakingPlattform(50), Greenfoot.getRandomNumber(400), 6); //Nach Links bewegende Plattform
|
addObject(new BreakingPlattform(50), 1+Greenfoot.getRandomNumber(398), 6); //Nach Links bewegende Plattform
|
||||||
}
|
}
|
||||||
if(Greenfoot.getRandomNumber(100000)>=99750)
|
if(Greenfoot.getRandomNumber(100000)>=99750)
|
||||||
{
|
{
|
||||||
addObject(new SpikedPlattform(100), Greenfoot.getRandomNumber(400), 6); //Nach Links bewegende Plattform
|
addObject(new SpikedPlattform(40), 1+Greenfoot.getRandomNumber(398), 6); //Nach Links bewegende Plattform
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void drawNewHearts(){
|
||||||
|
Player player = getObjects(Player.class).get(0);
|
||||||
|
removeObjects(getObjects(Heart.class));
|
||||||
|
Heart heart = new Heart();
|
||||||
|
addObject(heart,371,27);
|
||||||
|
if (player.health >= 2){
|
||||||
|
Heart heart2 = new Heart();
|
||||||
|
addObject(heart2,343,27);
|
||||||
|
}
|
||||||
|
if (player.health == 3){
|
||||||
|
Heart heart3 = new Heart();
|
||||||
|
addObject(heart3,314,27);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void spawnItems(){
|
||||||
|
itemTimer++;
|
||||||
|
if (itemTimer >= 575){
|
||||||
|
itemTimer = 0;
|
||||||
|
switch (Greenfoot.getRandomNumber(3)){
|
||||||
|
case 0:
|
||||||
|
Groundflower groundF = new Groundflower();
|
||||||
|
addObject(groundF, Greenfoot.getRandomNumber(getWidth()-100)+50,0);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
HealthItem healthItem = new HealthItem();
|
||||||
|
addObject(healthItem, Greenfoot.getRandomNumber(getWidth()-100)+50,0);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
JumpBoostItem jumpBoostItem = new JumpBoostItem();
|
||||||
|
addObject(jumpBoostItem, Greenfoot.getRandomNumber(getWidth()-100)+50,0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void spawnEnemies(){
|
||||||
|
enemyTimer++;
|
||||||
|
if (enemyTimer >= 420){
|
||||||
|
Enemy enemy = new Enemy(Greenfoot.getRandomNumber(getWidth() - 50) + 25, Greenfoot.getRandomNumber(getHeight()/2) + 15);
|
||||||
|
addObject(enemy, Greenfoot.getRandomNumber(getWidth()-100)+50,0);
|
||||||
|
enemyTimer = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
public void projectile(){
|
public void projectile(){
|
||||||
if(timer == 0){
|
if(timer == 0){
|
||||||
Projectile projectile = new Projectile();
|
Projectile projectile = new Projectile();
|
||||||
addObject(projectile,Greenfoot.getRandomNumber(300)+50,0);
|
addObject(projectile,Greenfoot.getRandomNumber(300)+50,0);
|
||||||
timer = 300; //zeitlicher Abstand
|
timer = 600; //zeitlicher Abstand
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
timer = timer - 1;
|
timer = timer - 1;
|
||||||
@@ -130,4 +185,5 @@ public class MyWorld extends World
|
|||||||
score = time/60;
|
score = time/60;
|
||||||
showText("" + score, 200, 60);
|
showText("" + score, 200, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ public class Plattform extends Actor
|
|||||||
|
|
||||||
public boolean PlayerOnPlattform()
|
public boolean PlayerOnPlattform()
|
||||||
{
|
{
|
||||||
Player Spieler= (Player) getOneIntersectingObject(Player.class);
|
Player Spieler= (Player) this.getWorld().getObjects(Player.class).get(0);
|
||||||
if(this.isTouching(Player.class))
|
if(Spieler.getX()+(Spieler.getImage().getWidth()/2)>=this.getX()-(this.getImage().getWidth()/2) && Spieler.getX()-(Spieler.getImage().getWidth()/2)<=this.getX()+(this.getImage().getWidth()/2))
|
||||||
{
|
{
|
||||||
if(Spieler.getY()<this.getY()-20)
|
if(Spieler.getY()+(Spieler.getImage().getHeight()/2)<=this.getY()-(this.getImage().getHeight()/2) && Spieler.getY()+(Spieler.getImage().getHeight()/2)>=this.getY()-(this.getImage().getHeight()/2))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ comment0.target=Player
|
|||||||
comment0.text=\r\n\ Write\ a\ description\ of\ class\ Player\ here.\r\n\ \r\n\ @author\ (your\ name)\ \r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n
|
comment0.text=\r\n\ Write\ a\ description\ of\ class\ Player\ here.\r\n\ \r\n\ @author\ (your\ name)\ \r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n
|
||||||
comment1.params=
|
comment1.params=
|
||||||
comment1.target=void\ act()
|
comment1.target=void\ act()
|
||||||
|
comment10.params=
|
||||||
|
comment10.target=void\ playerRotation()
|
||||||
comment2.params=
|
comment2.params=
|
||||||
comment2.target=void\ moveLeftAndRight()
|
comment2.target=void\ moveLeftAndRight()
|
||||||
comment3.params=
|
comment3.params=
|
||||||
@@ -18,5 +20,5 @@ comment7.target=void\ checkHealth()
|
|||||||
comment8.params=
|
comment8.params=
|
||||||
comment8.target=void\ handlePowerUps()
|
comment8.target=void\ handlePowerUps()
|
||||||
comment9.params=duration\ type
|
comment9.params=duration\ type
|
||||||
comment9.target=void\ reveivePowerUp(int,\ java.lang.String)
|
comment9.target=void\ receivePowerUp(int,\ java.lang.String)
|
||||||
numComments=10
|
numComments=11
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class Player extends Actor
|
|||||||
int health = MAX_HEALTH;
|
int health = MAX_HEALTH;
|
||||||
|
|
||||||
int jumpBoostDuration = -1;
|
int jumpBoostDuration = -1;
|
||||||
int jumpBoostStrength = 5;
|
int jumpBoostStrength = 3;
|
||||||
|
|
||||||
boolean projectileReady = false;
|
boolean projectileReady = false;
|
||||||
int projectileTimer;
|
int projectileTimer;
|
||||||
@@ -34,10 +34,12 @@ public class Player extends Actor
|
|||||||
handlePowerUps();
|
handlePowerUps();
|
||||||
shootProjectile();
|
shootProjectile();
|
||||||
checkHealth();
|
checkHealth();
|
||||||
|
playerRotation();
|
||||||
|
|
||||||
//Check ob der Spieler am unteren Fensterrand ist
|
//Check ob der Spieler am unteren Fensterrand ist
|
||||||
if (getY()+1 >= getWorld().getHeight()){
|
if (getY()+1 >= getWorld().getHeight()){
|
||||||
Greenfoot.setWorld(new GameOverWorld());
|
MyWorld world = (MyWorld) getWorld();
|
||||||
|
Greenfoot.setWorld(new GameOverWorld(world.score));
|
||||||
}
|
}
|
||||||
//Check ob der Spieler an der Seite vom Fenster ist
|
//Check ob der Spieler an der Seite vom Fenster ist
|
||||||
if (getX() <= 0){
|
if (getX() <= 0){
|
||||||
@@ -53,11 +55,13 @@ public class Player extends Actor
|
|||||||
if (Greenfoot.isKeyDown("a"))
|
if (Greenfoot.isKeyDown("a"))
|
||||||
{
|
{
|
||||||
setLocation(getX() - speed, getY());
|
setLocation(getX() - speed, getY());
|
||||||
|
setImage("Player.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Greenfoot.isKeyDown("d"))
|
if (Greenfoot.isKeyDown("d"))
|
||||||
{
|
{
|
||||||
setLocation(getX() + speed, getY());
|
setLocation(getX() + speed, getY());
|
||||||
|
setImage("Player.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,18 +116,20 @@ public class Player extends Actor
|
|||||||
|
|
||||||
public void collision(){
|
public void collision(){
|
||||||
if (getIntersectingObjects(Projectile.class).size()>0
|
if (getIntersectingObjects(Projectile.class).size()>0
|
||||||
|| getIntersectingObjects(Enemy.class).size()>0)
|
|| getIntersectingObjects(Enemy.class).size()>0
|
||||||
|
|| getIntersectingObjects(Spike.class).size()>0)
|
||||||
{
|
{
|
||||||
health--;
|
health--;
|
||||||
getWorld().removeObjects(getIntersectingObjects(Projectile.class));
|
getWorld().removeObjects(getIntersectingObjects(Projectile.class));
|
||||||
getWorld().removeObjects(getIntersectingObjects(Enemy.class));
|
getWorld().removeObjects(getIntersectingObjects(Enemy.class));
|
||||||
|
getWorld().removeObjects(getWorld().getObjects(Spike.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void checkHealth(){
|
public void checkHealth(){
|
||||||
if (health <= 0){
|
if (health <= 0){
|
||||||
Greenfoot.setWorld(new GameOverWorld());
|
MyWorld world = (MyWorld) getWorld();
|
||||||
|
Greenfoot.setWorld(new GameOverWorld(world.score));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,7 +141,7 @@ public class Player extends Actor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reveivePowerUp(int duration, String type){
|
public void receivePowerUp(int duration, String type){
|
||||||
switch(type){
|
switch(type){
|
||||||
case "dummy":
|
case "dummy":
|
||||||
break;
|
break;
|
||||||
@@ -143,10 +149,12 @@ public class Player extends Actor
|
|||||||
currentJumpStrength = defaultJumpStrength;
|
currentJumpStrength = defaultJumpStrength;
|
||||||
currentJumpStrength += jumpBoostStrength;
|
currentJumpStrength += jumpBoostStrength;
|
||||||
jumpBoostDuration = duration;
|
jumpBoostDuration = duration;
|
||||||
|
break;
|
||||||
case "Heal":
|
case "Heal":
|
||||||
if (health < MAX_HEALTH){
|
if (health < MAX_HEALTH){
|
||||||
health++;
|
health++;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case "GroundPower":
|
case "GroundPower":
|
||||||
World theWorld= this.getWorld();
|
World theWorld= this.getWorld();
|
||||||
if(!theWorld.getObjects(TemporaryGround.class).isEmpty())
|
if(!theWorld.getObjects(TemporaryGround.class).isEmpty())
|
||||||
@@ -155,8 +163,18 @@ public class Player extends Actor
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
theWorld.addObject((new TemporaryGround(duration)), 200, 550);
|
theWorld.addObject((new TemporaryGround(duration)), 200, 575);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void playerRotation(){
|
||||||
|
if(Greenfoot.isKeyDown("a")){
|
||||||
|
setImage("PlayerLeft.png");
|
||||||
|
}
|
||||||
|
if(Greenfoot.isKeyDown("d")){
|
||||||
|
setImage("Player.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
|||||||
*/
|
*/
|
||||||
public class PlayerProjectile extends Actor
|
public class PlayerProjectile extends Actor
|
||||||
{
|
{
|
||||||
|
boolean deleteAfterActCycle = false;
|
||||||
/**
|
/**
|
||||||
* Act - do whatever the PlayerProjectile wants to do. This method is called whenever
|
* Act - do whatever the PlayerProjectile wants to do. This method is called whenever
|
||||||
* the 'Act' or 'Run' button gets pressed in the environment.
|
* the 'Act' or 'Run' button gets pressed in the environment.
|
||||||
@@ -16,7 +17,7 @@ public class PlayerProjectile extends Actor
|
|||||||
{
|
{
|
||||||
move(7);
|
move(7);
|
||||||
checkForEnemyCollision();
|
checkForEnemyCollision();
|
||||||
if (!isProjectileOnScreen()){
|
if (deleteAfterActCycle || !isProjectileOnScreen()){
|
||||||
getWorld().removeObject(this);
|
getWorld().removeObject(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,7 +25,7 @@ public class PlayerProjectile extends Actor
|
|||||||
public void checkForEnemyCollision(){
|
public void checkForEnemyCollision(){
|
||||||
if (getOneIntersectingObject(Enemy.class) != null){
|
if (getOneIntersectingObject(Enemy.class) != null){
|
||||||
getWorld().removeObject(getOneIntersectingObject(Enemy.class));
|
getWorld().removeObject(getOneIntersectingObject(Enemy.class));
|
||||||
getWorld().removeObject(this);
|
deleteAfterActCycle = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,6 @@ comment2.params=
|
|||||||
comment2.target=void\ touchedByPlayer()
|
comment2.target=void\ touchedByPlayer()
|
||||||
comment3.params=
|
comment3.params=
|
||||||
comment3.target=void\ collect()
|
comment3.target=void\ collect()
|
||||||
numComments=4
|
comment4.params=
|
||||||
|
comment4.target=void\ moveDown()
|
||||||
|
numComments=5
|
||||||
|
|||||||
@@ -9,20 +9,35 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
|||||||
public class PowerUps extends Actor
|
public class PowerUps extends Actor
|
||||||
{
|
{
|
||||||
int duration;
|
int duration;
|
||||||
|
boolean deleteAfterActCycle = false;
|
||||||
|
|
||||||
public void act()
|
public void act()
|
||||||
{
|
{
|
||||||
|
moveDown();
|
||||||
touchedByPlayer();
|
touchedByPlayer();
|
||||||
|
if (deleteAfterActCycle){
|
||||||
|
getWorld().removeObject(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void touchedByPlayer(){
|
public void touchedByPlayer(){
|
||||||
if (getIntersectingObjects(Player.class).size() > 0){
|
if (getIntersectingObjects(Player.class).size() > 0){
|
||||||
collect();
|
collect();
|
||||||
getWorld().removeObject(this);
|
deleteAfterActCycle = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void collect(){
|
void collect(){
|
||||||
Player player = getIntersectingObjects(Player.class).get(0);
|
Player player = getIntersectingObjects(Player.class).get(0);
|
||||||
player.reveivePowerUp(duration, "dummy");
|
player.receivePowerUp(duration, "dummy");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void moveDown()
|
||||||
|
{
|
||||||
|
setLocation(this.getX(), this.getY()+2);
|
||||||
|
if(this.getY() >= getWorld().getHeight()-1)
|
||||||
|
{
|
||||||
|
deleteAfterActCycle = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,11 +20,6 @@ public class Spike extends Actor
|
|||||||
*/
|
*/
|
||||||
public void act()
|
public void act()
|
||||||
{
|
{
|
||||||
// Add your action code here.
|
|
||||||
if(this.isTouching(Player.class))
|
|
||||||
{
|
|
||||||
Greenfoot.setWorld(new GameOverWorld());
|
|
||||||
}
|
|
||||||
this.bewege();
|
this.bewege();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ public class SpikedPlattform extends Plattform
|
|||||||
{
|
{
|
||||||
this.spikeTheSurface();
|
this.spikeTheSurface();
|
||||||
}
|
}
|
||||||
if(isSpiked && this.PlayerOnPlattform())
|
|
||||||
{
|
|
||||||
Greenfoot.setWorld(new GameOverWorld());
|
|
||||||
}
|
|
||||||
super.act();
|
super.act();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class StartWorld extends World
|
|||||||
private void prepare()
|
private void prepare()
|
||||||
{
|
{
|
||||||
Button button = new Button();
|
Button button = new Button();
|
||||||
addObject(button,200,350);
|
addObject(button,200,310);
|
||||||
button.setImage("Start.png");
|
button.setImage("Start.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,4 +12,6 @@ comment4.params=
|
|||||||
comment4.target=void\ noMoreWarning()
|
comment4.target=void\ noMoreWarning()
|
||||||
comment5.params=pDuration
|
comment5.params=pDuration
|
||||||
comment5.target=void\ RefreshLifeToDuration(int)
|
comment5.target=void\ RefreshLifeToDuration(int)
|
||||||
numComments=6
|
comment6.params=
|
||||||
|
comment6.target=void\ Buffer()
|
||||||
|
numComments=7
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ public class TemporaryGround extends Plattform
|
|||||||
public void act()
|
public void act()
|
||||||
{
|
{
|
||||||
// Add your action code here.
|
// Add your action code here.
|
||||||
|
this.Buffer();
|
||||||
Lebensdauer--;
|
Lebensdauer--;
|
||||||
if(Lebensdauer==0)
|
if(Lebensdauer==0)
|
||||||
{
|
{
|
||||||
@@ -40,14 +41,14 @@ public class TemporaryGround extends Plattform
|
|||||||
|
|
||||||
public void warning()
|
public void warning()
|
||||||
{
|
{
|
||||||
this.setImage("TemporaryIsBreaking.png");
|
this.setImage("BreakingGround.png");
|
||||||
warningHasHappend=true;
|
warningHasHappend=true;
|
||||||
deWarningHasHappend=false;
|
deWarningHasHappend=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void noMoreWarning()
|
public void noMoreWarning()
|
||||||
{
|
{
|
||||||
this.setImage("TemporaryGround.png");
|
this.setImage("Ground.png");
|
||||||
warningHasHappend=false;
|
warningHasHappend=false;
|
||||||
deWarningHasHappend=true;
|
deWarningHasHappend=true;
|
||||||
}
|
}
|
||||||
@@ -56,4 +57,15 @@ public class TemporaryGround extends Plattform
|
|||||||
{
|
{
|
||||||
Lebensdauer=pDuration;
|
Lebensdauer=pDuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Buffer()
|
||||||
|
{
|
||||||
|
{
|
||||||
|
Player player= this.getWorld().getObjects(Player.class).get(0);
|
||||||
|
if(this.intersects(player))
|
||||||
|
{
|
||||||
|
player.setLocation(player.getX(), this.getY()-this.getImage().getHeight()-5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class UnactiveSpike extends Actor
|
|||||||
MyWorld theWorld= (MyWorld) this.getWorld();
|
MyWorld theWorld= (MyWorld) this.getWorld();
|
||||||
Spike BeispielSpike=new Spike(1);
|
Spike BeispielSpike=new Spike(1);
|
||||||
GreenfootImage SpikeImage= BeispielSpike.getImage();
|
GreenfootImage SpikeImage= BeispielSpike.getImage();
|
||||||
theWorld.addObject(new Spike(speed), this.getX(), (this.getY()- this.getImage().getHeight()/2)-10); //die Zahl Minus damit ist endlich passt
|
theWorld.addObject(new Spike(speed), this.getX(), (this.getY()- this.getImage().getHeight()/2)-2); //die Zahl Minus damit ist endlich passt
|
||||||
geloescht=true;
|
geloescht=true;
|
||||||
}
|
}
|
||||||
if(geloescht)
|
if(geloescht)
|
||||||
|
|||||||
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 139 B |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 707 B |
|
Before Width: | Height: | Size: 751 B After Width: | Height: | Size: 750 B |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 272 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 329 B |
|
After Width: | Height: | Size: 578 B |
@@ -1,131 +1,155 @@
|
|||||||
#Greenfoot project file
|
#Greenfoot project file
|
||||||
class.BreakingPlattform.image=Unbenannt2.png
|
class.BreakingPlattform.image=Breaking1.png
|
||||||
|
class.Button.image=button-red.png
|
||||||
|
class.Enemy.image=Enemy.png
|
||||||
|
class.EnemyProjectile.image=EnemyProjectile.png
|
||||||
|
class.GameOverWorld.image=JUMP\ \u2018N\u2019\ RUNj.png
|
||||||
class.Ground.image=weave.jpg
|
class.Ground.image=weave.jpg
|
||||||
class.Groundflower.image=beeper.png
|
class.Groundflower.image=flower2.png
|
||||||
class.MovingPlattform.image=Unbenannt.png
|
class.HealthItem.image=Health.png
|
||||||
class.Plattform.image=Plattform.png
|
class.Heart.image=Health.png
|
||||||
class.Player.image=ppl2.png
|
class.JumpBoostItem.image=mushroom.png
|
||||||
class.Spike.image=Spike.png
|
class.MovingPlattform.image=Platform1.png
|
||||||
class.SpikedPlattform.image=SpikedPlattform.png
|
class.MyWorld.image=GameBackground.png
|
||||||
class.TemporaryGround.image=TemporaryGround.png
|
class.Plattform.image=Platform1.png
|
||||||
|
class.Player.image=Player.png
|
||||||
|
class.PlayerProjectile.image=PlayerProjectile.png
|
||||||
|
class.Projectile.image=Projectile1.png
|
||||||
|
class.Spike.image=singleSpike.png
|
||||||
|
class.SpikedPlattform.image=Spikes2.png
|
||||||
|
class.StartWorld.image=StartBackground.png
|
||||||
|
class.TargetingProjectile.image=TargetProjectile.png
|
||||||
|
class.TemporaryGround.image=Ground.png
|
||||||
class.UnactiveSpike.image=Spike_Copy.png
|
class.UnactiveSpike.image=Spike_Copy.png
|
||||||
dependency1.from=PlayerTestWorld
|
dependency1.from=PlayerTestWorld
|
||||||
dependency1.to=Ground
|
dependency1.to=Ground
|
||||||
dependency1.type=UsesDependency
|
dependency1.type=UsesDependency
|
||||||
dependency10.from=MyWorld
|
dependency10.from=MyWorld
|
||||||
dependency10.to=SpikedPlattform
|
dependency10.to=BreakingPlattform
|
||||||
dependency10.type=UsesDependency
|
dependency10.type=UsesDependency
|
||||||
dependency11.from=MyWorld
|
dependency11.from=MyWorld
|
||||||
dependency11.to=Projectile
|
dependency11.to=SpikedPlattform
|
||||||
dependency11.type=UsesDependency
|
dependency11.type=UsesDependency
|
||||||
dependency12.from=MyWorld
|
dependency12.from=MyWorld
|
||||||
dependency12.to=TargetingProjectile
|
dependency12.to=Groundflower
|
||||||
dependency12.type=UsesDependency
|
dependency12.type=UsesDependency
|
||||||
dependency13.from=GameOverWorld
|
dependency13.from=MyWorld
|
||||||
dependency13.to=Button
|
dependency13.to=HealthItem
|
||||||
dependency13.type=UsesDependency
|
dependency13.type=UsesDependency
|
||||||
dependency14.from=StartWorld
|
dependency14.from=MyWorld
|
||||||
dependency14.to=Button
|
dependency14.to=JumpBoostItem
|
||||||
dependency14.type=UsesDependency
|
dependency14.type=UsesDependency
|
||||||
dependency15.from=UnactiveSpike
|
dependency15.from=MyWorld
|
||||||
dependency15.to=SpikedPlattform
|
dependency15.to=Enemy
|
||||||
dependency15.type=UsesDependency
|
dependency15.type=UsesDependency
|
||||||
dependency16.from=UnactiveSpike
|
dependency16.from=MyWorld
|
||||||
dependency16.to=MyWorld
|
dependency16.to=Projectile
|
||||||
dependency16.type=UsesDependency
|
dependency16.type=UsesDependency
|
||||||
dependency17.from=UnactiveSpike
|
dependency17.from=MyWorld
|
||||||
dependency17.to=Spike
|
dependency17.to=TargetingProjectile
|
||||||
dependency17.type=UsesDependency
|
dependency17.type=UsesDependency
|
||||||
dependency18.from=Button
|
dependency18.from=GameOverWorld
|
||||||
dependency18.to=MyWorld
|
dependency18.to=Button
|
||||||
dependency18.type=UsesDependency
|
dependency18.type=UsesDependency
|
||||||
dependency19.from=PowerUps
|
dependency19.from=GameOverWorld
|
||||||
dependency19.to=Player
|
dependency19.to=Score
|
||||||
dependency19.type=UsesDependency
|
dependency19.type=UsesDependency
|
||||||
dependency2.from=PlayerTestWorld
|
dependency2.from=PlayerTestWorld
|
||||||
dependency2.to=Player
|
dependency2.to=Player
|
||||||
dependency2.type=UsesDependency
|
dependency2.type=UsesDependency
|
||||||
dependency20.from=HealthItem
|
dependency20.from=StartWorld
|
||||||
dependency20.to=Player
|
dependency20.to=Button
|
||||||
dependency20.type=UsesDependency
|
dependency20.type=UsesDependency
|
||||||
dependency21.from=JumpBoostItem
|
dependency21.from=UnactiveSpike
|
||||||
dependency21.to=Player
|
dependency21.to=SpikedPlattform
|
||||||
dependency21.type=UsesDependency
|
dependency21.type=UsesDependency
|
||||||
dependency22.from=Groundflower
|
dependency22.from=UnactiveSpike
|
||||||
dependency22.to=Player
|
dependency22.to=MyWorld
|
||||||
dependency22.type=UsesDependency
|
dependency22.type=UsesDependency
|
||||||
dependency23.from=Enemy
|
dependency23.from=UnactiveSpike
|
||||||
dependency23.to=Player
|
dependency23.to=Spike
|
||||||
dependency23.type=UsesDependency
|
dependency23.type=UsesDependency
|
||||||
dependency24.from=Enemy
|
dependency24.from=Button
|
||||||
dependency24.to=EnemyProjectile
|
dependency24.to=MyWorld
|
||||||
dependency24.type=UsesDependency
|
dependency24.type=UsesDependency
|
||||||
dependency25.from=Spike
|
dependency25.from=PowerUps
|
||||||
dependency25.to=GameOverWorld
|
dependency25.to=Player
|
||||||
dependency25.type=UsesDependency
|
dependency25.type=UsesDependency
|
||||||
dependency26.from=Spike
|
dependency26.from=HealthItem
|
||||||
dependency26.to=MyWorld
|
dependency26.to=Player
|
||||||
dependency26.type=UsesDependency
|
dependency26.type=UsesDependency
|
||||||
dependency27.from=Spike
|
dependency27.from=JumpBoostItem
|
||||||
dependency27.to=Player
|
dependency27.to=Player
|
||||||
dependency27.type=UsesDependency
|
dependency27.type=UsesDependency
|
||||||
dependency28.from=Player
|
dependency28.from=Groundflower
|
||||||
dependency28.to=GameOverWorld
|
dependency28.to=Player
|
||||||
dependency28.type=UsesDependency
|
dependency28.type=UsesDependency
|
||||||
dependency29.from=Player
|
dependency29.from=Enemy
|
||||||
dependency29.to=Plattform
|
dependency29.to=Player
|
||||||
dependency29.type=UsesDependency
|
dependency29.type=UsesDependency
|
||||||
dependency3.from=PlayerTestWorld
|
dependency3.from=PlayerTestWorld
|
||||||
dependency3.to=JumpBoostItem
|
dependency3.to=JumpBoostItem
|
||||||
dependency3.type=UsesDependency
|
dependency3.type=UsesDependency
|
||||||
dependency30.from=Player
|
dependency30.from=Enemy
|
||||||
dependency30.to=PlayerProjectile
|
dependency30.to=EnemyProjectile
|
||||||
dependency30.type=UsesDependency
|
dependency30.type=UsesDependency
|
||||||
dependency31.from=Player
|
dependency31.from=Spike
|
||||||
dependency31.to=TemporaryGround
|
dependency31.to=MyWorld
|
||||||
dependency31.type=UsesDependency
|
dependency31.type=UsesDependency
|
||||||
dependency32.from=Player
|
dependency32.from=Player
|
||||||
dependency32.to=Projectile
|
dependency32.to=GameOverWorld
|
||||||
dependency32.type=UsesDependency
|
dependency32.type=UsesDependency
|
||||||
dependency33.from=Player
|
dependency33.from=Player
|
||||||
dependency33.to=Enemy
|
dependency33.to=Plattform
|
||||||
dependency33.type=UsesDependency
|
dependency33.type=UsesDependency
|
||||||
dependency34.from=Healthbar
|
dependency34.from=Player
|
||||||
dependency34.to=Player
|
dependency34.to=PlayerProjectile
|
||||||
dependency34.type=UsesDependency
|
dependency34.type=UsesDependency
|
||||||
dependency35.from=Plattform
|
dependency35.from=Player
|
||||||
dependency35.to=MyWorld
|
dependency35.to=TemporaryGround
|
||||||
dependency35.type=UsesDependency
|
dependency35.type=UsesDependency
|
||||||
dependency36.from=Plattform
|
dependency36.from=Player
|
||||||
dependency36.to=Player
|
dependency36.to=Projectile
|
||||||
dependency36.type=UsesDependency
|
dependency36.type=UsesDependency
|
||||||
dependency37.from=MovingPlattform
|
dependency37.from=Player
|
||||||
dependency37.to=MyWorld
|
dependency37.to=Enemy
|
||||||
dependency37.type=UsesDependency
|
dependency37.type=UsesDependency
|
||||||
dependency38.from=MovingPlattform
|
dependency38.from=Player
|
||||||
dependency38.to=Player
|
dependency38.to=Spike
|
||||||
dependency38.type=UsesDependency
|
dependency38.type=UsesDependency
|
||||||
dependency39.from=SpikedPlattform
|
dependency39.from=Plattform
|
||||||
dependency39.to=Spike
|
dependency39.to=MyWorld
|
||||||
dependency39.type=UsesDependency
|
dependency39.type=UsesDependency
|
||||||
dependency4.from=MyWorld
|
dependency4.from=MyWorld
|
||||||
dependency4.to=Player
|
dependency4.to=Player
|
||||||
dependency4.type=UsesDependency
|
dependency4.type=UsesDependency
|
||||||
dependency40.from=SpikedPlattform
|
dependency40.from=Plattform
|
||||||
dependency40.to=GameOverWorld
|
dependency40.to=Player
|
||||||
dependency40.type=UsesDependency
|
dependency40.type=UsesDependency
|
||||||
dependency41.from=SpikedPlattform
|
dependency41.from=MovingPlattform
|
||||||
dependency41.to=MyWorld
|
dependency41.to=MyWorld
|
||||||
dependency41.type=UsesDependency
|
dependency41.type=UsesDependency
|
||||||
dependency42.from=SpikedPlattform
|
dependency42.from=MovingPlattform
|
||||||
dependency42.to=UnactiveSpike
|
dependency42.to=Player
|
||||||
dependency42.type=UsesDependency
|
dependency42.type=UsesDependency
|
||||||
dependency43.from=TargetingProjectile
|
dependency43.from=TemporaryGround
|
||||||
dependency43.to=Player
|
dependency43.to=Player
|
||||||
dependency43.type=UsesDependency
|
dependency43.type=UsesDependency
|
||||||
dependency44.from=PlayerProjectile
|
dependency44.from=SpikedPlattform
|
||||||
dependency44.to=Enemy
|
dependency44.to=Spike
|
||||||
dependency44.type=UsesDependency
|
dependency44.type=UsesDependency
|
||||||
|
dependency45.from=SpikedPlattform
|
||||||
|
dependency45.to=MyWorld
|
||||||
|
dependency45.type=UsesDependency
|
||||||
|
dependency46.from=SpikedPlattform
|
||||||
|
dependency46.to=UnactiveSpike
|
||||||
|
dependency46.type=UsesDependency
|
||||||
|
dependency47.from=TargetingProjectile
|
||||||
|
dependency47.to=Player
|
||||||
|
dependency47.type=UsesDependency
|
||||||
|
dependency48.from=PlayerProjectile
|
||||||
|
dependency48.to=Enemy
|
||||||
|
dependency48.type=UsesDependency
|
||||||
dependency5.from=MyWorld
|
dependency5.from=MyWorld
|
||||||
dependency5.to=Score
|
dependency5.to=Score
|
||||||
dependency5.type=UsesDependency
|
dependency5.type=UsesDependency
|
||||||
@@ -133,20 +157,20 @@ dependency6.from=MyWorld
|
|||||||
dependency6.to=Plattform
|
dependency6.to=Plattform
|
||||||
dependency6.type=UsesDependency
|
dependency6.type=UsesDependency
|
||||||
dependency7.from=MyWorld
|
dependency7.from=MyWorld
|
||||||
dependency7.to=Healthbar
|
dependency7.to=Heart
|
||||||
dependency7.type=UsesDependency
|
dependency7.type=UsesDependency
|
||||||
dependency8.from=MyWorld
|
dependency8.from=MyWorld
|
||||||
dependency8.to=MovingPlattform
|
dependency8.to=TemporaryGround
|
||||||
dependency8.type=UsesDependency
|
dependency8.type=UsesDependency
|
||||||
dependency9.from=MyWorld
|
dependency9.from=MyWorld
|
||||||
dependency9.to=BreakingPlattform
|
dependency9.to=MovingPlattform
|
||||||
dependency9.type=UsesDependency
|
dependency9.type=UsesDependency
|
||||||
editor.fx.0.height=739
|
editor.fx.0.height=607
|
||||||
editor.fx.0.width=816
|
editor.fx.0.width=1092
|
||||||
editor.fx.0.x=552
|
editor.fx.0.x=223
|
||||||
editor.fx.0.y=98
|
editor.fx.0.y=111
|
||||||
height=1048
|
height=814
|
||||||
package.numDependencies=44
|
package.numDependencies=48
|
||||||
package.numTargets=25
|
package.numTargets=25
|
||||||
project.charset=UTF-8
|
project.charset=UTF-8
|
||||||
publish.hasSource=false
|
publish.hasSource=false
|
||||||
@@ -163,56 +187,56 @@ readme.x=10
|
|||||||
readme.y=10
|
readme.y=10
|
||||||
simulation.speed=50
|
simulation.speed=50
|
||||||
target1.height=70
|
target1.height=70
|
||||||
target1.name=MovingPlattform
|
target1.name=Heart
|
||||||
target1.showInterface=false
|
target1.showInterface=false
|
||||||
target1.type=ClassTarget
|
target1.type=ClassTarget
|
||||||
target1.width=120
|
target1.width=120
|
||||||
target1.x=0
|
target1.x=0
|
||||||
target1.y=0
|
target1.y=0
|
||||||
target10.height=70
|
target10.height=70
|
||||||
target10.name=PowerUps
|
target10.name=Button
|
||||||
target10.showInterface=false
|
target10.showInterface=false
|
||||||
target10.type=ClassTarget
|
target10.type=ClassTarget
|
||||||
target10.width=120
|
target10.width=120
|
||||||
target10.x=0
|
target10.x=0
|
||||||
target10.y=0
|
target10.y=0
|
||||||
target11.height=70
|
target11.height=70
|
||||||
target11.name=Enemy
|
target11.name=PowerUps
|
||||||
target11.showInterface=false
|
target11.showInterface=false
|
||||||
target11.type=ClassTarget
|
target11.type=ClassTarget
|
||||||
target11.width=120
|
target11.width=120
|
||||||
target11.x=0
|
target11.x=0
|
||||||
target11.y=0
|
target11.y=0
|
||||||
target12.height=70
|
target12.height=70
|
||||||
target12.name=MyWorld
|
target12.name=Enemy
|
||||||
target12.showInterface=false
|
target12.showInterface=false
|
||||||
target12.type=ClassTarget
|
target12.type=ClassTarget
|
||||||
target12.width=120
|
target12.width=120
|
||||||
target12.x=0
|
target12.x=0
|
||||||
target12.y=0
|
target12.y=0
|
||||||
target13.height=70
|
target13.height=70
|
||||||
target13.name=Spike
|
target13.name=MyWorld
|
||||||
target13.showInterface=false
|
target13.showInterface=false
|
||||||
target13.type=ClassTarget
|
target13.type=ClassTarget
|
||||||
target13.width=120
|
target13.width=120
|
||||||
target13.x=0
|
target13.x=0
|
||||||
target13.y=0
|
target13.y=0
|
||||||
target14.height=70
|
target14.height=70
|
||||||
target14.name=Groundflower
|
target14.name=Spike
|
||||||
target14.showInterface=false
|
target14.showInterface=false
|
||||||
target14.type=ClassTarget
|
target14.type=ClassTarget
|
||||||
target14.width=120
|
target14.width=120
|
||||||
target14.x=0
|
target14.x=0
|
||||||
target14.y=0
|
target14.y=0
|
||||||
target15.height=70
|
target15.height=70
|
||||||
target15.name=Player
|
target15.name=Groundflower
|
||||||
target15.showInterface=false
|
target15.showInterface=false
|
||||||
target15.type=ClassTarget
|
target15.type=ClassTarget
|
||||||
target15.width=120
|
target15.width=120
|
||||||
target15.x=0
|
target15.x=0
|
||||||
target15.y=0
|
target15.y=0
|
||||||
target16.height=70
|
target16.height=70
|
||||||
target16.name=Healthbar
|
target16.name=Player
|
||||||
target16.showInterface=false
|
target16.showInterface=false
|
||||||
target16.type=ClassTarget
|
target16.type=ClassTarget
|
||||||
target16.width=120
|
target16.width=120
|
||||||
@@ -240,7 +264,7 @@ target19.width=120
|
|||||||
target19.x=0
|
target19.x=0
|
||||||
target19.y=0
|
target19.y=0
|
||||||
target2.height=70
|
target2.height=70
|
||||||
target2.name=Ground
|
target2.name=MovingPlattform
|
||||||
target2.showInterface=false
|
target2.showInterface=false
|
||||||
target2.type=ClassTarget
|
target2.type=ClassTarget
|
||||||
target2.width=120
|
target2.width=120
|
||||||
@@ -289,56 +313,56 @@ target25.width=120
|
|||||||
target25.x=0
|
target25.x=0
|
||||||
target25.y=0
|
target25.y=0
|
||||||
target3.height=70
|
target3.height=70
|
||||||
target3.name=HealthItem
|
target3.name=Ground
|
||||||
target3.showInterface=false
|
target3.showInterface=false
|
||||||
target3.type=ClassTarget
|
target3.type=ClassTarget
|
||||||
target3.width=120
|
target3.width=120
|
||||||
target3.x=0
|
target3.x=0
|
||||||
target3.y=0
|
target3.y=0
|
||||||
target4.height=70
|
target4.height=70
|
||||||
target4.name=UnactiveSpike
|
target4.name=HealthItem
|
||||||
target4.showInterface=false
|
target4.showInterface=false
|
||||||
target4.type=ClassTarget
|
target4.type=ClassTarget
|
||||||
target4.width=120
|
target4.width=120
|
||||||
target4.x=0
|
target4.x=0
|
||||||
target4.y=0
|
target4.y=0
|
||||||
target5.height=70
|
target5.height=70
|
||||||
target5.name=JumpBoostItem
|
target5.name=UnactiveSpike
|
||||||
target5.showInterface=false
|
target5.showInterface=false
|
||||||
target5.type=ClassTarget
|
target5.type=ClassTarget
|
||||||
target5.width=120
|
target5.width=120
|
||||||
target5.x=0
|
target5.x=0
|
||||||
target5.y=0
|
target5.y=0
|
||||||
target6.height=70
|
target6.height=70
|
||||||
target6.name=PlayerTestWorld
|
target6.name=JumpBoostItem
|
||||||
target6.showInterface=false
|
target6.showInterface=false
|
||||||
target6.type=ClassTarget
|
target6.type=ClassTarget
|
||||||
target6.width=120
|
target6.width=120
|
||||||
target6.x=0
|
target6.x=0
|
||||||
target6.y=0
|
target6.y=0
|
||||||
target7.height=70
|
target7.height=70
|
||||||
target7.name=TargetingProjectile
|
target7.name=PlayerTestWorld
|
||||||
target7.showInterface=false
|
target7.showInterface=false
|
||||||
target7.type=ClassTarget
|
target7.type=ClassTarget
|
||||||
target7.width=120
|
target7.width=120
|
||||||
target7.x=0
|
target7.x=0
|
||||||
target7.y=0
|
target7.y=0
|
||||||
target8.height=70
|
target8.height=70
|
||||||
target8.name=TemporaryGround
|
target8.name=TargetingProjectile
|
||||||
target8.showInterface=false
|
target8.showInterface=false
|
||||||
target8.type=ClassTarget
|
target8.type=ClassTarget
|
||||||
target8.width=120
|
target8.width=120
|
||||||
target8.x=0
|
target8.x=0
|
||||||
target8.y=0
|
target8.y=0
|
||||||
target9.height=70
|
target9.height=70
|
||||||
target9.name=Button
|
target9.name=TemporaryGround
|
||||||
target9.showInterface=false
|
target9.showInterface=false
|
||||||
target9.type=ClassTarget
|
target9.type=ClassTarget
|
||||||
target9.width=120
|
target9.width=120
|
||||||
target9.x=0
|
target9.x=0
|
||||||
target9.y=0
|
target9.y=0
|
||||||
version=3.1.0
|
version=3.1.0
|
||||||
width=1936
|
width=1534
|
||||||
world.lastInstantiated=StartWorld
|
world.lastInstantiated=StartWorld
|
||||||
xPosition=0
|
xPosition=0
|
||||||
yPosition=0
|
yPosition=117
|
||||||
|
|||||||