I'm a Brazilian guy which seeks unravel the misteries of writing games. I ask you kindly to forgive my typing and grammar mistakes, as english is not my mother tongue.

Report RSS DevLog2 - Void 1(???)

Posted by on

The light have left me...

Day 2:

Dude?! How hard is this supposed to be? I studied a little bit today, and learned about containers

Oh my f***ing God, they look like the concept of "nodes" in JMonkeyEngine, but, THEY DON'T BEHAVE ANY CLOSE to nodes(Ok, maybe I'm exaggerating). They have a property called "exclusive" which turns it hard asf to use. Why?

Well let's see:

If you set it to true, anything under the initial container can not be repeated inside of the container(which kinda of makes sense) nor on others containers... but did i told you the "thing" that renders the sprite on screen is a container? No? Yeah, because it seems they are. If you set some sprite a child of "X" container, the sprite just goes to the limbo. Why? IFDK.

Well, so it is easy, i should just set that damn property to false and get over it. Except it wont work. Now the whole "node" thing falls apart. Each child of the container do what they want. They now are spoiled childrens(HAHAHAHAHA, sorry), if i ask the container "Oh man, turn 30º in relation to your own center pleaseeeeee", the container itself will gladly answer, but it's childrens, well they will tell me to f*** off.

WHAT DO I DO NOW?


Well i did cheat and wrote a code which do some cartesian soccery and turn the childrens by force.

I TOOK A WHOLE DAY TO FIGURE IT OUT.

Yes i'm dumb

Yes, my IQ is negative.

Yes, i have a negative amount of neurons.


Here's some screenshot

Screenshot from 2019 06 04 2116

Well, with the uses of containers, cartesian magic and some others few tricks, i managed to do the "assembly" thing, and everything that is "yours" now obey the orientation of the middle square.

(Yes, i changed the graphics, now they are all 32x32, and black 'n' white).

Tomorrow i want these square dudes to obey the laws of physic.

May Newton have mercy upon my code

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: