Developing RPG (Tile-based graphics with transparency)

Alan Kay Alan.Kay at squeakland.org
Sat Jul 28 13:30:16 UTC 2001


This sounds as though it can be done in the children's authoring 
environment -- and very quickly. Tell me more....

Cheers,

Alan

------

At 1:35 PM +0200 7/28/01, Frantisek Fuka wrote:
>Hi,
>
>I am new to Squeak and I'd like to create some sort of tile-based 
>graphical RPG (something like Angband or NetHack) in Squeak. I know 
>there's lots of ways to create the graphic output but I'm not sure 
>which is the right one.
>
>First of all, I'll create a file tiles.png in PhotoShop, which will 
>contain the "palette" of all tiles that can appear in the game: 
>Monsters, items, wall, floor section, player etc... Then I'll import 
>this graphics to Squeak
>
>tiles _ Form fromFileNamed: 'tiles.png'
>
>Then, I create SystemWindow (or should I use something different?) 
>in which the main game map will appear. Now, I need the method that 
>will simply put 16x16 area of the tiles form at an arbitrary 
>coordinates into the SystemWindow while taking into account the 
>transparency of original png file so that I can i.e. display the 
>floor section and a chest standing on this section. Which method 
>should I use?
>
>Thanks for any help.
>
>--
>                                          Frantisek Fuka
>(yes, that IS my real name)
>(and it's pronounced "Fran-tjee-shek Foo-kah")
>----------------------------------------------------
>My E-mail:   fuxoft at terminal.cz
>My Homepage: http://www.fuxoft.cz
>My ICQ:      2745855


-- 




More information about the Squeak-dev mailing list