Files
SMIMS_2026_2/SMIMS-Game/PlayerTestWorld.java
T
Jonas 9cef598196 PowerUps/JumpBoost
neue Klassen: PowerUps, JumpBoostItem

Die aktivieren und das deaktivieren der PowerUps wird im Player durchgeführt.
2026-09-15 11:33:47 +02:00

37 lines
947 B
Java

import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class PlayerTestWorld here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class PlayerTestWorld extends World
{
/**
* Constructor for objects of class PlayerTestWorld.
*
*/
public PlayerTestWorld()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(600, 400, 1);
prepare();
}
/**
* Prepare the world for the start of the program.
* That is: create the initial objects and add them to the world.
*/
private void prepare()
{
Ground ground = new Ground();
addObject(ground,260,375);
Player player = new Player();
addObject(player,264,237);
JumpBoostItem jumpBoostItem = new JumpBoostItem();
addObject(jumpBoostItem,206,200);
}
}