Search found 54 matches

by adge
Wed Feb 10, 2016 10:04 pm
Forum: Support and Development
Topic: Code Review for Level Editor
Replies: 9
Views: 2781

Re: Code Review for Level Editor

I was just wondering. In the GameMaker forums people told me its better to create the art bigger than to scale it by code.
If it doesn't matter than I'm going to do code scaling.
by adge
Wed Feb 10, 2016 11:11 am
Forum: Support and Development
Topic: Code Review for Level Editor
Replies: 9
Views: 2781

Re: Code Review for Level Editor

What about the pixel art scaling thing? I'm using 16x16 sprites/tiles. Should I export them x2 x3 x4... times as big or should I scale them by code or does it even matter? How do you guys handle your screen resolutions? Whats your window.width and height? Is there any approach in designing with love...
by adge
Tue Feb 09, 2016 7:30 pm
Forum: Support and Development
Topic: Code Review for Level Editor
Replies: 9
Views: 2781

Re: Code Review for Level Editor

Thank you for your help guys!

I think every suggestion you give me is better than what I could come up with. Even when its heavily opinion driven.
@pgimeno: However I really like your state approach. Its extremely clear and super easy. I have no problems with more design suggestions.
by adge
Tue Feb 09, 2016 1:38 pm
Forum: Support and Development
Topic: Code Review for Level Editor
Replies: 9
Views: 2781

Re: Code Review for Level Editor

My biggest problem right now is, that I don't know how game code should be structured. I got a simple state system that saves the current state in the variable active. Every state has its own update and draw function and whatever state is active right now gets drawn and updated by love's main update...
by adge
Sun Feb 07, 2016 2:21 pm
Forum: Support and Development
Topic: Code Review for Level Editor
Replies: 9
Views: 2781

Code Review for Level Editor

Hi there! I'm trying to build my own tile based level editor. This is my first "big" project and I'm doing this to learn and improve. However as I continue, my code gets more complex and also messy. I tried to keep it clear however I don't know how certain things are done correctly. Right ...
by adge
Fri Feb 05, 2016 8:20 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411752

Re: "Questions that don't deserve their own thread" thread

Again, thank you! Helped me! I'm trying to create my own editor with only code thats from me. Kinda for learning purposes. I'm wondering if I should draw the tiles and export them as they are, or if I should scale them up, or if I should do all the scaling by code in my editor? I attached my project...
by adge
Fri Feb 05, 2016 9:48 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411752

Re: "Questions that don't deserve their own thread" thread

Ok, thank you, that helped me!

Can you also create variable names randomly or in a logical manner? Like if you have a folder where tiles are stored and you need to load all .png's but there are 30 and you don't want to create Table1-Table30 variables by hand?
by adge
Thu Feb 04, 2016 1:07 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411752

Re: "Questions that don't deserve their own thread" thread

Could you show me an example were a function passed to another function is needed or makes sense?
by adge
Thu Feb 04, 2016 12:48 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411752

Re: "Questions that don't deserve their own thread" thread

I'm just wondering if you could pass a function to a function in lua?
by adge
Wed Feb 03, 2016 8:47 pm
Forum: General
Topic: Would these games be possible with Love?
Replies: 20
Views: 9664

Re: Would these games be possible with Love?

I tried to follow Handmade Hero on youtube, where this quy creates his own engine in C with absolutely no use of libraries. However as I recognized, the hard thing on programming is not to understand the syntax but the huge amount of functions you will have to use. Just creating a single plain windo...