-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8551602
commit 4fe9886
Showing
15 changed files
with
195 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
source code/core/src/no/sandramoen/drawingGame/actors/Ice.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package no.sandramoen.drawingGame.actors; | ||
|
||
import com.badlogic.gdx.Gdx; | ||
import com.badlogic.gdx.graphics.Color; | ||
import com.badlogic.gdx.scenes.scene2d.Stage; | ||
|
||
import no.sandramoen.drawingGame.actors.utils.BaseActor; | ||
|
||
public class Ice extends BaseActor { | ||
public Ice(float x, float y, Stage stage) { | ||
super(x, y, stage); | ||
loadImage("iceTest"); | ||
setColor(Color.LIGHT_GRAY); | ||
setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
source code/core/src/no/sandramoen/drawingGame/actors/Water.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package no.sandramoen.drawingGame.actors; | ||
|
||
import com.badlogic.gdx.Gdx; | ||
import com.badlogic.gdx.graphics.g2d.Animation; | ||
import com.badlogic.gdx.graphics.g2d.TextureAtlas; | ||
import com.badlogic.gdx.scenes.scene2d.Stage; | ||
import com.badlogic.gdx.utils.Array; | ||
|
||
import no.sandramoen.drawingGame.actors.utils.BaseActor; | ||
import no.sandramoen.drawingGame.utils.BaseGame; | ||
|
||
public class Water extends BaseActor { | ||
private Array<TextureAtlas.AtlasRegion> animationImages = new Array(); | ||
|
||
public Water(float x, float y, Stage stage) { | ||
super(x, y, stage); | ||
setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); | ||
|
||
animationImages.add(BaseGame.textureAtlas.findRegion("water/waterTest0"));/* | ||
animationImages.add(BaseGame.textureAtlas.findRegion("water/waterTest1"));*/ | ||
animation = new Animation(2f, animationImages, Animation.PlayMode.LOOP); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.