PHP Classes

PHP Tiled to CraftyJS: Convert game level tiled maps CraftyJS components

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 30 All time: 11,160 This week: 89Up
Version License PHP version Categories
tiled2crafty 1.0BSD License5PHP 5, Games
Description 

Author

This class can convert game-level tiled maps CraftyJS components.

It can take a file in the TMX format with game level definitions and generate JavaScript components to use with CraftyJS JavaScript framework to implement games.

Innovation Award
PHP Programming Innovation award nominee
December 2021
Number 7
CraftyJS is a JavaScript framework that you can use to develop games.

This package can convert game-level definitions defined in the TMX format into JavaScript components that you can use to implement those games in JavaScript.

You can generate game-level maps in the TMX format using applications like MapEditor.

Manuel Lemos
Picture of Vitalij Mik
  Performance   Level  
Innovation award
Innovation award
Nominee: 5x

Example

<?php
include 'map.php';

$converter = new TileMapConverter();
$converter->convert('src/frontier_outpost.tmx');
$converter->save('src/frontier_outpost.js');


  Files folder image Files (67)  
File Role Description
Files folder imagekinetic (1 file, 2 directories)
Files folder imageresult (1 file)
Files folder imagesrc (6 files)
Files folder imagetests (1 file, 2 directories)
Plain text file assets.php Class Class source
Accessible without login Plain text file convert.php Example Example script
Plain text file map.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:30
This week:0
All time:11,160
This week:89Up