Löve + loveCodea do not work.

@Bri_G Thank you very much for your guide. LÖVE funktioniert jetzt, aber ich habe noch ein paar Fragen dazu.

  1. I tried to change the width and the height of the screen with the commands at the config.lua file:
    t.screen.width = 1024
    t.screen.height = 786
    But the Screen do not changed his width and height. So what i have do ?

  2. Is it possible that Löve displayed the console and the parameters ? And if it is possible, how?

Hi @Stoneberger,

Tried it on my system and it worked OK.
Just to correct your screen res take a look at this:

iOS Screen Res

Then amended code - load these and play with the values of t.screen.width and t.screen.height.

config.lua

function love.conf(t)
	t.title = "Hello There"        -- The title of the window the game is in (string)
	t.author = "Bri_G"        -- The author of the game (string)
	t.version = "0.8.0"         -- The LÖVE version this game was made for (string)
	t.console = false           -- Attach a console (boolean, Windows only)
	t.release = false           -- Enable release mode (boolean)
	t.screen.width = 1024        -- The window width (number)
	t.screen.height = 768       -- The window height (number)
	t.screen.fullscreen = false -- Enable fullscreen (boolean)
	t.screen.vsync = true       -- Enable vertical sync (boolean)
	t.screen.fsaa = 0           -- The number of FSAA-buffers (number)
	t.modules.joystick = true   -- Enable the joystick module (boolean)
	t.modules.audio = true      -- Enable the audio module (boolean)
	t.modules.keyboard = true   -- Enable the keyboard module (boolean)
	t.modules.event = true      -- Enable the event module (boolean)
	t.modules.image = true      -- Enable the image module (boolean)
	t.modules.graphics = true   -- Enable the graphics module (boolean)
	t.modules.timer = true      -- Enable the timer module (boolean)
	t.modules.mouse = true      -- Enable the mouse module (boolean)
	t.modules.sound = true      -- Enable the sound module (boolean)
	t.modules.physics = true    -- Enable the physics module (boolean)
end

```


main.lua

if require then
    require("loveCodea")		
end

-- Use this function to perform your initial setup
function setup()
    displayMode(FULLSCREEN)
	speak = "Hello World!!"
	midX = WIDTH/2
	midY = HEIGHT/2
end

-- This function gets called once every frame
function draw()
	background(100,200,255,255)
    spriteMode(CENTER) 
    rectMode(CENTER)
	fill(50, 200, 100, 255)
	rect(midX,midY,200,200)
	fill(0,0,0,255)
	text("Hello World!!", midX, midY+40)
	text("Width : "..WIDTH, midX, midY +20)
	text("Height : "..HEIGHT, midX, midY)	
end

```



Hope that helps you out.

Bri_G

 =;

@Bri_G If i use your code Löve print at the mid WIDTH = 800 and HEIGHT=600 and that is wrong. The Width and the Height if the Screen stay. He do not change the Width and Height with the code of t.screen.width = 1024 t.screen.height = 768. The question is why ? :smiley:

Hi @Stoneberger,

Works fine on my PC (monitor resolution 1920 x 1080)!

Also, what is your monitor screen resolution set at? Love 2D checks the monitor resolution and will not exceed it. So if you ask for 1024 x 768 on a screen set up for 840 x 640 it will scale the resolution down. The default is 800 x 600 but it would reduce smaller if the screen wouldn’t take it.

What version of Windows are you using?

Bri_G

:-B

Hi @Stoneberger,

Stuck at the moment with this - I’ll keep digging. If you’re code is different could you post back so that I can check it.

Bri_G

=;

I have a 22 Zoll monitor with a solution of 1440x900. And my windows version is Windows XP.Löve do also do not change the width of the screen if i set the width on 250. The screen width stay at 800x600 … :confused:

Hi @Stoneberger,

Looks like the problem may be down to your graphics card, what are the legal modes supported by your card. You can get it from the screen properties.

Bri_G

:^o