Page 1 of 1

Pytmx anyone?

PostPosted: Mon Feb 15, 2016 2:47 pm
by LecktheTech
Has anyone here used Pytmx? I'm currently reading through the code, and am planning to use it in a programming project.
(I'm having a bit of a hard time figuring what the basic list of functions is.

Re: Pytmx anyone?

PostPosted: Tue Feb 16, 2016 6:40 am
by IPv4
never used python. You should check out Erlang, its bug-proof and requires extremely little code. WhatsApp uses Erlang. You can modify code during RUNTIME with erlang. But if you alredy started using Pytmx go with that lol xD

Re: Pytmx anyone?

PostPosted: Tue Feb 16, 2016 9:15 am
by LecktheTech
IPv4 wrote:You should check out Erlang, its bug-proof and requires extremely little code.

It looks interesting, but I'm already into python.

Re: Pytmx anyone?

PostPosted: Tue Feb 16, 2016 9:17 am
by LecktheTech
Besides that, a language without classes would be difficult to wrap my mind around. It does look rather easy to pick up.

Re: Pytmx anyone?

PostPosted: Tue Feb 16, 2016 9:53 am
by IPv4
when I say bug-proof you should take it with a bit of salt, if you use erlang, or any language in general you should be carefull when using floats. Since a computer only uses binary when calculating it will not give you exact calculations due to it having to round off the value. One "bug" in erlang is for instance: 0 is not equal to 0.0

Re: Pytmx anyone?

PostPosted: Tue Feb 16, 2016 3:59 pm
by LecktheTech
So how much coding do you do?

Re: Pytmx anyone?

PostPosted: Wed Feb 17, 2016 11:01 am
by IPv4
not as much as I should do. Im planning to learn C++ combined with OpenGL on my own.

.......

and you can mix any language with Erlang processes if you want :P ...................

Re: Pytmx anyone?

PostPosted: Thu Feb 18, 2016 2:17 pm
by LecktheTech
Enjoy dealing with memory leaks. Hehehhehe

Re: Pytmx anyone?

PostPosted: Fri Feb 19, 2016 11:46 am
by IPv4
if memory is handled correctly it will stop random lag from occuring during animations and performance will increase

Re: Pytmx anyone?

PostPosted: Fri Feb 19, 2016 2:24 pm
by LecktheTech
I'm referring to when you have two of the same instance, like for example, having two hardware surfaces, and having no way to distinguish the two.

Re: Pytmx anyone?

PostPosted: Fri Feb 19, 2016 3:06 pm
by IPv4
Not sure what you mean by two hardware surfaces. As long as you dont borrow functions or code there shouldnt be an unmanagable issue to keep track of pointers.

Re: Pytmx anyone?

PostPosted: Sat Feb 20, 2016 4:38 pm
by LecktheTech
With SDL, the "screen" is called a surface. You can write to the surface, change the surface, update, etc

Re: Pytmx anyone?

PostPosted: Sun Feb 21, 2016 7:30 am
by IPv4
not sure why it has to result in a memory leak. you could shut down a surface before starting a new one. Alternatively, control what is shown on one single screen with the help of threads and mutexes.

Re: Pytmx anyone?

PostPosted: Sun Feb 21, 2016 9:22 am
by LecktheTech
At the same time, it would cause a memory leak, if no precautions are taken.

Re: Pytmx anyone?

PostPosted: Sun Feb 21, 2016 12:19 pm
by IPv4
it is impossible to do two things at the same time. Code is executed one line at a time.

Re: Pytmx anyone?

PostPosted: Sun Feb 21, 2016 4:54 pm
by LecktheTech
If you creat one surface, and then create another with no way to distinguish them, there will be a memory leak.
Lets just drop this thread, shall we? It's rather repetitive.

Re: Pytmx anyone?

PostPosted: Sun Feb 21, 2016 4:56 pm
by LecktheTech
*accidental double post