Search found 5 matches

by Foppy
Sun Sep 24, 2017 10:10 am
Forum: Support and Development
Topic: Creating a Letterbox Style Fullscreen Window
Replies: 8
Views: 1102

Re: Creating a Letterbox Style Fullscreen Window

I am also working on a game in C64 resolution and added this in Love.load() to get nice image scaling without blur:

Code: Select all

love.graphics.setDefaultFilter("nearest","nearest",1)
by Foppy
Thu Sep 21, 2017 11:45 pm
Forum: Support and Development
Topic: Window one pixel higher than expected
Replies: 4
Views: 546

Re: Window one pixel higher than expected

you're supposed to specify the pixel centers
This explains it! I ran into this because I am writing a pseudo 3d racing game which consists mostly of horizontal lines and saw a few unexpected empty lines. Thanks for your help!
by Foppy
Thu Sep 21, 2017 11:36 pm
Forum: Support and Development
Topic: Window one pixel higher than expected
Replies: 4
Views: 546

Re: Window one pixel higher than expected

Thank you, you are correct in that the window is of the requested height. I didn't think of checking it like that! The problem or my confusion then seems to be in how the line is drawn using love.graphics.line(). The following still leaves a row of empty pixels below the line: love.graphics.setLineS...
by Foppy
Thu Sep 21, 2017 11:01 pm
Forum: Support and Development
Topic: Window one pixel higher than expected
Replies: 4
Views: 546

Window one pixel higher than expected

In the game I am writing a window mode is set like this: love.window.setMode(1024,768) It seems that the window is one pixel higher than expected. Since the top row is at y = 0, I thought the bottom row should be y = 767. But drawing a horizontal line at y = 767 still leaves a line of pixels below i...
by Foppy
Tue Aug 29, 2017 10:37 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1643
Views: 334093

Re: What's everyone working on? (tigsource inspired)

Attempting a pseudo 3d racer, which is my first attempt at anything in Lua and Love2d. So far I have a scrolling straight road! While writing the code I use a previous game I wrote in BlitzMax as reference. I have not thought about the rest of the game yet, just trying to get the fundamentals workin...