Game Physics in Love2D [Book] [V0.2] [WIP]

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Game Physics in Love2D [Book] [V0.2] [WIP]

Post by substitute541 »

Here's what I was doing.

I want to create a small book (booklet?) about making some simple physics stuff so that people don't have to use love.physics in SO simple games. Here's a zip for downloading (they're in PDF format) :

Download New V 0.2

Download Original V0.3
Download Original V0.2
Download Original V0.1.
I was hoping for some people to share their ideas like how to do grid-type collision testing, and some more advanced physics concept in code. If you wanna share some of your ideas, suggestions, (positive) criticism, pigs with spinning hearts, post here!

Also, I'll put your name on the credits.

Current Cover (new V 0.2):
Image

Changelog

Code: Select all

New

V 0.2: Halfway finished with chapter 1
V 0.1: Initial creation

Original
V 0.3 - Extended a section, added section. Also changed cover page. Added "Extras: " sidebar :D
V 0.2 - Added more sections to Chapter 1, also, removed "A word from the author", since it's BORING. Replaced it with "What this book is for".
V.0.1 - ?pancake?
Last edited by substitute541 on Mon Mar 04, 2013 10:02 am, edited 10 times in total.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
scutheotaku
Party member
Posts: 235
Joined: Sat Dec 15, 2012 6:54 am

Re: Basic Game Physics in Love2D [Book] [Not done]

Post by scutheotaku »

I really like this idea, and it seems like you're off to a really good start. I think that this sort of thing is something that the LOVE community really needs. Good luck!
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Basic Game Physics in Love2D [Book] [Not done]

Post by Taehl »

I certainly approve of this. I suck at math, so anything to help me muddle through it would be appreciated. If you want to do a section on how to do tile-based physics, I'd be willing to contribute. I also figured out how to efficiently check line-circle collision, in case you're interested.

What would be immediately helpful to me in my current project is circle-circle collision. Specifically, what to do about their velocities after colliding (ie., they "bounce off" one another, what's the math for that?).

Good luck with the book!
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: Basic Game Physics in Love2D [Book] [V0.2] [Not done]

Post by substitute541 »

Out of boredom, I decided to post this..
Image
Source : http://covers.dummies.com/share.php?id=36606

By the way, this isn't the actual cover of the book.
Last edited by substitute541 on Mon Feb 18, 2013 7:00 am, edited 1 time in total.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
scutheotaku
Party member
Posts: 235
Joined: Sat Dec 15, 2012 6:54 am

Re: Basic Game Physics in Love2D [Book] [V0.2] [Not done]

Post by scutheotaku »

substitute541 wrote:Out of boredom, I decided to add this..
Image
Source : http://covers.dummies.com/share.php?id=36606
haha nice!
jameshclark
Prole
Posts: 1
Joined: Sat Mar 02, 2013 5:03 pm

Re: Basic Game Physics in Love2D [Book] [V0.3] [Not done yet

Post by jameshclark »

Any interest in an alternate cover?

Image
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Basic Game Physics in Love2D [Book] [V0.3] [Not done yet

Post by Nixola »

Image
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
scutheotaku
Party member
Posts: 235
Joined: Sat Dec 15, 2012 6:54 am

Re: Basic Game Physics in Love2D [Book] [V0.3] [Not done yet

Post by scutheotaku »

I just noticed a minor typo at the beginning of page 9 (page 8 not including the cover page): you wrote "You can the components, angle and magnitude to the table as so", but I think perhaps you meant something like "You can add the components, angle and magnitude to the table as so"

EDIT:
Another minor one. On page 10 (page 9 not including the cover page), right after the first code block of the page, "...we want to add it’s coordinates with the velocity vector components" should be "...we want to add its coordinates with the velocity vector components."
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: Basic Game Physics in Love2D [Book] [V0.3] [Not done yet

Post by substitute541 »

I'm rewriting the book to go with the style of another certain programming book (If you're curious, it's an AS3 Programming book called Making Things Move). Also, thanks with the random covers :P.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
kaufmed
Prole
Posts: 1
Joined: Tue Mar 26, 2013 1:13 am

Re: Game Physics in Love2D [Book] [V0.2] [WIP]

Post by kaufmed »

Is the rewrite going to be a complete reworking, or are you going to use some of the stuff that you've already written. I like the approach you are taking. I was going to make a couple of suggestions and mention a couple of mistakes, but I'm not sure they would be moot now.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 93 guests