Search found 10 matches

by lilfinn
Wed Dec 03, 2014 7:08 am
Forum: Support and Development
Topic: Minimax Algorithm Tic-Tac-Toe
Replies: 1
Views: 1903

Minimax Algorithm Tic-Tac-Toe

I'm trying to figure out how to create an unbeatable tic-tac-toe opponent with the minmax algorithm. Im having trouble deciding how to save the placements of the player and ai so that i can check win states and create the minmax trees, which leads to my next problem. How to do a minmax tree. I would...
by lilfinn
Sun Nov 16, 2014 7:39 am
Forum: Support and Development
Topic: Weird Question
Replies: 3
Views: 3524

Weird Question

I have a bit of code that check if the players and enemies are colliding, if they are it subtracts the player attack from the enemy health and the enemy attack from the player health. It does this ones every 20 ticks. if i make both the player and enemy attack the same and make their health the same...
by lilfinn
Sat Jun 28, 2014 5:43 am
Forum: Support and Development
Topic: Fixing Collision
Replies: 6
Views: 4733

Re: Fixing Collision

I can't thank you enough. You helped make it work and explained it to a point that I understand what you are doing. Thanks you again so much.

Blake
by lilfinn
Sun Jun 22, 2014 7:49 pm
Forum: Support and Development
Topic: Fixing Collision
Replies: 6
Views: 4733

Fixing Collision

Im working on a little concept here and wanted to get the collision working. I feel like I have hacked and slashed my way through to get a very rudimentary collision system working and I was wondering if anyone can provide some guidance on how to improve it. Or if its just completely awful, maybe pr...
by lilfinn
Fri May 02, 2014 4:07 am
Forum: Support and Development
Topic: Rotating around an object [Solved]
Replies: 4
Views: 3725

Re: Rotating around an object

Thank you very much, after you explained the offset it made perfect sense.
Thank you again
by lilfinn
Thu May 01, 2014 10:06 pm
Forum: Support and Development
Topic: Rotating around an object [Solved]
Replies: 4
Views: 3725

Re: Rotating around an object

thanks for the quick reply.The object is an image and i tried using the ox and oy parameters but all that does is offset the origin, the arrow still just rotates around itself instead of the around the circle. any idea on how i can achieve what im looking for?
by lilfinn
Thu May 01, 2014 9:50 pm
Forum: Support and Development
Topic: Rotating around an object [Solved]
Replies: 4
Views: 3725

Rotating around an object [Solved]

im wondering how to point an arrow toward the mouse by rotating around another object like this:

Image

where the arrow is pointing in the direction of the mouse. Is there a way to change the point an object rotates around?

Thanks in advance
by lilfinn
Wed Dec 04, 2013 11:17 pm
Forum: Support and Development
Topic: Shadow-Casting Help
Replies: 2
Views: 2101

Shadow-Casting Help

I have the shell of a game that i'm ready to take to the next level and start my first "real" game. The last thing I want to implement is dynamic lighting. If you have ever seen terraria, i'm looking for a lighting engine along those lines (I will post an example picture for reference). If...
by lilfinn
Wed Nov 20, 2013 9:32 pm
Forum: Support and Development
Topic: Why is this collision not working?
Replies: 1
Views: 1486

Why is this collision not working?

I'll let the code speak for itself but I can't seem to understand why the player doesn't stop when colliding with the ground?

Thanks in advance!
by lilfinn
Thu Jul 18, 2013 6:09 am
Forum: Support and Development
Topic: Adding weapon types
Replies: 6
Views: 4049

Adding weapon types

Hello, I'm working on a top down shooter to learn more about love and lua. I have the basic game in place with collision, health, ammo, and enemies. I would like to continue upgrading but have run into a few snags. 1) first off I would like to add new weapon types, things such as a "shotgun&quo...