Pytmx anyone?

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

Pytmx anyone?

Postby LecktheTech » Mon Feb 15, 2016 2:47 pm

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.
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby IPv4 » Tue Feb 16, 2016 6:40 am

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
User avatar
IPv4
 
Posts: 270
Joined: Wed Apr 02, 2014 8:48 am
Location: SCHWEDEN

Re: Pytmx anyone?

Postby LecktheTech » Tue Feb 16, 2016 9:15 am

IPv4 wrote:You should check out Erlang, its bug-proof and requires extremely little code.

It looks interesting, but I'm already into python.
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby LecktheTech » Tue Feb 16, 2016 9:17 am

Besides that, a language without classes would be difficult to wrap my mind around. It does look rather easy to pick up.
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby IPv4 » Tue Feb 16, 2016 9:53 am

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
User avatar
IPv4
 
Posts: 270
Joined: Wed Apr 02, 2014 8:48 am
Location: SCHWEDEN

Re: Pytmx anyone?

Postby LecktheTech » Tue Feb 16, 2016 3:59 pm

So how much coding do you do?
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby IPv4 » Wed Feb 17, 2016 11:01 am

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 ...................
User avatar
IPv4
 
Posts: 270
Joined: Wed Apr 02, 2014 8:48 am
Location: SCHWEDEN

Re: Pytmx anyone?

Postby LecktheTech » Thu Feb 18, 2016 2:17 pm

Enjoy dealing with memory leaks. Hehehhehe
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby IPv4 » Fri Feb 19, 2016 11:46 am

if memory is handled correctly it will stop random lag from occuring during animations and performance will increase
User avatar
IPv4
 
Posts: 270
Joined: Wed Apr 02, 2014 8:48 am
Location: SCHWEDEN

Re: Pytmx anyone?

Postby LecktheTech » Fri Feb 19, 2016 2:24 pm

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.
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby IPv4 » Fri Feb 19, 2016 3:06 pm

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.
User avatar
IPv4
 
Posts: 270
Joined: Wed Apr 02, 2014 8:48 am
Location: SCHWEDEN

Re: Pytmx anyone?

Postby LecktheTech » Sat Feb 20, 2016 4:38 pm

With SDL, the "screen" is called a surface. You can write to the surface, change the surface, update, etc
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby IPv4 » Sun Feb 21, 2016 7:30 am

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.
User avatar
IPv4
 
Posts: 270
Joined: Wed Apr 02, 2014 8:48 am
Location: SCHWEDEN

Re: Pytmx anyone?

Postby LecktheTech » Sun Feb 21, 2016 9:22 am

At the same time, it would cause a memory leak, if no precautions are taken.
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby IPv4 » Sun Feb 21, 2016 12:19 pm

it is impossible to do two things at the same time. Code is executed one line at a time.
User avatar
IPv4
 
Posts: 270
Joined: Wed Apr 02, 2014 8:48 am
Location: SCHWEDEN

Re: Pytmx anyone?

Postby LecktheTech » Sun Feb 21, 2016 4:54 pm

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.
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU

Re: Pytmx anyone?

Postby LecktheTech » Sun Feb 21, 2016 4:56 pm

*accidental double post
♪The sword is sharp, the spear is long.

The arrow swift, the gate is strong

The heart is bold, that looks on gold

The dwarves no more shall suffer wrong.♪
User avatar
LecktheTech
 
Posts: 170
Joined: Thu Nov 05, 2015 3:20 pm
Location: ECU


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 92 guests