Game programming help?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Game programming help?

Post by Eamonn »

Hi. I am going to make a game, as you should be able to tell by the title. Thanks to the people on the forums I have been informed the kind of game I want to make is a tile-based 2D game. I have the story for the game about 80% done(basic story is done), I have my coders all ready, my friends that want to test(not that it's relevant), my music designers and my graphics people all ready to go! All we really need to do is wait for the summer exams to finish, get the coders to finish love2d and get the story done. That's what should happen in an ideal world, but life is what happens when you make plans. I was thinking, how would I get the mechanics of the game setup?? I don't want jumping in the game, and I don't think jumping would suit the camera angle. I thought for a few hours and I thought of a few things I didn't know how to do. Here is a list of what I don't know how to do:

• Camera movement
• Adding maps
• How would it work if we used a map editor like Tiled?
• How to add character animation movement
• Do I have enough math(s) skills to do this?
• Was I stupid for ever wanting to make a game

These might seem VERY stupid, but I am a first time games developer. I am working on a few open source games right now and I will make a thread right after this one asking for help on it because I am running into issues with it. Lets address the issues one by one:



1) Camera movement

Camera movement is something I think I know how to do, but I am really not sure and can't seem to find any help on it online. So, how would I do it? I was thinking maybe just update the X/Y position of the map and objects on it, but how do I detect when the map is at it's end? I will address the issue of maps later on in the thread. So help on this would be appreciated.



2) Adding maps

Ok, this is something that I can't find a solution to. So if I had a map and it was a .png/.jpg/.jpeg, and it was bigger than the screen, would it adjust to the screen size or would it be bigger than the screen and would I use camera movement to move the map?



3) How would it work if we used a map editor like Tiled?

So, if I used a map editor like Tiled, would it add collision, etc for me or would it just make it easier for my graphics people to make the map? Another thing is how would I load it in? If I used Tiled, it saves as a .tmx file, so would I load that in as an image or what?



4) How to add character animation movement

I know how to add movement in an image, but how would I add it so what the character turns to a different position and his legs move, etc?



5) Do I have strong enough Math(s) skills?

This might seem like a strange and pointless question, but I'm only 13 and know basic math. The reason I did the (s) is because where I am we say maths and not math and I didn't want people complaining and saying I had bad grammar. There are things called math.sin() and math.cos() which I don't understand. There are probably others too. If you are from the UK and happen to know the UK curriculum for the Year 9's/Second Year's(maybe on the off-chance you are a teacher) maybe you would have a better idea as to what I would know and don't know. I am very good at maths, as any Maths test I have got I always get 100% and I never study(even though I should, don't lecture me about it). So what exactly would I need to know about math(s), apart from the obvious(basic maths, co-ordinates, algebra, etc)? This might be imposible to answer but give me an idea as to what I would need to know. My maths teacher offered to help me with anything I'd need help with, so that would be good. All I would need would be a rough idea of what I would need to know.



6) Was I stupid for ever wanting to make a game

After thinking about all these things and coming up with at least 5 things I didn't know how to do in game development, was it a stupid idea? Am I stupid for wanting to do it? Am I too young? Maybe it's just me being a teen and stuff(I wont go into detail ;) ), but I think I am just being too hard on myself. I do worry a lot over stupid things like 'what if I had homework and I didn't take note of it?', even though it's never happened and I have never forgotten a homework/gotten a bad report. I think it has something to do with that. Really, what it all boils down to in regards to that is that I need to wise up :P



Any help with these questions would be appreciated! Thanks!
"In those quiet moments, you come into my mind" - Liam Reilly
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: Game programming help?

Post by Larsii30 »

Much text. I got some short answers :

- The Love2D wiki is your best friend, you can find there good tutorials, librarys, the documentation etc. -> use it
https://www.love2d.org/wiki/Main_Page

Question [1] :
http://nova-fusion.com/2011/04/19/camer ... he-basics/

