Search found 1154 matches

by davisdude
Sun May 05, 2013 4:33 am
Forum: Support and Development
Topic: Circle-Rectangle Collision Detection
Replies: 6
Views: 7283

Re: Circle-Rectangle Collision Detection

Here is hopefully the final code. One question though: Is it okay if I keep using ipairs for draw and update? It works fine, but I don't know if there is a better way to do it. Thanks in advance! :awesome: main.lua- require "player" require "enemy" require "bullet" func...
by davisdude
Sat May 04, 2013 8:54 pm
Forum: Support and Development
Topic: Circle-Rectangle Collision Detection
Replies: 6
Views: 7283

Re: Circle-Rectangle Collision Detection

First of all I want to thank you all for your help. I will implement Santos' code (or something of the sort) to use. Thanks also to Stampede 247. You both have really helped me quite a bit. While I have you, do you mind me asking if there is a better way to stop drawing/updating the bullet than what...
by davisdude
Sat May 04, 2013 2:24 am
Forum: Support and Development
Topic: Circle-Rectangle Collision Detection
Replies: 6
Views: 7283

Circle-Rectangle Collision Detection

So, let me start out by saying that I already have a code that sort of works... or at least it looks like it... from far away. :P This is the code I have so far (FYI: I have the bullet very slow and large for testing purposes)- bullet.lua: require "enemy" bullet = {} bullet.speed = 500 fun...
by davisdude
Fri May 03, 2013 12:27 am
Forum: Games and Creations
Topic: Slime Ball
Replies: 35
Views: 19847

Re: Slime Ball

For some reason mine doesn't store the high scores... Otherwise a great game!