Fullscreen issue

edited March 2017 in Library Questions

import ddf.minim.*;

Minim minim; AudioPlayer player;

PFont font; char letter ; String words = ""; String words2 = ""; String words3 = ""; String words4 = ""; String words5 = ""; String words6 = ""; String words7 = ""; PImage img; boolean showTitleScreen = true; boolean type; boolean check; boolean renaissance; boolean jeopardy; boolean necessary; boolean exercise; boolean conscience; boolean mannequin; boolean february; boolean gameover;

void setup () { fullScreen(); // size(1366, 768); pixelDensity(2); img = loadImage("menu.jpg");

Hi guys! This is the code for a game I made but i'm having trouble making it a fullscreen sketch. The image doesn't resize to accommodate the screen.

Answers

  • You can resize the image (check the reference) or you could do image(img,0,0,width,height);

    Kf

Sign In or Register to comment.