Skip to content

Commit

Permalink
Merge pull request #47 from Adrian400811/Dz1
Browse files Browse the repository at this point in the history
new class for friendlyCreatures and their graphic
  • Loading branch information
danielzzhuang authored Jun 13, 2024
2 parents e138e05 + 2b74b03 commit 91ef726
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Drone.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Write a description of class Drone here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Drone extends FriendlyCreatures
{
/**
* Act - do whatever the Drone 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.
}
}
19 changes: 19 additions & 0 deletions ExplodingRobot.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Write a description of class ExplodingRobot here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class ExplodingRobot extends FriendlyCreatures
{
/**
* Act - do whatever the ExplodingRobot 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.
}
}
19 changes: 19 additions & 0 deletions FriendlyCreatures.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Write a description of class FriendlyCreatures here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class FriendlyCreatures extends SuperSmoothMover
{
/**
* Act - do whatever the FriendlyCreatures 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.
}
}
Binary file added images/exploding robot/coolDown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/exploding robot/exploding1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/exploding robot/exploding2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/exploding robot/normal1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/exploding robot/normal2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/exploding robot/normal3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/marioCoin.png
Binary file not shown.

0 comments on commit 91ef726

Please sign in to comment.