Search found 63 matches

by nfey
Mon Feb 16, 2015 1:48 pm
Forum: General
Topic: Programs to practice coding
Replies: 6
Views: 3818

Re: Programs to practice coding

Check out www.codewars.com. It's an interactive problem-solving platform. You choose the programming language and problem and then use the web-based application to write/test your code. You can find problems ranging from the kind that are solved with short one liners to others that need specific alg...
by nfey
Fri Feb 13, 2015 4:13 pm
Forum: General
Topic: Avoiding Singletons in Lua
Replies: 5
Views: 4622

Re: Avoiding Singletons in Lua

Well, considering that you have to jump through hoops to work with objects in Lua, it's pretty easy to avoid singletons :P There isn't really a wide or narrow definition of singletons - it's pretty straightforward, as far as design patterns go: https://en.wikipedia.org/wiki/Singleton_pattern . It's ...
by nfey
Sat Jan 24, 2015 12:32 pm
Forum: General
Topic: love.update() and love.draw()
Replies: 9
Views: 4356

Re: love.update() and love.draw()

Interesting. I'll try to dig up the other thread Zorg is telling us about.
by nfey
Fri Jan 23, 2015 11:18 am
Forum: General
Topic: love.update() and love.draw()
Replies: 9
Views: 4356

Re: love.update() and love.draw()

Well, this is really interesting. I didn't stumble upon that wiki page until now. I have one question tho: what's the purpose of the sleep() call at the end of the while loop? if love.timer then love.timer.sleep(0.001) end Doesn't this pretty much hardcode a thousandth of a second's worth of lag in ...
by nfey
Fri Jan 23, 2015 10:10 am
Forum: Libraries and Tools
Topic: Loveballs, A love2d Softbody lib
Replies: 73
Views: 42352

Re: Loveballs, A love2d Softbody lib

I have no idea how to use this for an actual game mechanic that will not feel gimmicky (I will however take the challenge of coming up with something) and I don't have anything meaningful to contribute to the discussion. But I just wanted to say that this looks awesome :) Well done.
by nfey
Thu Jan 22, 2015 3:50 pm
Forum: Support and Development
Topic: [HELP] ImagePoints
Replies: 10
Views: 3087

Re: [HELP] ImagePoints

Of course, it depends on what he wants to achieve. But there's quite a bit of seemingly simple functionality that you need transformation matrices for. For example, registering clicks on stuff that moves around (or any other thing that needs pixel checking). Also, drawing is easy when you already kn...
by nfey
Thu Jan 22, 2015 10:32 am
Forum: Support and Development
Topic: [HELP] ImagePoints
Replies: 10
Views: 3087

Re: [HELP] ImagePoints

This is usually achieved using translation matrices. There's a bit of work to do to implement it on your own, but it's a basic requisite for 2d video games so there are quite a few tutorials out there explaining how to achieve it. https://en.wikipedia.org/wiki/Translation_%28geometry%29 As far as I ...
by nfey
Thu Jan 22, 2015 10:23 am
Forum: Support and Development
Topic: Camera follow for character, HELP!
Replies: 4
Views: 1840

Re: Camera follow for character, HELP!

What did you try to do and what problems did you run into when doing it?
It's easy in principle, just change the camera's position to the player's position in each love.update() call.
by nfey
Mon Jan 19, 2015 9:19 am
Forum: Support and Development
Topic: Love for Business Applications
Replies: 4
Views: 3680

Re: Love for Business Applications

When I'm trying to decide on using a library for an application, I usually ask myself these questions: - what do I need my application to do - what does the library provide - how big is the overlap between the two And then there's some other stuff you need to take into account, like compatibility wi...
by nfey
Mon Jan 19, 2015 9:03 am
Forum: General
Topic: New subforum for libraries?
Replies: 21
Views: 11861

Re: New subforum for libraries?

A separate forum for tools and libraries would be great, as it's currently a bit time consuming to sort through everything trying to find a library. It would also be useful to have a centralized list of the most useful user-written tools - either a wiki page or stickied topic (with no useless blabbe...