Search found 40 matches

by qwook
Thu Feb 20, 2014 8:05 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 731881

Re: Simple Tiled Implementation - STI v0.6.14

STI should really be kept simple and adding a lighting feature that a majority of tiled users won't even use is senseless. You can either add lighting by using shaders or drawing transparent black boxes over the tiles. There is no reason to bloat Tiled with something you can do yourself. As well as ...
by qwook
Thu Feb 20, 2014 10:02 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 731881

Re: Simple Tiled Implementation - STI v0.6.14

Haven't tried myself, but it seems with SpriteBatch:setColor you can assign a color to each quad in the batch. First call setColor and after that use "set" on a quad. If I understand the wiki correctly, then this should also change the color. That's the exact thing I posted and Karai answ...
by qwook
Thu Feb 20, 2014 2:47 am
Forum: Libraries and Tools
Topic: Löve Frames - A GUI Library
Replies: 406
Views: 352493

Re: Löve Frames - A GUI Library

I don't think your state handling is quite proper. Each individual component class should not have to include the state checking code in them. The state machine should decide whether or not to render something or give it input. You also shouldn't be handling overflow with stencils, but with scissors...
by qwook
Thu Feb 20, 2014 1:23 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 731881

Re: Simple Tiled Implementation - STI v0.6.14

What about this function?
https://love2d.org/wiki/SpriteBatch:setColor

The lighting thing should really be handled by shaders though.
by qwook
Tue Feb 18, 2014 7:46 am
Forum: Libraries and Tools
Topic: Sunclass - Mixins and Multiple Inheritance
Replies: 2
Views: 1585

Re: Sunclass - Mixins and Multiple Inheritance

"_R" was definitely on purpose and is used for hot-swapping classes, if anyone wants to implement something like that.

"class", however, isn't meant to be global. Good catch
by qwook
Tue Feb 18, 2014 6:22 am
Forum: Libraries and Tools
Topic: Sunclass - Mixins and Multiple Inheritance
Replies: 2
Views: 1585

Sunclass - Mixins and Multiple Inheritance

Sunclass Yet another class library for Lua. It came about when I was writing a hot-swappable LÖVE engine and middleclass just wasn't working for me. I ported the class engine from SunScript over to native Lua. Mixins / Multiple Inheritance Invoking superclass methods Simple, intuitive, easy to use ...
by qwook
Tue Feb 18, 2014 5:51 am
Forum: Support and Development
Topic: OOP help
Replies: 48
Views: 24435

Re: OOP help

Everyone's suggesting you to do OOP in Lua all from scratch, which is not a very easy way to learn it. I really suggest you use some third party library like middleclass. Every person that I show Lua to, I always point to middleclass, and in just about 3 hours they get their first game up and runnin...
by qwook
Tue Feb 18, 2014 3:20 am
Forum: Support and Development
Topic: Box2d - Knowing when the player is grounded.
Replies: 5
Views: 2599

Re: Box2d - Knowing when the player is grounded.

I have been struggling on this for a while and wonder if anyone here has come up with a good way of detecting whether or not the player is grounded (aka not in the air). I got it too almost work using the beginContact and endContact callback. The problem with this method was that it would also thin...
by qwook
Tue Feb 18, 2014 3:12 am
Forum: Libraries and Tools
Topic: Tile grid edge tracing
Replies: 8
Views: 5142

Re: Tile grid edge tracing

Wow, this forum is just full of ... I used it for the static tiles for my maps in these games: http://www.youtube.com/watch?v=AY_7UX85MnI http://www.youtube.com/watch?v=TS2cUu94l3Q It really fixes problems with ghost vertices and optimizes the tiles. I had to modify it slightly for it to handle slop...
by qwook
Mon Feb 17, 2014 5:45 pm
Forum: Support and Development
Topic: Box2d - Knowing when the player is grounded.
Replies: 5
Views: 2599

Re: Box2d - Knowing when the player is grounded.

I keep a list of all contact points and whenever I need to check if the player is on the floor, I go through the list of contact points and see if any of them are below my origin +/- 10 depending on the shape of the player. Though the shape of my player is a square with a half-circle on the bottom, ...