mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Changed FPS to 30
This commit is contained in:
@@ -132,7 +132,7 @@ public class CanvasController {
|
||||
*/
|
||||
public void initialize() {
|
||||
gc = canvas.getGraphicsContext2D();
|
||||
//gc.scale(1, 1);
|
||||
//gc.scale(2, 2);
|
||||
RaceController raceController = new RaceController();
|
||||
raceController.initializeRace();
|
||||
race = raceController.getRace();
|
||||
@@ -144,7 +144,7 @@ public class CanvasController {
|
||||
|
||||
@Override
|
||||
public void handle(long now) {
|
||||
if (now - lastUpdate >= 16000000){
|
||||
if (now - lastUpdate >= 33000000){
|
||||
gc.clearRect(0, 0, 19200, 10800);
|
||||
drawCourse();
|
||||
drawBoats();
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
package seng302.controllers;
|
||||
|
||||
import org.junit.Test;
|
||||
import seng302.models.Boat;
|
||||
import seng302.models.Event;
|
||||
import seng302.models.mark.SingleMark;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.mockito.Mockito.when;
|
||||
//import static org.mockito.Mockito.when;
|
||||
|
||||
/**
|
||||
* Created by ptg19 on 23/03/17.
|
||||
|
||||
Reference in New Issue
Block a user