Search found 3084 matches

by kikito
Thu Jan 18, 2018 2:49 pm
Forum: Support and Development
Topic: 30log is not polymorphic?
Replies: 6
Views: 395

Re: 30log is not polymorphic?

I don't know the internals of 30log, but in middleclass you have to pass self to superclass constructors, not the class. I remember giving this a great deal of thought back in the day, and there was no other way. self is indeed "magical" inside constructors. I would be very surprised if 30log worked...
by kikito
Wed Jan 03, 2018 4:04 pm
Forum: Games and Creations
Topic: Conquest of Durgan Kal
Replies: 5
Views: 654

Re: Conquest of Durgan Kal

The worst for now is the UI. It took me a couple tries just to start the game, a while to figure out how to equip weapons. I had been using my fists so when I realized how to equip the vine wip I was already almost dead. The player's slow horizontal movement makes me a bit nervous. Maybe because I r...
by kikito
Tue Jan 02, 2018 2:45 pm
Forum: Libraries and Tools
Topic: [Library] anim8 - An animation library - v2.3.0 released
Replies: 67
Views: 22872

Re: [Library] anim8 - An animation library - v2.3.0 released

You can make animations go faster or slower by altering the dt you pass them: -- if instead of anim:update(dt) you do: anim:update(dt * 2) -- anim will run twice as fast. anim:update(dt * 0.5) -- anim will run twice as slow. So you can store that coefficient in a variable and multiply it on the upda...
by kikito
Tue Jan 02, 2018 2:36 pm
Forum: Libraries and Tools
Topic: [library] inspect.lua - print tables and debug beautifully
Replies: 21
Views: 5869

Re: [library] inspect.lua - print tables and debug beautifully

Hi, inspect already works on metatables. What are you trying to do?
by kikito
Wed Dec 20, 2017 11:06 pm
Forum: General
Topic: Mixins, Composition, and Inheritance Guidelines
Replies: 8
Views: 745

Re: Mixins, Composition, and Inheritance Guidelines

The difference between Entity-Component-System and OOP is the place where it is decided which code is run. In OOP that decision tree starts in the object instance and goes "up" from there: to its class definition first, and from there to superclasses and mixins. It's a tree of decisions which starts...
by kikito
Sun Nov 19, 2017 7:20 pm
Forum: General
Topic: Mixins, Composition, and Inheritance Guidelines
Replies: 8
Views: 745

Re: Mixins, Composition, and Inheritance Guidelines

I'm trying to nail down a concrete guideline for myself (and maybe others) in this post that is easy to follow. Ah, I understand you. I have a name for the feeling. I call it The Struggle . I have this friend. He's younger than me. Designer. We have worked together in some projects. He's a very fin...
by kikito
Wed Sep 20, 2017 8:56 am
Forum: Support and Development
Topic: [HELP] Gamera Won't Center Camera on Player
Replies: 2
Views: 452

Re: [HELP] Gamera Won't Center Camera on Player

Hi there, it is working as expected, and following the player. It is not very noticeable because you have no background at all. It is much easier to see if you add some static background: local draw_f = function (l,t,w,h) hero.sprite:draw(hero.x,hero.y) love.graphics.rectangle('line', 100, 100, 100,...
by kikito
Fri Sep 01, 2017 9:39 am
Forum: Libraries and Tools
Topic: [library] bump.lua v3.1.4 - Collision Detection
Replies: 224
Views: 41649

Re: [library] bump.lua v3.1.4 - Collision Detection

thanks for your help, I appreciate it. You were a bit lucky :D Lots of other things fight for my limited free time, and reviewing other peoples's code takes a lot of it, so I can't do it often. But I know it helps individuals. And those ifs really jumped at me. Just so you know, this technique of "...
by kikito
Fri Sep 01, 2017 12:09 am
Forum: Libraries and Tools
Topic: [library] bump.lua v3.1.4 - Collision Detection
Replies: 224
Views: 41649

Re: [library] bump.lua v3.1.4 - Collision Detection

To solve it I just let the resolveCollision method return the new x and y position and I use them as newx and newy instead of wx, wy. It works but I hate the way it is done... I would love to hear some better ideas from you guys.. Well the only thing I can say is that the code seems a bit "involved...
by kikito
Wed Aug 30, 2017 6:36 pm
Forum: Libraries and Tools
Topic: [library] bump.lua v3.1.4 - Collision Detection
Replies: 224
Views: 41649

Re: [library] bump.lua v3.1.4 - Collision Detection

it seems like "cross" doesn't allow me to teleport using world:update, while setting the filter to any of the others result in the object to teleport where I want it to go That should not happen. world:update doesn't even look at filters . If you can, please provide a .love example showing this beh...