Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit/AppGameKit Studio Showcase / The Tiled Engine (open Source)

Author
Message
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Feb 2012 15:28
Ok this is the engine as it is. It is the best code I have done since starting agk. The program partions a XML file then returns a vector.

If don't know the use of tiled then I would not use this.
If you want to add to the current class please do so. This program does not look much right know, but it is a very powerful program.

What is this.
Well this is a program that will make it a lot easier for programmer to lay out his/her map with out doing that much programming.

Developer of Space Chips, pianobasic, and zipzapzoom apps.
Veterian for the military.

Attachments

Login to view attachments
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 27th Feb 2012 16:52
Does it support TileSets ? I don't see any operation in your code on the "firstgid" XML attribute ... which is the most important part of a TMX file.
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Feb 2012 17:39
ok this is the updated version. Using agk.

Developer of Space Chips, pianobasic, and zipzapzoom apps.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Feb 2012 17:40
This does not yet support tile sets that is what I am doing next.

Developer of Space Chips, pianobasic, and zipzapzoom apps.
Veterian for the military.
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Feb 2012 20:54 Edited at: 27th Feb 2012 20:56
this portion supports tile set.
this is a fast stamp I did in tiled to test my results.



Developer of Space Chips, pianobasic, and zipzapzoom apps.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Feb 2012 20:59
This portion supports tile set.
this is a fast stamp I did in tiled to test my results.



Developer of Space Chips, pianobasic, and zipzapzoom apps.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Feb 2012 21:00 Edited at: 27th Feb 2012 21:00
results of the test.


Developer of Space Chips, pianobasic, and zipzapzoom apps.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 28th Feb 2012 01:19 Edited at: 28th Feb 2012 01:20
applying a spot light this code will make it look as if you have a light in a certain spot.



Developer of Space Chips, pianobasic, and zipzapzoom apps.
Veterian for the military.

Attachments

Login to view attachments
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 28th Feb 2012 11:25
Nicely done

3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 28th Feb 2012 17:56 Edited at: 28th Feb 2012 17:57
Thanks for commenting on it. I don't think I need to show people how to move the world around, and stupid stuff like that. The code engine is pretty much done. Only thing that I could think of adding is the A path finding algorithm.

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps.
Developed the tiled map engine seen on the showcase.
Veterian for the military.
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 29th Feb 2012 19:07 Edited at: 18th Mar 2012 03:43
isometric maps


Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps.
Developed the tiled map engine seen on the showcase.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 18th Mar 2012 03:32 Edited at: 18th Mar 2012 03:33
my engine in action:

So far I can jump on platforms that move along paths, or have a starlib to move my player. a star can also move enemys, and other algoritms can move the enemy like my backand forth function that makes an enemy move back and forth.


Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps.
Developed the tiled map engine seen on the showcase.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 18th Mar 2012 03:35 Edited at: 18th Mar 2012 17:20
below is a zip file of the tiled game engine in action.

this is the code that handles this engine.

this is a tiled screen shoot shows where I define a path. To make your own level run this program once it will fail the first time,but it will make the folder where the map goes in your agk folder. I will fix this error Soon.

My engine will get that path and in my code I can assign a platform to that path. To change the level all you have to do is change it in tiled. Currently I only support one plateform that can be made, and one path that you can define you self. Also you can change the map in tiled. I getting the engine so that all you have to do is say trap layer, and maybe some extra plateforms and paths you can play with. I will update this so it is like a one level world editor where the user can just simply change the map in tiled and save it.

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps.
Developed the tiled map engine seen on the showcase.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 26th Mar 2012 23:48 Edited at: 27th Mar 2012 03:32
I currently working on this problem with my tiled editor program so it is alot easier to define player movement.

you see I am using tiled also to define my player actions.
I need other ideas of what to put as basic actions a player can preform.
I have it so that it loads into c++ great. Just need other ideas of what the editor should do. Like how many shooting actions should the player preform. This is very complicated process but, once done it will make game making alot easier.

The basic idea behind this is that it will be easy for a programmer to change the players movement on the current row of the current layer.

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps.
Developed the tiled map engine seen on the showcase.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 30th Mar 2012 05:08 Edited at: 30th Mar 2012 05:41
Ok this program lets you change the level within tiled.
Which is better then the last update. You must have two plateforms as well as you can change the media I have attached. The program will make default screen which can be minipulated to make your own game in tiled as long as you have two paths. This update also allows you to change how the player moves as well as jump, and also how the player dies.
Another update I have added also fixes the tmx file so the program works the first time.
The other restriction is that you can only have one level, so far with this update.

Here is some known bugs.

Tiled won't be able to find the tiled pictures when loading tiled I think. So to fix it you have to use the correct folder. What ever error tiled gives you put the images in that folder.

If you have tiled you don't need to put the pictures in the folder that tiled specifies you can create a new tiled document.

Here is the structure of the tiled files. You do not need to do this in tiled if you do this instead and make new tileset.

Layers:

Object Layer 1 //the two paths are defined here.

// tile layers.
wall // the edge walls of the level
End
Start
level // the main level design
traps // the player can die on this
background //background is the forward background
background2 //background2 is the back background

the player movement file.

Layers:

Die
jump
walk

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps.
Developed the tiled map engine seen on the showcase.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 23rd Apr 2012 05:50 Edited at: 23rd Apr 2012 05:53
here is a sprite sheet I have been working on. Some of the pictures I found right here on the forums for free and some I have created myself.


Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps.
Developed the tiled map engine seen on the showcase.
Veterian for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 2nd Jun 2012 18:15
this is the lastest version of tiled map of course I removed alot of stuff in it. If you use this program the commands to make a map are the same.

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps.
Developed the tiled map engine seen on the showcase.
Veterian for the military.

Attachments

Login to view attachments
slewrate
12
Years of Service
User Offline
Joined: 13th Oct 2011
Location: Austin, Texas
Posted: 5th Jun 2012 21:58
Hi, I was trying to run your example but it crashes. I assume I haven't put the files / path correctly.

I have the root folder. Inside that folder I have:
about.txt, map.tmx and the xmlengine.exe along with the media folder which contains:
add, catchter, Texture0, Texture1 and a Corel Auto-Preserve folder.

Do you have any idea what am I missing ? Your about.txt file says:
you have to put the map file in the folder that is designated in user/agk
in copy_final_xmlengine

Could you elaborate ? Thank you.
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 7th Jun 2012 03:34 Edited at: 8th Jun 2012 08:18
this is where the maps go: the tile map might go somewhere else in my example because it is an older example. I don't know how else to help you slow trying here. Slow did you go to boston last year I think I know how you are. If your running my c++ download it is a untested. This is because I cut the game out making it not work but the code has every thing you need to make your own game even if it is a cut version.



Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps. Developed the tiled map engine seen on the showcase. Veteran for the military.

Attachments

Login to view attachments
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 10th Jun 2012 02:31 Edited at: 10th Jun 2012 02:34
here is another level design concept that I made from gimp.

If any one wants to help me with this game they can contact me by email.


Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps. Developed the tiled map engine seen on the showcase. Veteran for the military.

Attachments

Login to view attachments
slewrate
12
Years of Service
User Offline
Joined: 13th Oct 2011
Location: Austin, Texas
Posted: 13th Jun 2012 06:17
@3d point: Thanks for posting your code.
As you might know from my other thread I am still tinkering with my tile map engine...it's not quite there yet but I have ideas to make it work the way it want.
Derekioh
15
Years of Service
User Offline
Joined: 1st Feb 2009
Location:
Posted: 18th Jun 2012 03:53
I dont mean to intrude on this post, but do you know how the tiled maps can be decompressed or read or what ever it is for DarkBasic Pro?

Thanks

3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 21st Jun 2012 07:45 Edited at: 21st Jun 2012 08:45
Well I think that you would have to talk with a agk tier one developer: you can't use rapid xml. Try bakslash he is very good at this l. I think he even got some code. Or if it is not agk then make your own parser for dark basic pro. I think you can use rapid xml for that. Another thing you can try is lib's of the engine in c++. If you read early in the post I made a simple dos program that shows you how to parse xml.

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps. Developed the tiled map engine seen on the showcase. Veteran for the military.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 21st Jun 2012 14:41
[/thunderclap]
Who spoke my name (incorrectly)?

What is the question exactly? Are you after a tier 1 xml parser?

Parsing xml is not much different in AppGameKit to DBPro. I made a parser for my own code I put into an xml format but it's not in a neat format for general use.

Or did I misunderstand the question?


this.mess = abs(sin(times#))

Login to post a reply

Server time is: 2024-03-28 08:45:12
Your offset time is: 2024-03-28 08:45:12