Question [2] & [3]:
Why image files as maps ? I think what you mean is a tile based map:
From the wiki : https://www.love2d.org/wiki/Tutorial:Ti ... _Scrolling
The best tile tutorial I know : https://github.com/kikito/love-tile-tutorial/wiki
If you want to use Tiled as map editor you should look for ATL : http://love2d.org/forums/viewtopic.php?f=5&t=2567

Question [4] :
You have to create some kind of animation. You could start with simple sprite sheets ( google it ) and load them with AnAL ("AnotherAnimationLibrary" ) : http://www.love2d.org/wiki/AnAL
User avatar
Sheepolution
Party member
Posts: 264
Joined: Mon Mar 04, 2013 9:31 am
Location: The Netherlands
Contact:

Re: Game programming help?

Post by Sheepolution »

(6) Was I stupid for ever wanting to make a game
No. But I want to warn you that your expectations will be far from the result. Especially working in a team can be difficult, when 1 person loses faith in the project, the whole team falls.

For everything that you want to know, just ask when you're at that point of development, and need to know about it.
Last edited by Sheepolution on Mon May 20, 2013 10:21 am, edited 1 time in total.
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Game programming help?

Post by Davidobot »

You are not stupid for trying to make a game! I am also 13 and I am making games in Löve2D. As for the Maths side of things, I am also 13 and can make games, you don't need to use a lot of Maths in programming, well as far as I know! :awesome:

EDIT: 250th post! Wööö! I can feel all the lövelyness of this happening!
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: Game programming help?

Post by Eamonn »

Davidobot wrote:You are not stupid for trying to make a game! I am also 13 and I am making games in Löve2D. As for the Maths side of things, I am also 13 and can make games, you don't need to use a lot of Maths in programming, well as far as I know! :awesome:

EDIT: 250th post! Wööö! I can feel all the lövelyness of this happening!
People like us are very hard to come by (at least from where I come from :P ). Good luck with your game making! Seeing other people that are around the same age as me really inspires and encourages me :D
"In those quiet moments, you come into my mind" - Liam Reilly
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: Game programming help?

Post by Eamonn »

Sheepolution wrote:
(6) Was I stupid for ever wanting to make a game
No. But I want to warn you that your expectations will be far from the result. Especially working in a team can be difficult, when 1 person loses faith in the project, the whole team falls.

For everything that you want to know, just ask when you're at that point of development, and need to know about it.
Never does everything in life turn out as expected. That's not always a bad thing though! Maybe the result of the game will be better than what I entended for it to be :D You never know. Thanks for the advice though.
"In those quiet moments, you come into my mind" - Liam Reilly
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: Game programming help?

Post by Eamonn »

Larsii30 wrote:Much text. I got some short answers :

- The Love2D wiki is your best friend, you can find there good tutorials, librarys, the documentation etc. -> use it
https://www.love2d.org/wiki/Main_Page

Question [1] :
http://nova-fusion.com/2011/04/19/camer ... he-basics/

Question [2] & [3]:
Why image files as maps ? I think what you mean is a tile based map:
From the wiki : https://www.love2d.org/wiki/Tutorial:Ti ... _Scrolling
The best tile tutorial I know : https://github.com/kikito/love-tile-tutorial/wiki
If you want to use Tiled as map editor you should look for ATL : http://love2d.org/forums/viewtopic.php?f=5&t=2567

Question [4] :
You have to create some kind of animation. You could start with simple sprite sheets ( google it ) and load them with AnAL ("AnotherAnimationLibrary" ) : http://www.love2d.org/wiki/AnAL
Very, very helpful!

I know about sprite sheets already. I didn't know how I would load them in though.

I thought that you had to use .png's, etc for maps :P Guess I was just being a dummy lol :D

Thanks for telling me about ATL and AnAL. I'll check them out.

I was meaning to check out the camera movement tutorial you sent me(and I will), but it was about 1AM my time and my friend was telling me SoftMunkee Dev had a tutorial on it as well, so I'll check them out. My friend likes written tutorials, so I'll send him the link.

So I'll check out all the links you sent me! Thanks!
"In those quiet moments, you come into my mind" - Liam Reilly
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests