Search found 286 matches

by Sir_Silver
Mon Nov 28, 2016 2:13 pm
Forum: Support and Development
Topic: How to draw all objects on screen?
Replies: 12
Views: 11032

Re: How to draw all objects on screen?

Can it be more efficient by calling table.insert inside the object's init function instead of calling table.insert for every actor object? Yes, but it probably won't matter too much how efficient your actor initialization and insertion is unless your going to be creating an absurd amount of them, o...
by Sir_Silver
Mon Nov 28, 2016 6:42 am
Forum: Support and Development
Topic: How to group 130 png files to make an explosion?
Replies: 14
Views: 12565

Re: How to group 130 png files to make an explosion?

Pretty cool, not perfect like you said but you can always make it better. Like Ivan mentioned, using particles might be a better way of trying to do what you want. I haven't used particles yet, so I won't be of much help with that, but you probably will want to look into that on your own time. :P
by Sir_Silver
Mon Nov 28, 2016 4:19 am
Forum: Support and Development
Topic: How to group 130 png files to make an explosion?
Replies: 14
Views: 12565

Re: How to group 130 png files to make an explosion?

This is probably not the simplest example, but I tried to comment it so that it would be easier to understand. My example uses a single main image and divides the image up into the parts that we want to animate. You can download the love file attached at the bottom to see it in action too. local ani...
by Sir_Silver
Sat Nov 26, 2016 11:52 am
Forum: Support and Development
Topic: Getting Windows 10 color
Replies: 9
Views: 4676

Re: Getting Windows 10 color

Hello and welcome to the forums! Does what you're trying to do here have anything to do with Love2D or programming with Lua, because if it doesn't then I won't really know how to help you. =( The way your question is worded makes me think that you want to customize the way Windows 10 looks on your PC.
by Sir_Silver
Thu Nov 24, 2016 10:49 pm
Forum: Support and Development
Topic: How to paint without redraw.
Replies: 9
Views: 6783

Re: How to paint without redraw.

Cheers, :3.
by Sir_Silver
Thu Nov 24, 2016 11:54 am
Forum: Support and Development
Topic: How to paint without redraw.
Replies: 9
Views: 6783

Re: How to paint without redraw.

Based on your analogy to ms paint, I'm guessing your trying to make something similar, but your own, to it. Here's another example that you can play with, which is basically a really basic (and not good) clone of ms paint. As always, code and love file attached. local mouse_positions = {} local size...
by Sir_Silver
Thu Nov 24, 2016 10:14 am
Forum: Libraries and Tools
Topic: Boids
Replies: 16
Views: 10867

Re: Boids

Cool demo. I have a couple of suggestions about the code: closest = {x=boid.x,y=boid.y} The line above creates a lot of intermediate tables, you can just use 2 variables or do: closest.x, closest.y = boid.x, boid.y I haven't taken the time to download the love file or check out the code, but what's...
by Sir_Silver
Wed Nov 23, 2016 6:26 am
Forum: Support and Development
Topic: How to paint without redraw.
Replies: 9
Views: 6783

Re: How to paint without redraw.

Forgive me if I interpreted what you're trying to do here wrong, it helps to be explicit about exactly what you're trying to do. I wrote something for you that draws circles trailing your cursor's position, hopefully this helps you. I'll share the code and love file too. :emo: local mouse_positions ...
by Sir_Silver
Wed Nov 23, 2016 12:13 am
Forum: Games and Creations
Topic: i made this thing
Replies: 11
Views: 6503

Re: i made this thing

Very cool, it would be nice though if you talked a little bit about exactly whats goin' on here :)
by Sir_Silver
Fri Nov 11, 2016 2:17 pm
Forum: Games and Creations
Topic: Hex Engine
Replies: 11
Views: 11580

Re: Hex Engine

Those pictures of your game have gotten me to think about how I might make my own hex grid sort of game and what it might be about. Is the project still in development or maybe you're taking a good long break from it? I'm starting to consider making my own game like this :O