Search found 14 matches
- Thu Feb 08, 2018 1:18 pm
- Forum: Support and Development
- Topic: How do draw a lot of similar animations
- Replies: 6
- Views: 3721
Re: How do draw a lot of similar animations
Ah now I get it! Thanks for taking the time to explain. So what you say is that it is better to have one spritebatch which I modify instead of having multiple spritebatches which are modified not so often. My idea was all the time to have a few spritebatches which all draw the screen in a different ...
- Thu Feb 08, 2018 12:29 pm
- Forum: Support and Development
- Topic: How do draw a lot of similar animations
- Replies: 6
- Views: 3721
Re: How do draw a lot of similar animations
Ah ok thank you. But how do you mean that I don't have to have more than one spritebatch per area? My idea is to have say 3 spritebatches for the grass animation (which draw the grass stuff) and 5 for the water (which only draw water) and then per frame always draw one of the grass sprites and one o...
- Thu Feb 08, 2018 11:54 am
- Forum: Support and Development
- Topic: How do draw a lot of similar animations
- Replies: 6
- Views: 3721
Re: How do draw a lot of similar animations
Thank you for the fast answer :) What do you mean with "1-tile" spritebatch? At the moment one spritebatch draws a lot of different tiles (it draws a full 32x32 rectangle which contains grass, water etc tiles) And I don't fully understand your last paragraph. What I do at the moment is hav...
- Thu Feb 08, 2018 11:06 am
- Forum: Support and Development
- Topic: How do draw a lot of similar animations
- Replies: 6
- Views: 3721
How do draw a lot of similar animations
First I drew every tile in my game with a separate call to draw. That wasn't a very clever way so I used spritebatches. I have the world separated into areas, each having its own spritebatch. Now I want to draw animations instead of the tiles (grass wiggling in a breeze, water waving in a wave, tree...
- Sun Feb 04, 2018 1:24 pm
- Forum: Support and Development
- Topic: Can I read SVG images and just draw parts?
- Replies: 4
- Views: 4498
Re: Can I read SVG images and just draw parts?
It seems like the answer to both questions could be cairo https://luapower.com/cairo
Does anyone have experience with getting luapower to work with love? (And does anyone know an easy svg->cairo converter)?
Does anyone have experience with getting luapower to work with love? (And does anyone know an easy svg->cairo converter)?
- Sun Feb 04, 2018 10:10 am
- Forum: Support and Development
- Topic: Can I read SVG images and just draw parts?
- Replies: 4
- Views: 4498
Re: Can I read SVG images and just draw parts?
And I also have another small question which I don't want to post to an own thread: If I have an image consisting of multiple colors (SVG or not SVG, both possible), can I change one of the colors? For example to make only the leave inner color red in autumn but leave the border black?
- Sun Feb 04, 2018 9:44 am
- Forum: Support and Development
- Topic: Can I read SVG images and just draw parts?
- Replies: 4
- Views: 4498
Can I read SVG images and just draw parts?
I have some SVG images of a tree I have drawn. It consists of the main stem of the tree and a few small groups of leaves. I would like to be able to draw all leaves or just some of the leaves based on the time of the year. I also want to be able to talk to the different parts of the tree s.t. I can ...
- Sun Feb 04, 2018 9:35 am
- Forum: Support and Development
- Topic: How are wiggle animations done?
- Replies: 3
- Views: 3499
Re: How are wiggle animations done?
thanks so much for both of your answers! I am using shearing for now and I will look at the shader solution as soon as I've read a bit about shaders
- Sat Feb 03, 2018 10:41 am
- Forum: Support and Development
- Topic: How are wiggle animations done?
- Replies: 3
- Views: 3499
How are wiggle animations done?
How are animatoins as for example in Stardew Valley done (when a player walks through grass or hits a tree they "wiggle"). I have three ideas: - A sequence of frames is played where they drew each frame by hand s.t. it looks like wiggling (But does this scale in terms of how many sprites y...
- Wed Jan 31, 2018 7:48 pm
- Forum: Support and Development
- Topic: Love2D freezing on shutdown
- Replies: 9
- Views: 6391
Re: Love2D freezing on shutdown
Haha oh yeah right. I knew it was expensive but I thought why not, I am only generating the water once. Didn't realize just how expensive it was. Thanks!