Day 6: 2 hours in


Multiple posts on the same day like the first day? I don't see why not!


My function is done and working great! Looook at how it improved my main game code:


And, it's working!

Welp, that was a lot of images, let's talk some more then!
I created some kind of havoc by not taking a decision if I should be only and only refering my sprites and objects in my game world by their center of their topleft corner. Yes, just two lines above, I was happy making a function that would just mean to me that I should only count on topleft corner as offsets. But, that was 2 hours ago, I did a lot actually in that time! And discovered a lot.

You see, in any game engine, and that includes Love2D, there's a way to draw sprites using a origin offset, that same origin will be used when rotating a sprite, and that could also be used to draw sprites by their center offset, just like how bodies in Box2D are refered by. I just ignored that so far and just did my function and went with it, saying to myself that things would be easier. But, I forgot about one thing: my game will have rotation. Ono.

See how the white box and the magnet don't sync up? That's because when I rotate the sprite using the angle of the box representing it in the physical world game, it just rotates from the top left corner. Oh well, quick fix.

Yet, I can't help but feel like I've made my work my difficult by just not choosing, yet again. Well, third time's a charm, right? Hope so! Because so far, my code as become so unreadable that it may be used as an invocation tool for those ancient gods of which we cannot speak.

May be worth it. I mean, it would be world damnation but, she IS cute.

I will totally release my source code in hope that future generations will not make the same mistakes as I did. Oh well!
You may have catched it in my previous GIF but yep, the rope controls are here, and the rope itself actually is working, the very one thing I feared the most from this project. And you know what?

It... Doesn't look like my game will be very fun...
It's my bad tho, I did just jumped on the first idea I had, that meant it could be amazing like it could be, pardon my french, totally merdique. It wasn't really the very first idea I had to be honest, the very first one was a tamagotchi with plant, but since someone already made something like this on the practice jam, I didn't want to do the same thing again, would have been like repeating the same thing. I wish I could find a link to that game, I just catched a glimpse of it on one of the jam's Discord channel a while back. Meanwhile, you can find the practice jam here: https://itch.io/jam/level-up-circle-practice-jam

Anyway, so we got a game which can be... Maybe boring, flawed Game Design. What do? It's "Another Choice" time! May take the good path, may take the wrong path, like I said third's a charm so who knows!

Part of me thinks I should push and new game design ideas will come along the way. I already got something like that on the first 2 days where I thought "that would be funny if the magnet was actually a saucer".

Would have been like FLOCK! but in 2D and from the side with a more physic twist. But I kept going with my crane idea anyway.
Another part of me thinks I should just switch right now before doing any more asset or code.

Will go with the first choice. Even if I do not find any other path, since there's 3 days left, it's best that I at least make something playable and worth of showing than something that's still a prototype, granted, it may be a better prototype than the crane experiment, but it's still way riskier. The keyword here is: you will never know for sure what may happens in those 3 days.

Let's keep going!

Leave a comment

Log in with itch.io to leave a comment.