Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javafx.animation.Animation;
- import javafx.animation.KeyFrame;
- import javafx.animation.Timeline;
- import javafx.application.Application;
- import javafx.scene.Scene;
- import javafx.scene.layout.BorderPane;
- import javafx.scene.layout.GridPane;
- import javafx.scene.text.Font;
- import javafx.scene.text.FontWeight;
- import javafx.scene.text.Text;
- import javafx.stage.Stage;
- import javafx.scene.control.Button;
- import javafx.event.ActionEvent;
- import javafx.geometry.Pos;
- import javafx.util.Duration;
- import java.awt.event.ActionListener;
- import java.util.Timer;
- /** In case my imports are incorrect I included them here */
- int tickspeed = 1000;
- Timer updateStats = new Timer();
- updateStats.scheduleAtFixedRate(new TimerTask() {
- @Override
- public void run () {
- player1.growStats();
- }
- }, 0, tickspeed);
Add Comment
Please, Sign In to add comment