Search found 86 matches
- Sat Oct 20, 2012 9:19 pm
- Forum: Support and Development
- Topic: How to optimise drawing 1000 8x8 tiles?
- Replies: 16
- Views: 4489
Re: How to optimise drawing 1000 8x8 tiles?
wow, looks good, but wouldn't setting color for each tile on every update too heavy/expensive? (dynamic tile lighting updates) or is there another way to make dynamic light? or maybe overlaying the spritebatch with tiles affected by light? and also: should I draw the whole world to spritebatch, or m...
- Sat Oct 20, 2012 8:40 pm
- Forum: Support and Development
- Topic: How to optimise drawing 1000 8x8 tiles?
- Replies: 16
- Views: 4489
Re: How to optimise drawing 1000 8x8 tiles?
What do you mean by "prerendering" large rectangles of tiles, and what's the point of using several canvasses? (I'm pretty new to canvasses, I use them only to provide multiple game resolutions by scaling them)
- Sat Oct 20, 2012 8:25 pm
- Forum: Support and Development
- Topic: How to optimise drawing 1000 8x8 tiles?
- Replies: 16
- Views: 4489
How to optimise drawing 1000 8x8 tiles?
Hi. I have a problem with optimising my game. KrlHz.png As you can see, when I'm drawing over 1000 tiles at time to canvas, I get about 25 fps (without drawing tiles - around 200 - and my computer specs are pretty good I think). This does (of course) not satisfy me, so I need to find a way to optimi...
- Sat Oct 13, 2012 10:49 am
- Forum: Support and Development
- Topic: Calculate final color from 3 overlapping colors
- Replies: 8
- Views: 2234
Re: Calculate final color from 3 overlapping colors
I think drawing many tiles multiple times would be too expensive.
- Sat Oct 13, 2012 8:38 am
- Forum: Support and Development
- Topic: Calculate final color from 3 overlapping colors
- Replies: 8
- Views: 2234
Re: Calculate final color from 3 overlapping colors
I can't set 2 colors on 1 tile. This code:
would not work.
Code: Select all
love.graphics.setColorMode("modulate")
love.graphics.setColor(color1)
love.graphics.setColor(color2)
love.graphics.setColor(color3)
drawTile()
- Fri Oct 12, 2012 9:02 pm
- Forum: Support and Development
- Topic: Calculate final color from 3 overlapping colors
- Replies: 8
- Views: 2234
Calculate final color from 3 overlapping colors
Hello everyone. At first i need to say, that my english isn't very good (it's not my native language). Sorry for all mistakes. I need to calculate final color (D) from 3 overlapping colors (A, B, C) 3YJ2v.png Does somebody know, how can I do that? I already made a simple function to calculate fade c...