All Projects → Jerenaux → chunks_tutorial

Jerenaux / chunks_tutorial

Licence: MIT license
Small demo showing how to load and manage tilemap chunks on the fly with Phaser 3

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to chunks tutorial

grid-engine
An exceptional plugin for grid-based features in the Phaser 3 framework.
Stars: ✭ 124 (+202.44%)
Mutual labels:  phaser
php-collections
A collection library for php
Stars: ✭ 34 (-17.07%)
Mutual labels:  map
Teyvat.moe
A flexible, community-driven interactive website for Genshin Impact.
Stars: ✭ 137 (+234.15%)
Mutual labels:  map
squaremap
squaremap is a minimalistic and lightweight world map viewer for Minecraft servers, using the vanilla map rendering style
Stars: ✭ 185 (+351.22%)
Mutual labels:  map
MapCompose
A fast, memory efficient Jetpack Compose library to display tiled maps, with support for markers, paths, and rotation.
Stars: ✭ 82 (+100%)
Mutual labels:  map
gracidea
🌺 A Pokémon 2D live map gathering all regions, including wandering pokémons and characters and animated tiles!
Stars: ✭ 163 (+297.56%)
Mutual labels:  map
vue-map-chart
VueJS map chart component
Stars: ✭ 27 (-34.15%)
Mutual labels:  map
ets2-dashboard-skin
Packaged application in VueJs to run on a Windows computer It allows to deport some information of the video games Eurotruck simulator and Americantruck simulator on another device (via the web browser). And thus have an increased immersion in these games.
Stars: ✭ 37 (-9.76%)
Mutual labels:  map
YuanshenMap
https://gitee.com/blacklotusccw/yuanshenditu 的访问优化版(原版闭源了,本仓库停止更新)
Stars: ✭ 16 (-60.98%)
Mutual labels:  map
laravel-auto-morph-map
THIS PACKAGE HAS BEEN DEPRECATED — Automatically alias and map the polymorphic types of Eloquent models.
Stars: ✭ 55 (+34.15%)
Mutual labels:  map
EVMap
Android app to find electric vehicle charging stations - compatible with community databases such as GoingElectric.de and OpenChargeMap.org.
Stars: ✭ 89 (+117.07%)
Mutual labels:  map
leaflet-layer-tree-plugin
No description or website provided.
Stars: ✭ 31 (-24.39%)
Mutual labels:  map
aeternum-map
https://aeternum-map.gg - Interactive map for New World
Stars: ✭ 72 (+75.61%)
Mutual labels:  map
smsc
Flexible and scalable GSM Short Message Center (SMSC)
Stars: ✭ 23 (-43.9%)
Mutual labels:  map
simple-world-map
A simple SVG world map with ISO 3166-1 annotations
Stars: ✭ 59 (+43.9%)
Mutual labels:  map
vue-static-map
a simple component to generate an static google map
Stars: ✭ 24 (-41.46%)
Mutual labels:  map
xlbaidumap flutter
flutter 集成百度地图
Stars: ✭ 27 (-34.15%)
Mutual labels:  map
freemap-mapnik
Outdoor map mainly for https://www.freemap.sk/
Stars: ✭ 16 (-60.98%)
Mutual labels:  map
array-keyed-map
JS datastructure, like Map, but the keys are arrays
Stars: ✭ 29 (-29.27%)
Mutual labels:  map
phaser multiplayer demo
HTML5 Multiplayer with Phaser and Go
Stars: ✭ 35 (-14.63%)
Mutual labels:  phaser

chunks_tutorial

Small demo showing how to load and manage tilemap chunks on the fly as the player moves, with Phaser 3. You can see it in action in the online demo. Note that the loading of the chunks should be almost invisible, so if the demo works well there won't be that much to see! You can have a look at this gif to see it in action with smaller chunks where the effect becomes visible.

The tutorial corresponding to this demo is available here.

Running the demo

Place all the files on your local web server and navigate to index.html.

You can move around by clicking on the map. The tilemap chunks will be loaded and discarded on the fly so that only the surrounding chunks are displayed at any time.

Splitting a map

The folder splitter contains a script that allows you to split a Tiled map in chunks of arbitrary dimensions. To use it, first install the required dependencies by running npm install or yarn in the root directory. Then run npm start or yarn start. Run it without any arguments to see a message listing the possible (and required) options. The root directory for the script is the assets/map. The script searches for the map JSON file relatively from that directory.

Example of usage: yarn start -i fullmap.json

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].