forked from asalga/Horadrix
-
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
Showing
9 changed files
with
126 additions
and
79 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
*/ | ||
public class ScreenStory implements IScreen{ | ||
|
||
private int storyPointer = 0; | ||
|
||
RetroFont solarWindsFont; | ||
|
||
RetroLabel storyLabel; | ||
RetroLabel continueInstruction; | ||
|
||
private String[] story = new String[]{ | ||
//There once were some dino | ||
"MATCH 5 GEMS IN 5 MINUTES", | ||
"Match 10 gems in 8 minutes", | ||
"Match 15 gems in 13 minutes", | ||
"Match 20 gems in 15 minutes" | ||
}; | ||
|
||
public ScreenStory(){ | ||
solarWindsFont = new RetroFont("data/fonts/solarwinds.png", 14, 16, 2); | ||
|
||
storyLabel = new RetroLabel(solarWindsFont); | ||
storyLabel.setText(story[storyPointer]); | ||
storyLabel.pixelsFromCenter(0, 0); | ||
storyLabel.setDebug(false); | ||
|
||
continueInstruction = new RetroLabel(solarWindsFont); | ||
continueInstruction.setText("Click to continue"); | ||
continueInstruction.pixelsFromCenter(0, 50); | ||
} | ||
|
||
public void draw(){ | ||
background(0); | ||
storyLabel.draw(); | ||
continueInstruction.draw(); | ||
} | ||
|
||
public void update(){ | ||
|
||
} | ||
|
||
// Mouse methods | ||
public void mousePressed(){} | ||
public void mouseReleased(){ | ||
println("*******"); | ||
screens.transitionTo("gameplay"); | ||
} | ||
public void mouseDragged(){} | ||
public void mouseMoved(){} | ||
|
||
public void keyPressed(){} | ||
public void keyReleased(){} | ||
|
||
public String getName(){ | ||
return "story"; | ||
} | ||
|
||
public void nextLevel(){ | ||
screens.transitionTo("gameplay"); | ||
} | ||
} |
Oops, something went wrong.