Questions tagged [jstilemap]

47 questions
8
votes
2 answers

JSTilemap - Loading only visible tiles

Has anyone been successful in loading only the visible tiles using JSTilemap? The reason I ask is because my map size is much too large to load at once and I would either like to load segments individually or only dynamically load those tiles…
Calm Turtle
  • 292
  • 3
  • 18
6
votes
1 answer

How to use JSTileMap in swift

Can you use JSTileMap in swift, and if so, how do you use it. If I can't use it in swift, or if it is too buggy, then is there anything else I can use for .tmx maps. note, i am using sprite kit
Mark Calhoun
  • 545
  • 1
  • 5
  • 10
5
votes
1 answer

SpriteKit using 95-100% CPU when running game with large tilemap (JSTileMap)

My project runs at 55-60FPS on an iPhone 6 but anything older is completely unplayable because something is eating CPU. I think the issue is related to the number of tiles and layers on my map (64x256 with 4 layers) and Instruments shows…
Norm
  • 53
  • 4
4
votes
1 answer

Render custom tiles in R leaflet from local directory (i.e. not from a git repository)

I have created some tiles out of a very large raster using the Qtiles plugin in Qgis. I have saved them to a local directory on my computer, and now want to render them in a leaflet map using R. The addTiles function passes a URL, but doesn't seem…
gvan
  • 473
  • 4
  • 15
4
votes
1 answer

How to create a html table element tilemap from an array in javascript?

how do I create a html table tilemap from an array? For example when I want the "0"s to be a "td" with a green background and 20px width and height and the "1"s to be a "td" with a brown background with the same size? Could anyone give an example…
bady
  • 99
  • 8
4
votes
1 answer

Fail to see a TMX Map using SpriteKit and JSTileMap

I am trying to visualize a large map using SpriteKit and JSTileMap. The size of the map is 3398 x 4842. I have defined a TMX map by using 4 tiles of size 1699 x 2421 in one layer, with each tile matching a tileset. Here is the tmx:
tiguero
  • 11,477
  • 5
  • 43
  • 61
3
votes
1 answer

JSTileMap usage in swift

I am trying to add my saved tilemap to my swift project but unfortunately it doesn't work out for me. I have done these things so far: 1. I have imported libz.dylib framework 2. I have a bridging-header file with these two imports: #import…
toom4ny
  • 63
  • 5
2
votes
0 answers

Find the intersection point between a line and a generated canvas square

I have a program that draws a tilemap, and there is a player that can move around and collide with the tiles, my end goal is to make a raycaster, which will make a pseudo-3d rendering of a 2d tilemap, in order to do this, I will need to cast a ray…
Ryan Grube
  • 185
  • 1
  • 11
2
votes
2 answers

Scrolling a Tilemap in Sprite-Kit (JSTileMap glitch)

Since JSTileMap extends SKNode, you can use the API to move and animate your tilemap like any other node. However, I keep getting this weird effect/glitch... Code: _tiledMap = [JSTileMap mapNamed:@"Cloud.tmx"]; if (_tiledMap) { [self…
JRam13
  • 1,132
  • 1
  • 15
  • 25
2
votes
2 answers

Tilemap not Scrolling in spritekit

Im working on a little game in IOS which involves a scrolling tilemap. I have gotten my background picture to scroll like so - (void)moveBg { [self enumerateChildNodesWithName:@"scroll" usingBlock: ^(SKNode *node, BOOL *stop) { …
Jennifer
  • 89
  • 7
2
votes
1 answer

Create Race Track in Sprite Kit

I have been learning and creating using Sprite Kits 2D games since its release with ios7. I now have an idea of creating a fully loaded top down racing game but I am stuck on the single question as to what is the best approach to creating the…
Mike Simz
  • 3,976
  • 4
  • 26
  • 43
1
vote
0 answers

Understanding Tile Based Colisions in Javascript for a simple 2d shooter

I having many troubles on this Javascript 2d shooter for a college project. I did already the tile map, the player sprite, bullets mechanics, but now i got to the part of colisions... And i'm not understanding how to start any code for this. I want…
synco
  • 21
  • 2
1
vote
0 answers

How can i fix my Tilemap? Why can,t i get the full map? ONLY JAVASCRIPT

I'm doing a 2d simple shooter platformer, and for that i need a tile map. I'm pretty rusty on javascript, but i'm trying my best to do the game. I have a tile map done already this is the outcome that i want for the first lvl: Tiled image of the…
synco
  • 21
  • 2
1
vote
1 answer

How can I improve the collision detection in this vanilla JS TileMap game?

I am creating a simple JS canvas tile based game, I know it needs refactoring and updating of the syntax which I plan to do when I understand more about what is going on. I have created the tile sizes dynamically which I think is why I am…
1
vote
0 answers

Optimizing 2d tile collision found on Ray Wenderlich (objective-c)

I've been building a platformer game with sprite kit, and I've ran into an issue when attempting to change the size of my player spritenode to better match the art. I am using this algorithm from a Ray Weinderlich tutorial in conjunction with…
nikv
  • 11
  • 3
1
2 3 4