Skip to content

Commit

Permalink
new class for friendlyCreatures and their graphic
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzzhuang committed Jun 13, 2024
1 parent 4acc4f9 commit 40c7612
Show file tree
Hide file tree
Showing 11 changed files with 175 additions and 86 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.
Loading

0 comments on commit 40c7612

Please sign in to comment.