Search found 243 matches
- Thu Dec 26, 2013 10:49 pm
- Forum: Support and Development
- Topic: Ideas for "new" physics?
- Replies: 6
- Views: 2472
Ideas for "new" physics?
Physics are amazing, everyone would agree with that statement. However, for some time now I have this idea for a game where you basically kill enemies but with something very crucial changed. physics. Right now, if you're not using the physics API the way you would do gravity is take the total mass ...
- Thu Dec 26, 2013 12:32 pm
- Forum: Support and Development
- Topic: "Seeing" a player
- Replies: 3
- Views: 1435
Re: "Seeing" a player
If you're going only for straight lines it would be easy. First, you need to see if the x position OR the y position of both the player and the entity are the same. Lets say that that the x position is the same. Take the length of the map - the x coordinate where the entity is staying. Then use a fo...
- Thu Dec 26, 2013 12:22 pm
- Forum: Support and Development
- Topic: Implementing basic "friction"?
- Replies: 2
- Views: 1898
Implementing basic "friction"?
Hello everyone. I have some really simple code that I am currently working on, just to make a basic game. [spoiler] local player = { xPos = 0, yPos = 0, xVel = 0, yVel = 0, cxPos = 0, cyPos = 0, speed = 0.2, maxSpeed = 2, maxNegSpeed = -2, img = love.graphics.newImage("player.png"), } func...