Search found 650 matches

by airstruck
Sun Apr 02, 2017 2:19 pm
Forum: Games and Creations
Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
Replies: 68
Views: 15158

Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.

I just noticed something else. In construct_level, pairs should be ipairs. Iteration order of pairs is undefined, so it won't necessarily put your blocks in the right order. I don't think it's true. My mistake. If the order of the bricks in current_level_bricks doesn't matter, I suppose pairs is al...
by airstruck
Sat Apr 01, 2017 8:26 pm
Forum: Ports
Topic: LövePotion - LÖVE on 3DS Homebrew
Replies: 46
Views: 87330

Re: LövePotion - LÖVE on 3DS Homebrew

Cool, Thanks, will definitely try this out. No problem, let me know how it goes. Shimming bit.rshift is straightforward, but you might need to compute a lookup table to get reasonable performance out of bit.bor. Might be better to implement bitwise stuff in LovePotion, in C (or compile against 5.2 ...
by airstruck
Sat Apr 01, 2017 8:05 pm
Forum: Games and Creations
Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
Replies: 68
Views: 15158

Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.

I'll update the code to use this method. Thanks. Glad to hear that! This is the kind of thing a lot of Love tutorials miss. Planning data model carefully can go a long way. I just noticed something else. In construct_level, pairs should be ipairs . Iteration order of pairs is undefined, so it won't...
by airstruck
Fri Mar 31, 2017 5:00 pm
Forum: Ports
Topic: LövePotion - LÖVE on 3DS Homebrew
Replies: 46
Views: 87330

Re: LövePotion - LÖVE on 3DS Homebrew

JHB wrote: are there other ways to get a better random functionallity ?
I posted a PRNG here a while back: viewtopic.php?f=5&t=80676

Will need bitwise ops shimmed with arithmetic equivalents if you don't have LuaJIT, not sure what that will do to performance but try it out :)
by airstruck
Thu Mar 30, 2017 8:51 pm
Forum: Games and Creations
Topic: Need Critique on Tutorial Series on Making Arkanoid-type Game.
Replies: 68
Views: 15158

Re: Need Critique on Tutorial Series on Making Arkanoid-type Game.

Looks good! I have one small suggestion. If you store AABBs as a midpoint and a half-width and half-height, some of your code and calculations can be simplified quite a bit. This also means balls being stored as a center point and radius will be more in line with bricks and paddles. For example, the...
by airstruck
Thu Mar 30, 2017 12:57 am
Forum: Support and Development
Topic: [Solved]Weld two circle shapes to one anothers edge with conditions
Replies: 9
Views: 2399

Re: [Solved]Weld two circle shapes to one anothers edge with conditions

The unsatisfied requirement is that the joints are not springy, that is the bodies A and B have no ability to separate with elasticity as if connected by a spring When I mentioned prismatic joints, I was actually thinking of your suggestion about having additional "connector bodies" for anchoring w...
by airstruck
Wed Mar 29, 2017 8:06 pm
Forum: Support and Development
Topic: [Solved]Weld two circle shapes to one anothers edge with conditions
Replies: 9
Views: 2399

Re: Weld two circle shapes to one anothers edge with conditions

Try this thing out, it's good for experimenting with stuff like that.

https://github.com/airstruck/lps

Don't remember the details on prismatic off hand, will have a look when I get a chance.
by airstruck
Wed Mar 29, 2017 3:49 pm
Forum: Libraries and Tools
Topic: [Tool/Example] Write/Read to binary Buffer Demo.
Replies: 6
Views: 2970

Re: [Tool/Example] Write/Read to binary Buffer Demo.

Very nice, will run these when I get a chance. I started refactoring the code a bit, this version is completely untested but feel free to use it for whatever you want. I may work on it some more later, can be improved by using lshift and rshift where available and falling back to the thing it does n...
by airstruck
Wed Mar 29, 2017 3:42 pm
Forum: Support and Development
Topic: [Solved]Weld two circle shapes to one anothers edge with conditions
Replies: 9
Views: 2399

Re: Weld two circle shapes to one anothers edge with conditions

Oh well, so much for that idea.
I do hope to have a demo of what im working on soon.
Nice, I'm interested in seeing how you solved it.