Alternative tile implementation

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Alternative tile implementation

Post by vrld »

T-Bone wrote:What I mean is that my game requires framebuffers, as they're the only way to scale up text in LÖVE.
love.graphics.scale(sx,y)
love.graphics.print(text, x,y, r, sx,sy)
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Alternative tile implementation

Post by T-Bone »

vrld wrote:
T-Bone wrote:What I mean is that my game requires framebuffers, as they're the only way to scale up text in LÖVE.
love.graphics.scale(sx,y)
love.graphics.print(text, x,y, r, sx,sy)
...oh. How could I have missed that? nevermind then :P That makes so many things so much easier :neko:
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Alternative tile implementation

Post by Robin »

Also: size argument to newFont (unless you're using ImageFonts).
Help us help you: attach a .love.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Alternative tile implementation

Post by BlackBulletIV »

vrld wrote:
T-Bone wrote:What I mean is that my game requires framebuffers, as they're the only way to scale up text in LÖVE.
love.graphics.scale(sx,y)
love.graphics.print(text, x,y, r, sx,sy)
I've never thought of that before; nice.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Alternative tile implementation

Post by T-Bone »

Robin wrote:Also: size argument to newFont (unless you're using ImageFonts).
No, that's not what I want. I want to render the text in one resolution and then scale it up (I want the pixelated feel)

And that brings me to what I think is my last question regarding this: When I use love.graphics.scale(), how do I set the Filter Mode?
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Alternative tile implementation

Post by Roland_Yonaba »

See (Image):setFilter
And also this FilterMode
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Alternative tile implementation

Post by T-Bone »

Roland_Yonaba wrote:See (Image):setFilter
And also this FilterMode
What? No, that only applies to images (and framebuffers). On what "image" do I set the FilterMode when I want to apply it to the entire drawing area?

For example,

Code: Select all

function love.draw()
	love.graphics.scale(5,5)
	love.graphics.print("lolololol",20,20)
end
on what Image do I put setFilter("nearest","nearest")?
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Alternative tile implementation

Post by TechnoCat »

T-Bone wrote:
Roland_Yonaba wrote:See (Image):setFilter
And also this FilterMode
What? No, that only applies to images (and framebuffers). On what "image" do I set the FilterMode when I want to apply it to the entire drawing area?

For example,

Code: Select all

function love.draw()
	love.graphics.scale(5,5)
	love.graphics.print("lolololol",20,20)
end
on what Image do I put setFilter("nearest","nearest")?
setFilter on framebuffer, render to framebuffer, draw framebuffer.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Alternative tile implementation

Post by T-Bone »

TechnoCat wrote:
T-Bone wrote:
Roland_Yonaba wrote:See (Image):setFilter
And also this FilterMode
What? No, that only applies to images (and framebuffers). On what "image" do I set the FilterMode when I want to apply it to the entire drawing area?

For example,

Code: Select all

function love.draw()
	love.graphics.scale(5,5)
	love.graphics.print("lolololol",20,20)
end
on what Image do I put setFilter("nearest","nearest")?
setFilter on framebuffer, render to framebuffer, draw framebuffer.
Thought so. Thus I require framebuffers, so I might as well use them.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Alternative tile implementation

Post by kikito »

You could also create your own "print" using one image with all the letters.
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests