blogs.love2d.org - The Official LÖVE Blogs!

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by micha »

Santos wrote: I'm probably totally confused, but should't it be...

if math.abs(circleA.x - circleB.x) > circleA.radius + circleB.radius and math.abs(circleA.y - circleB.y) > circleA.radius + circleB.radius then

because the circles could only be colliding if the centers on both axes are in range?
Yes, I agree. The current code from the blog is:

Code: Select all

    if math.abs(circleA.x - circleB.x) > circleA.radius + circleB.radius or
       math.abs(circleA.y - circleB.y) > circleA.radius + circleB.radius then
This is checking if the AABBs of the circles are NOT intersecting. Correct would be with "<" instead of ">" and "and" instead of "or".

Besides that typo, great article, substitute! Can't wait to read more.

One question on the optimization: Did you test, if this AABB-collision-check really improves the performance? Seems surprising to me. After all, squaring numbers is not a difficult mathematical operation.
2vek
Prole
Posts: 1
Joined: Tue Mar 12, 2013 3:30 pm

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by 2vek »

great article!! :awesome:

requests to josefnpat,
* please provide full length rss feeds. It will be easier to follow the blog with google reader.
* syntax highlighting would be nice too.
Awesome work, by the way :)
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by substitute541 »

I got that snippet of code from checking AABBs if the coordinates are in the center of a rectangle. So sorry if I am wrong. But anyways, let me test it.

EDIT: I found that I made 2 embarrassing typos... I should really review my articles before posting it.

EDIT 2: Added .love file, fixed ALL my typos.
Last edited by substitute541 on Wed Mar 13, 2013 12:34 pm, edited 1 time in total.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by josefnpat »

2vek wrote:* please provide full length rss feeds. It will be easier to follow the blog with google reader.
Done. I didn't notice that when I set the feed up! Thanks!
2vek wrote:* syntax highlighting would be nice too.
That was talked about, and when I have some free time, I will implement that!
2vek wrote:Awesome work, by the way :)
Thank you very much!

Hey everyone, lots of room for lots more writers! Don't be shy now!
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by Roland_Yonaba »

Suggestion.
On the top-right of the Löve community front page, it may be good to have a link to the blög.
Attachments
shot.jpg
shot.jpg (8.8 KiB) Viewed 16854 times
User avatar
monsieur_h
Citizen
Posts: 65
Joined: Tue Oct 30, 2012 4:43 pm

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by monsieur_h »

Congratulation to our writers ! Both articles are amazing and very instructive. However, I advice to use more images. This helps comprehension, especially when dealing with 2d math.

The image Santos made in this very topic helped me a lot to understand the article, so I guess it could help any reader too.

Keep going mates! I can't wait to see what's the next article will be about! :awesome:
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by MarekkPie »

monsieur_h wrote:Congratulation to our writers ! Both articles are amazing and very instructive. However, I advice to use more images. This helps comprehension, especially when dealing with 2d math.
If I ever write something that could use some visualization, I'll make some super sweet MSPaint style art for you all.

What are some good topics for the blog? I kind of want to write about classes in Lua, but there are really two ways you can go with this:
  • Essentially rewrite the PiL chapters on object-orientation, which may delve into areas that the beginner Lua audience might get scared away by. Additionally, this is a very large topic, and would probably need to be stretched out over several posts to cover everything pertinent to classes (i.e., inheritance, polymorphism, metamethods, the colon syntactic sugar, privacy, etc.);
  • Just pimp out one of the many great object-orientation libraries for Lua, which doesn't really teach anyone anything specific to LOVE and/or Lua.
User avatar
markgo
Party member
Posts: 189
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by markgo »

There are many things one can talk about. Here are some suggestions (Though a lot of them have been written on other websites):

- Spatial hash/Broad phase detection
- Box/Platformer/Polygon/Tile collision
- Camera/Transforming things
- Managing assets and weak tables
- Networking
- Threading
- Coroutines
- Shaders
- dt and timestepping techniques
- Integrators
- Code organization (e.g Having a state table and each state has state.draw, state.update, etc)
- Vector/Linear Algebra math
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by substitute541 »

I'll go with the dt stuff, as many beginners don't know what that is.

Edit: I made a blog post about that, although it is quite short.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
Santos
Party member
Posts: 384
Joined: Sat Oct 22, 2011 7:37 am

Re: blogs.love2d.org - The Official LÖVE Blogs!

Post by Santos »

Here are some more ideas:
  • - Tutorials where you make some game. I think tutorials like this could be good, because I think it gets people psyched, because they want to make games but they're really not sure how to go about it, and you can kind of take them through the process. I think tutorials like this might good if they were structured in a way which didn't confuse the reader, maybe starting off by defining the rules of the game they're making, how the necessary data is stored, how the logic will work, and then going into the actual code which needs to be written to make it work. Or maybe it could be done completely "naturally", maybe even in a screencast format, going through the real process of how you'd actually go about turning the game which you can see in your imagination into something which you can play, through thinking of different ways to structure things, debugging, etc.

    - LÖVE from/to *insert something else here*. There are other things which are kinda similar-ish to LÖVE that I wouldn't mind exploring, like FlashPunk, NME, SDL, Flixel, Unity, libgdx, etc., but I already have Lua and LÖVE in my head, and I think that maybe it would be a lot quicker and easier for me to learn how something works by seeing how it is similar or different to LÖVE, "so, this engine uses callbacks like LÖVE, except it has this other convention for naming functions, and it can't do these things LÖVE can, but it can do these other things easily, and in this language you use these two other things instead of tables, etc."

    And of course this works the other way too, introducing people to LÖVE in the context of a framework they already understand.

    Or, it could help someone choose which framework/language they'd like to use for whatever they want to do.

    - A look at how LÖVE works internally, an introduction to what powers the modules and a brief overview of how they work, what was chosen to power LÖVE and why, what tradeoffs were consciously made in the development of LÖVE, how the infrastructure LÖVE is built on top of affects its design, maybe even some history about how things have changed and why, etc!

    - How to do things which are found in some games which might not be so obvious, like replays, splitscreen, I saw a blog post on screen shaking recently.

    - Some sort of glossary? I don't really know how this would work, but maybe there are a lot of words and concepts which are used a lot which people who are new might not know? I dunno.

    - Debugging?

    - An overview of the IDEs avaiable for use with LÖVE (ZeroBrane Studio, Decoda, Love Studio) including what features they have and how to use them while making games.

    - An indepth look into love.audio, including distance attenuation model, velocity, etc.

    - love.physics

    - If Maurice Guégan or Kyle Conroy were interested in interviews, maybe that might be interesting? Or the developers! How do they make the magic happen?

    - Videos because everyone loves videos! :ultraglee: Maybe a "HEY! You just downloaded LÖVE! Here are the answers to all of the questions you have on your mind right now!", like a quick-start video introduction.
Post Reply

Who is online

Users browsing this forum: No registered users and 65 guests