Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Background(final int xCoordinate, final int yCoordinate, final String background)
- throws MissingBackgroundException {
- this.x = xCoordinate;
- this.y = yCoordinate;
- this.speed = INITIAL_SPEED;
- // Retrieve background image from file
- try {
- image = ImageIO.read(new File(
- "Graphics/Backgrounds/"+background));
- } catch (Exception e) {
- System.out.println("Error loading background");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement