FF like TileBased Engine creation tutorial?

Started by
6 comments, last by evillive2 19 years, 4 months ago
Does anyone know of any good sites that contain and/or are dedicated to tutorials that help new programmers create 2D Tile Based Game Engines similar to those used in the original Final Fantasy and Ultima games? I know that gametutorials.com is coming out with a tutorial on this soon, at least I hope soon, but I am not sure if theirs will be FF/U like or not. Any help appreciated. My Google searches have only turned up links to game creation tools not actual tutorials or FF/U like engines.
Thanks,Tom Sapphttp://www.sappsworld.com
Advertisement
http://pixeltutorial.cjb.net/ <-- That's for the drawing of the tiles.

As for the actual engine, why not try rpg-dev.net? Also there is an article series here called game programming genesis that goes through the creation of a tile engine.

Quote:Original post by Vampyre_Dark
http://pixeltutorial.cjb.net/ <-- That's for the drawing of the tiles.

As for the actual engine, why not try rpg-dev.net? Also there is an article series here called game programming genesis that goes through the creation of a tile engine.

Thanks for the quick reply, I'll check those out! :D
Thanks,Tom Sapphttp://www.sappsworld.com
I wrote a quick program for getting an idea on the screen using SDL. All it really does is generate a random tilemap (only 4 types of tiles :) ) and a sprite who walks (same one from my sig) along the tiles. There is very simple point in rect collision detection with the water tiles so he can't walk on them and screen to world and world to screen conversions to interpret mouse clicks.

I figure I might clean it up at some point and maybe use it to generate an article/tutorial out of. But at this point it generally uses procedural programming and lots of global variables. As a disclaimer, I don't recomend using the code as anything but maybe something to look at and say "oh, thats what that does".

Well, here it is for scrutiny. You can e-mail me with any comments or questions as it isn't commented nearly at all.

Evillive2
You can use SxDL (sourceforge.net/projects/sxdl/) to implement your game.
TileMaps are supported and can be load from free tile editors.
------------------------ - Seby -www.dfhi-bomber.fr.st
Thank you both for your replies.

evillive2, I took a look at your source and that helped quite a bit with my understanding of how the tile based engines work. I think you should make that tutorial because I would like to know why you did things the way you did. Not because I don't understand it but because I am curious! :D

theSeby, thanks for your suggestion and I will check out the source code of SxDL, but I am not looking for a way to create a game. I am looking for a way to learn to create my own tile based engine. That should help though as it seems to have some good code to use for loading the tiles.

Thanks again for everyones help. I'm slowly learning what I need! :D
Thanks,Tom Sapphttp://www.sappsworld.com
http://jnrdev.kbs-design.net
Glad it helped out Raisor. I might clean it up someday if I get around to it. I was just putzing around trying to see how fast I could get something on the screen and what the difference was on my video card between normal SDL and PnP Bios's SDL+OpenGL stuff. Unfortunately I have a really old computer that still has a Voodoo3 PCI card which has sucky/buggy OpenGL drivers so normal 2d SDL is much faster on my computer than using OpenGL which is opposite the newer generation cards. Long live the dinosaurs! Anyway, I have been working on something similar to you for a while now. Starting over every few months because I forgot something important and my design is too flawed to continue or I switch graphics API's like I went from direct draw to SDL or I just think I can do much better if I start fresh with a clear mind. Hope all goes well.
Evillive2

This topic is closed to new replies.

Advertisement