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,124 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  
Name: Vitalij Mik <contact>
Classes: 7 packages by
Country: Germany Germany
Age: 37
All time rank: 3482194 in Germany Germany
Week rank: 216 Up9 in Germany Germany Up
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

  Files folder image Files (67)  /  kinetic  
File Role Description
Files folder imageimg (7 files)
Files folder imagejs (4 directories)
  Accessible without login HTML file index.html Data Auxiliary data

  Files folder image Files (67)  /  kinetic  /  img  
File Role Description
  Accessible without login Image file button.png Icon Icon image
  Accessible without login Image file grassland.png Data Auxiliary data
  Accessible without login Image file grassland_structures.png Data Auxiliary data
  Accessible without login Image file grassland_trees.png Data Auxiliary data
  Accessible without login Image file grassland_water.png Data Auxiliary data
  Accessible without login Image file male_player.png Data Auxiliary data
  Accessible without login Image file tiled_collision.png Data Auxiliary data

  Files folder image Files (67)  /  kinetic  /  js  
File Role Description
Files folder imagegame (5 files)
Files folder imagelibs (7 files)
Files folder imagemaps (4 files)
Files folder image_game (4 files)

  Files folder image Files (67)  /  kinetic  /  js  /  game  
File Role Description
  Accessible without login Plain text file files.js Data Auxiliary data
  Accessible without login Plain text file game.js Data Auxiliary data
  Accessible without login Plain text file index.js Data Auxiliary data
  Accessible without login Plain text file map.js Data Auxiliary data
  Accessible without login Plain text file player.js Data Auxiliary data

  Files folder image Files (67)  /  kinetic  /  js  /  libs  
File Role Description
  Accessible without login Plain text file Isometric.js Data Auxiliary data
  Accessible without login Plain text file jquery-ui.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.min.js Data Auxiliary data
  Accessible without login Plain text file Keyboard.js Data Auxiliary data
  Accessible without login Plain text file kinetic.js Data Auxiliary data
  Accessible without login Plain text file Loader.js Data Auxiliary data
  Accessible without login Plain text file Stats.js Data Auxiliary data

  Files folder image Files (67)  /  kinetic  /  js  /  maps  
File Role Description
  Accessible without login Plain text file frontier_outpost.js Data Auxiliary data
  Accessible without login Plain text file frontier_outpost.json Data Auxiliary data
  Accessible without login Plain text file frontier_plains.js Data Auxiliary data
  Accessible without login Plain text file frontier_plains.json Data Auxiliary data

  Files folder image Files (67)  /  kinetic  /  js  /  _game  
File Role Description
  Accessible without login Plain text file files.js Data Auxiliary data
  Accessible without login Plain text file game.js Data Auxiliary data
  Accessible without login Plain text file game2.js Data Auxiliary data
  Accessible without login Plain text file map.js Data Auxiliary data

  Files folder image Files (67)  /  result  
File Role Description
  Accessible without login Plain text file sprites.js Data Auxiliary data

  Files folder image Files (67)  /  src  
File Role Description
  Accessible without login Plain text file frontier_outpost.js Data Auxiliary data
  Accessible without login Plain text file frontier_outpost.origin.js Data Auxiliary data
  Accessible without login Plain text file frontier_outpost.tmx Data Auxiliary data
  Accessible without login Plain text file house1.tsx Data Auxiliary data
  Accessible without login Plain text file outdoor.tsx Data Auxiliary data
  Accessible without login Plain text file test_map.tmx Data Auxiliary data

  Files folder image Files (67)  /  tests  
File Role Description
Files folder imageimg (16 files)
Files folder imagejs (3 directories)
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files (67)  /  tests  /  img  
File Role Description
  Accessible without login Image file castlefloors.png Icon Icon image
  Accessible without login Image file castlefloors_outside.png Icon Icon image
  Accessible without login Image file castlewalls.png Icon Icon image
  Accessible without login Image file castle_outside.png Icon Icon image
  Accessible without login Image file cement.png Icon Icon image
  Accessible without login Image file cementstair.png Icon Icon image
  Accessible without login Image file chests.png Icon Icon image
  Accessible without login Image file dungeon.png Icon Icon image
  Accessible without login Image file frontier_outpost.png Data Auxiliary data
  Accessible without login Image file grassland.png Data Auxiliary data
  Accessible without login Image file grassland_structures.png Data Auxiliary data
  Accessible without login Image file grassland_trees.png Data Auxiliary data
  Accessible without login Image file grassland_water.png Data Auxiliary data
  Accessible without login Image file inside.png Icon Icon image
  Accessible without login Image file male_player.png Data Auxiliary data
  Accessible without login Image file tiled_collision.png Data Auxiliary data

  Files folder image Files (67)  /  tests  /  js  
File Role Description
Files folder imagegame (4 files)
Files folder imagelibs (5 files)
Files folder imagemaps (3 files)

  Files folder image Files (67)  /  tests  /  js  /  game  
File Role Description
  Accessible without login Plain text file components.js Data Auxiliary data
  Accessible without login Plain text file game.js Data Auxiliary data
  Accessible without login Plain text file scenes.js Data Auxiliary data
  Accessible without login Plain text file sprites.js Data Auxiliary data

  Files folder image Files (67)  /  tests  /  js  /  libs  
File Role Description
  Accessible without login Plain text file crafty.full.js Data Auxiliary data
  Accessible without login Plain text file crafty.js Data Auxiliary data
  Accessible without login Plain text file diamondiso.js Data Auxiliary data
  Accessible without login Plain text file jquery-ui.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.min.js Data Auxiliary data

  Files folder image Files (67)  /  tests  /  js  /  maps  
File Role Description
  Accessible without login Plain text file frontier_outpost.js Data Auxiliary data
  Accessible without login Plain text file frontier_outpost.origin.js Data Auxiliary data
  Accessible without login Plain text file frontier_plains.js Data Auxiliary data

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,124
This week:89Up