Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a map system #2

Closed
stephenap07 opened this issue Jun 17, 2013 · 4 comments
Closed

Create a map system #2

stephenap07 opened this issue Jun 17, 2013 · 4 comments
Assignees

Comments

@stephenap07
Copy link
Collaborator

Create a basic map format to lay down our blocks and other entities.
Using an existing tool or creating a new tool for map editing would be nice instead
of hardcoding.

@ghost ghost assigned 4nickpick Jun 17, 2013
@4nickpick
Copy link
Owner

I found Tiled, a map editor that I really like. There's already a well-received pygame extension pytmx to convert the maps into resources usable by maps. I added the library to the utils module and rewrote test.py to show it off.

http://www.mapeditor.org/ - Tiled Map Editor
https://github.com/bitcraft/PyTMX - Pygame TMX Extension

@4nickpick
Copy link
Owner

Awesome, I merged the pull request. The test runs smoothly.

I was looking for some python/pygame implementations of map editors but
they are all pretty weak. I spent about an hour messing around in Tiled
and like it. It has a lot of cool features that should make map
development easier for us. Tiled generates .tmx files, a special kind
of xml file. There happened to already be a .tmx extension to pygame
called pytmx. I added it to the project and rewrote test.py to draw the
map. The code is in the latest commit.

On 6/16/2013 8:34 PM, stephenap07 wrote:

Create a basic map format to lay down our blocks and other entities.
Using an existing tool or creating a new tool for map editing would be
nice instead
of hardcoding.


Reply to this email directly or view it on GitHub
#2.

@stephenap07
Copy link
Collaborator Author

Sounds great! Sorry to be a little pedantic, but I think that pytmx needs to be put in a separate directory called contrib in the root jax-group-project directory. I didn't test the project yet, but looking good so far.

@4nickpick
Copy link
Owner

Ah, yea. I'll move it over soon. Thanks for the feedback, much appreciated.

After I clean that up I'll spend some time on fleshing out the Level
class a little more. Then I'll set my sights on player movement and
basic collision.

On 6/17/2013 10:39 AM, stephenap07 wrote:

Sounds great! Sorry to be a little pedantic, but I think that pytmx
needs to be put in a separate directory called contrib in the root
jax-group-project directory. I didn't test the project yet, but
looking good so far.


Reply to this email directly or view it on GitHub
#2 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants