Questions tagged [tile-engine]
17 questions
16
votes
9 answers
2d Platformer physics
It was a long holiday weekend, so I got the coding bug again and started playing around:
Mario http://gfilter.net/junk/tileengine.jpg
I wrote a basic tile engine, but having never attempted this before, I am really struggling with handling sprite…

FlySwat
- 172,459
- 74
- 246
- 311
14
votes
3 answers
7
votes
2 answers
How can I find all rectangles that bound regions in a bitmap?
I have a problem: I need an algorithm for my tile engine.
I have an 2d-array which stores my un-walkable tiles.
Now I want to implement a light engine, but this engine need shadow-hulls.
So I need an algorithm which will create these shadow-hulls.…

EnemyArea
- 168
- 7
7
votes
1 answer
Can I create a tile engine in a pixel shader?
I am attempting to create a tile engine using a pixel shader and two textures. One texture will hold the tileset and one the map.
Is it possible to read the texture data as actual (unsampled) data so I can pull indexes from the map?
What is the…

Jason
- 193
- 7
2
votes
2 answers
Mapping a branching tile path
I'm working on a game (and have asked a couple questions on it already), and now I have another question to ask of you guys.
The level format in this game is set up as a tilemap of Uint16's (I'm using SDL) which are indices into an array of…

Sukasa
- 1,700
- 4
- 22
- 40
1
vote
1 answer
Making Javascript TileEngine Scrollable in Canvas
The basis for the code is from John E. Graham's blog http://johnegraham2.com/blog/2010/09/25/project-javascript-2d-tile-engine-with-html5-canvas-part-4-using-zones-for-further-optimization/
It works perfectly for drawing a screen's worth of tiles,…

user1108224
- 159
- 1
- 15
1
vote
0 answers
C# XNA Tile engine drawing wrong tiles
I'm building a tile engine for my first game ever and i've been following a guide step by step (can't link it because i'm limited to 2). I have however, made a few modifications to the tilemap so that i can continue with my project.
And while…

Simon Surename
- 23
- 1
- 1
- 5
1
vote
3 answers
Why my tiles became small?
I'm currently doing a game that I will present for my software engineering subject in school. To be truth, I am not experienced in C# that's why I'm following this TileEngine tutorial. But when I'm in the part of adding the tiles to the game, my…

user3022332
- 11
- 1
1
vote
7 answers
Planning a 2D tile engine - Performance concerns
As the title says, I'm fleshing out a design for a 2D platformer engine. It's still in the design stage, but I'm worried that I'll be running into issues with the renderer, and I want to avoid them if they will be a concern.
I'm using SDL for my…

Sukasa
- 1,700
- 4
- 22
- 40
1
vote
1 answer
Platformer tile engine--advice on what to do with long tiles
I'm looking for advice more than direct help.
I am working on an 8 bit platformer game in XNA. I've probably sunk 160 hours into it already, and I'm starting to get into issues with the engine I have. It is basically an adapted/modified version of…

montag
- 243
- 1
- 3
- 14
0
votes
1 answer
C# XNA Random tile engine
public void Draw(SpriteBatch theSpriteBatch)
{
Random rand = new Random();
for(int y = 0; y < map.GetLength(0); y++) {
for(int x = 0; x < map.GetLength(1); x++) {
…

Corey
- 73
- 4
- 13
0
votes
1 answer
Why is my drawChar function's drawImage not showing?
First things first, I am trying my hand at a very simple tile map engine for 2d games using HTML5 canvas and Javascript and everything seems to be working okay except that my second drawChar function's drawImage() isn't showing on the canvas. I know…

ZeroCode
- 39
- 6
0
votes
1 answer
Eppleton tileengine missing libraries. net.java.canvas.GraphicsContext
Im trying to run Eppletons JavaFX tileengine but there is a library missing i can't find.
net.java.html.canvas.GraphicsContext
Web --> http://jayskills.com/blog/2013/01/09/writing-a-tile-engine-in-javafx/
Link to his GIT Repo -->…

Daniel R.
- 507
- 2
- 7
- 21
0
votes
1 answer
Objects depth sorting in isometric game
I have isometric tile game engine (diamond map style) and I need to sort objects what I draw. My objects are 1x1, 2x1, 4x2. How can I do it based on this code?
for (int osaY = 0; osaY < mapSize; osaY++)
{
for (int osaX = 0; osaX…

Earlgray
- 647
- 1
- 8
- 31
0
votes
2 answers
Optimizing a simple 2D Tile engine (+potential bugfix)
Preface
Yes, there is plenty to cover here... but I'll do my best to keep this as well-organized, informative and straight-to-the-point as I possibly can!
Using the HGE library in C++, I have created a simple tile engine.
And thus far, I have…

RectangleEquals
- 1,825
- 2
- 25
- 44