Overhead view type framework?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
ploaded
Prole
Posts: 4
Joined: Mon Dec 14, 2015 7:49 pm

Overhead view type framework?

Post by ploaded »

Hi everyone. I'm new to Love2D, and I figured I'd sign up for the forum and get some help from you nice folks.

I'm currently trying to write a game with a top down perspective while using the orthogonal type map from Tiled. I've gone as far as getting the tiled map loader to work, some movement, and shooting some projectiles around. Of course, I still need to create collisions with walls, projectiles, enemies, and all sorts of other things.

I feel like since this is such a generic type of thing, hopefully someone would know of some base/example code I could borrow from. If not, when I'm done I might just post some myself.

I'm just eager to get started on making my game idea come to life, and I don't want to waste weeks if not months replicating code thousands of people have already done.

Thanks.
ploaded
Prole
Posts: 4
Joined: Mon Dec 14, 2015 7:49 pm

Re: Overhead view type framework?

Post by ploaded »

I see this thread has a few dozen views and no replies, so maybe others are interested in the same thing?

I stumbled upon this github user and it looks like he's written some pretty cool tools (collision detection, visual postprocessing, etc...):
https://github.com/vrld/

and an audio manager:
https://github.com/sonic2kk/SPAM


I checked out the free game resources sticky and saw a lot of tutorials, but not a lot of libraries.
User avatar
Beelz
Party member
Posts: 234
Joined: Thu Sep 24, 2015 1:05 pm
Location: New York, USA
Contact:

Re: Overhead view type framework?

Post by Beelz »

Firstly, hello and welcome! :ultrahappy:

Now for collision detection, I prefer to write and use my own code(learn by doing). However I have used, and I recommend using, libraries... Especially if you are new to Lua and Love. This thread has a link to a GitHub repo that contains some very useful stuff. Take a look at Bump in the physics section, very nice library.

Code: Select all

if self:hasBeer() then self:drink()
else self:getBeer() end
GitHub -- Website
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Overhead view type framework?

Post by s-ol »

ploaded wrote:I see this thread has a few dozen views and no replies, so maybe others are interested in the same thing?

I stumbled upon this github user and it looks like he's written some pretty cool tools (collision detection, visual postprocessing, etc...):
https://github.com/vrld/

and an audio manager:
https://github.com/sonic2kk/SPAM


I checked out the free game resources sticky and saw a lot of tutorials, but not a lot of libraries.
For AABB collision detection and resolution, kikito's bump.lua is the state of the art solution :P
You should check out his github account aswell, he also has a bunch of useful tools.

For the original question; there aren't a lot of LÖVE frameworks around (that I know of?). I think that's mostly because what people like about LÖVE is that it is very minimal so you can do what you like. If you want a rigid framework than you can already use Unity again basically. To kickstart a new project IMO it's best to mix-and-match libraries for everything you need (things like spritesheet animation, collision, sound if a more abstract interface is needed there, map loading if required, gamestates, vector math, tweening) and rolling your own structure.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
ploaded
Prole
Posts: 4
Joined: Mon Dec 14, 2015 7:49 pm

Re: Overhead view type framework?

Post by ploaded »

Awesome, these will come in handy. Thank you.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 2 guests