Search found 721 matches

by Plu
Mon Aug 29, 2016 5:36 am
Forum: General
Topic: Ludum Dare 36
Replies: 14
Views: 4885

Re: Ludum Dare 36

That looks pretty funny :D

I had a bit of a setback in that I was sick yesterday, but I'm hoping I can put in enough effort today to still be able to send something in.
by Plu
Sat Aug 27, 2016 7:03 am
Forum: General
Topic: Ludum Dare 36
Replies: 14
Views: 4885

Ludum Dare 36

So it´s time for that famous gamejam, the Ludum Dare. This time the theme is "Ancient Technology".

Anyone participating? I'm going to try and do something for the Jam, mostly because of lack of time during the weekend and having monday off anyway.
by Plu
Sat Aug 27, 2016 6:59 am
Forum: General
Topic: Avoiding OOP
Replies: 30
Views: 8187

Re: Avoiding OOP

"Creating the math object inside the Monster" is definitely not clean and tidy. That's coupling the Monster to the math object. Dependency Injection exists to help make sure classes really are reusable. And the "getDinstanceToAnother" is also not a proper method for a Monster cla...
by Plu
Sat Aug 27, 2016 5:50 am
Forum: General
Topic: Avoiding OOP
Replies: 30
Views: 8187

Re: Avoiding OOP

If you keep having to say "you are misrepresenting my position" and also "that's not what I meant", there is chance that instead of "you are all making strawmen arguments" this is a simple case of "I seem to be bad at expressing what I mean". This does, howeve...
by Plu
Fri Aug 26, 2016 9:23 pm
Forum: Libraries and Tools
Topic: Looky - rendering your game.
Replies: 0
Views: 1487

Looky - rendering your game.

I figured it was about time I put a version tag on this and put it out there, especially with Ludum Dare being tomorrow. Looky is designed to help you break your game's views into easily reusable components and to help you to lay them out on the screen. It comes with a set of standard components (te...
by Plu
Fri Aug 26, 2016 7:11 pm
Forum: General
Topic: Avoiding OOP
Replies: 30
Views: 8187

Re: Avoiding OOP

I'm a programmer. I take words like "always" very seriously :)
by Plu
Fri Aug 26, 2016 6:59 pm
Forum: General
Topic: Avoiding OOP
Replies: 30
Views: 8187

Re: Avoiding OOP

Premature optimizing also refers to the act of sacrificing legibility and maintainability to improve the performance of code that has not yet been shown to have unacceptable performance. It's one thing if you can write code that is clean and also fast to start with, but you literally said that "...
by Plu
Fri Aug 26, 2016 6:04 pm
Forum: General
Topic: Avoiding OOP
Replies: 30
Views: 8187

Re: Avoiding OOP

And as with any garbage collected language, using pools is always preferable to creating new objects and then discarding them, even if it isn't nearly as clean and straightforward. Etc etc etc. Sounds a lot like premature optimization to me. Unless you're going to be using and reusing a huge number...
by Plu
Fri Aug 26, 2016 2:54 pm
Forum: General
Topic: Avoiding OOP
Replies: 30
Views: 8187

Re: Avoiding OOP

When I code, I just concentrate on getting it to work properly, and then on getting it to work faster. That's all the end user would care for, and so it's all what I care for. I'm guessing you don't have any colleagues? Because they would probably care about you writing stuff they can read and unde...
by Plu
Tue Aug 23, 2016 9:50 pm
Forum: Support and Development
Topic: How to Solve Mouse Clicks on Multiple Layers?
Replies: 4
Views: 1540

Re: How to Solve Mouse Clicks on Multiple Layers?

You could give each view a z-index, and hit them in order of z-index with an option on the event to stop propagation. That's basically how HTML/Javascript does it.