filoromz / roloex

A random project -- RPG game :)
4 stars 0 forks source link

Replace the map from text-based into sprite/images #8

Closed filoromz closed 12 years ago

filoromz commented 12 years ago

This is probably WAYYYY down the track but at the moment the map is expressed using String and each Terrain object is displayed depending on their mapSymbol which is a single capital letter (eg. VillageTerrain is represented as "V" on the map).

What would be cool is if we can replace this text-based creation of the map into using sprite or images instead. A good set of sprites we could probably steal and grab from is from pokemon ;D

http://www.freewebs.com/pokemontopazproject/pokemon%20sprites%201111112222233333444445555566666677777888889999900000.bmp

~kudos to @Evilfury for showing this link :)

filoromz commented 12 years ago

Wow.. well I got bored tonight and decided to implement this! Ended up being relatively straightforward ;D Main thing I had to use was a GridLayout object in the java.awt library which is basically a NxN grid, perfect to representing a 2D map :) Also got the sprites off the website mentioned above and also from googling "sprite sheets" for the character images!