Computer Science Canada

[FP] Tile Map Creator 2004 from semester 2

Author:  Kingnoz [ Fri Jun 18, 2004 10:37 pm ]
Post subject:  [FP] Tile Map Creator 2004 from semester 2

Tile Map Creator 2004

This is my final project for grade 12 computer science this semester (i am really only grade 11, but i couldn't get enough programming this year Very Happy )

The purpose of the program is to create maps using tiles. Then you can save the map as a datafile, which can be loaded and used for RPGs or whatever suits your fancy.

I included a map i made using the program. Hope you like it Wink

Features
- 384 different tiles
- undo button
- maps with custom sizes from 1x1 to 64x64
- search button to find a certain tile
- saving and opening

For anyone that needs a program to be able to read the .jar files then u can download the Java Runtime Enironment (At least i think it is the right one, if not then oh well, the JSDK will)
[url]https://sdlcweb1c.sun.com/ECom/EComActionServlet/LegalPage:~:com.sun.sunit.sdlc.content.LegalWebPageInfo;jsessionid=sdlcweb1c.sun.com-3f4b%3A40db88bd%3A57d4c3f6457a21d
[/url]

Well enjoy it! Very Happy

Author:  Tony [ Sat Jun 19, 2004 1:52 am ]
Post subject: 

you better compile that... I dont think anyone here uses ready to program and its incompatable with any real java compiler Confused

Author:  Kingnoz [ Sat Jun 19, 2004 1:37 pm ]
Post subject: 

what can i use to compile it?

Author:  Kingnoz [ Sat Jun 19, 2004 2:51 pm ]
Post subject: 

I am a total noob at creating a stand alone for my file so if someone could make it for me or give me a set of instructions that would be great.

pm me

Author:  the_short1 [ Mon Jun 21, 2004 9:51 pm ]
Post subject: 

400 tiles.... holy fricking shit...


yes please make into .exe.... me want to try dis out!!!!



can that datafile be used in other programming languages ? or just that java one ur using?

Author:  omni [ Tue Jun 22, 2004 12:44 pm ]
Post subject: 

well tilemap data can be used with almost any programming language, as long as ur data is portable. Its just that you have to make a program for each of your programming languages to read the data and display it on screen.

22222222222
21111110002
22010101022 ->onto screen

Author:  Kingnoz [ Tue Jun 22, 2004 5:44 pm ]
Post subject: 

yeah the tile maps are compatible with any language that can read datafiles...you will notice i put a "-1" to show a new row was started...I actually did start a tile-map rpg that my friends and we are gonna work on this summer and it is in Turing so there should be no problem loading the maps...one point of interest though is that the tiles are PNGs, so if you want to use Turing then you need to convert them all to bitmaps or kindly ask me and i can send you mine Very Happy

Author:  Kingnoz [ Tue Jun 22, 2004 5:47 pm ]
Post subject: 

For anyone interested...here is code to load maps in Turing and it works for any size. Enjoy Smile

code:

procedure setNewMapVariables
    open : input, map + ".txt", get
    assert input > 0
    mapRows := 1
    mapColumns := 0
    if input <= 0 then
        locate (1, 1)
        put "Map could not be loaded!"
    end if

    loop
        get : input, skip
        exit when eof (input)
        get : input, datafileTile
        if datafileTile = "-1" then
            mapRows += 1
            mapColumns := 0
        else
            mapColumns += 1
            tilePics (mapRows, mapColumns) := Pic.FileNew ("T" + datafileTile + ".bmp")
            tileStorage (mapRows, mapColumns) := datafileTile
        end if
    end loop
end setNewMapVariables

Author:  the_short1 [ Tue Jun 22, 2004 6:26 pm ]
Post subject: 

just to inform u all..


www.irfanview.com



irfanview is 100% free...
and it can do batch conversions from any to any filetype!

<< save u ppl time converting all those .png files to .bmp!

Author:  Kingnoz [ Tue Jun 22, 2004 6:36 pm ]
Post subject: 

thanks for the link man.

I only wish i had this sooner lol...i spent 2 hours converting all the pictures into .png's at school...longest time of my life.

Author:  Kingnoz [ Tue Jun 22, 2004 9:40 pm ]
Post subject: 

Ok the file is now updated and ready to download for anybody who wants it. It is an executable .jar file. Thanks to rizzix who supplied me with help on getting it started. So just click the download link and u have yourself a tile map creator.

Author:  Kingnoz [ Wed Jun 23, 2004 12:08 pm ]
Post subject: 

Has anyone actually tried this (only downloaded two times? ouch)...i was hoping i could get some feed back and i wanted to know if the .jar file actually worked.

Author:  the_short1 [ Wed Jun 23, 2004 12:23 pm ]
Post subject: 

well... a jar file can be only used either online in IE..... or if u have a java plugin for FIREFOX.. << want one plugin BAD.f.

or if u download the 60MB java runtime from sun.com <<except if u dont have a crapload of HD space u cant really have it installed...

me with my tiny 2gig hd Sad


give it some time... pl will downlod it...

Author:  Catalyst [ Thu Jun 24, 2004 3:24 pm ]
Post subject: 

i liked it Very Happy
but...

it would be alot better if u could place the tiles with the mouse

Author:  Paul [ Thu Jun 24, 2004 4:35 pm ]
Post subject: 

hm.. jar files are like exe files right? they run for me, because I have jre, or is it jdk?...

Author:  Kingnoz [ Thu Jun 24, 2004 6:15 pm ]
Post subject: 

they should run if u have the jdk installed or some other program/plug in that will recognize the .jar format.

by the way, what do you think of it?

Author:  Paul [ Thu Jun 24, 2004 6:42 pm ]
Post subject: 

looks great, pretty professional, and like he said, it would be better if you could place tiles by mouse, but I think its great (since I still haven't learned how to use mouse in java), good job.

Author:  Kingnoz [ Thu Jun 24, 2004 9:01 pm ]
Post subject: 

thanks for the feedback...about the whole mouse thing, its on my to do list for expanding on it, however; with short amount of time at school i didn't get around to it...and if anyone is interested, i am expanding some things like more tile sets and get the mouse thing soon.


Come on guys i need some more votes...

Author:  Kingnoz [ Sun Jun 27, 2004 9:21 pm ]
Post subject: 

will i win this contest...i have all good opinions about my program Laughing (even though there is only two)

Author:  Leftover [ Mon Jan 17, 2005 11:59 am ]
Post subject: 

Is it just me, or is there no download link? I could definatly put this to use (need like 700 tiles)

Author:  Leftover [ Mon Jan 17, 2005 10:35 pm ]
Post subject: 

Nm, I got it, but it's kinda useless as 64 being that max, and I need alot bigger.

Author:  Martin [ Mon Jan 17, 2005 11:00 pm ]
Post subject: 

I've gotta get jdk installed first. Damn you ubuntu!

I looked through the tiles though, and everything looks pretty nice. I'm holding out my vote until I can get it to run (my fault, not yours).

Author:  Leftover [ Sat Jan 22, 2005 9:47 pm ]
Post subject: 

It looks good and all, but the size limitation sucks. Hikaru79 posted one made in Turing that supports many more lines, but you have to code it in. I guess there's advantages / disadvantages of both.

Author:  nate [ Sat Jan 22, 2005 10:40 pm ]
Post subject: 

wow, thats a huge project, can i just ask how many hours you spent making it??

Author:  Hikaru79 [ Sat Jan 22, 2005 10:50 pm ]
Post subject: 

nate wrote:
wow, thats a huge project, can i just ask how many hours you spent making it??


I can speak for G here, since I helped test/use it. He spent a large part of the year on it, since he wanted to use it to save time making his actual RPG. In total, he claims 90 hours.

Author:  zylum [ Mon Jan 24, 2005 9:52 pm ]
Post subject: 

martin wrote:
I've gotta get jdk installed first. Damn you ubuntu!

I looked through the tiles though, and everything looks pretty nice. I'm holding out my vote until I can get it to run (my fault, not yours).


i dont think he needs your vote, this is from last summer Confused

Author:  Martin [ Tue Jan 25, 2005 10:22 pm ]
Post subject: 

Pff...


: