tile-mapper
[1/5] from: antonr::lexicon::net at: 24-Aug-2004 1:37
Boy it's quiet here at the moment.
Only one thing to do - release some code!
This is a rudimentary system for creating tile-based
maps for games or other tesselated pictures.
I plan to use it to spruce up a game I'm making
similar to "Extreme Violence" as seen on the Amiga. :)
view layout [image load-image/update
http://www.lexicon.net/antonr/rebol/doc/tile-mapper-screenshot.png]
do http://www.lexicon.net/antonr/rebol/gfx/tile-mapper/tile-mapper.r
I haven't released any stuff for ages, but
I have definitely been working on things...
Regards,
Anton.
[2/5] from: Izkata:Comcast at: 23-Aug-2004 10:48
> view layout [image load-image/update
> http://www.lexicon.net/antonr/rebol/doc/tile-mapper-screenshot.png]
0.0
> do http://www.lexicon.net/antonr/rebol/gfx/tile-mapper/tile-mapper.r
Erm, after that screenshot, I reeeaaally wanna try this out, but there's an
error when I try that:
>> do http://www.lexicon.net/antonr/rebol/gfx/tile-mapper/tile-mapper.r
connecting to: www.lexicon.net
Script: "Tile Mapper" (23-Aug-2004)
** Access Error: Cannot open
/c/Izkata/rebol/public/www.lexicon.net/anton/rebol/freezer/wake-event-filter
..r
** Near: do path-thru site/freezer/wake-event-filter.r
brush-face: none
[3/5] from: antonr:lexicon at: 24-Aug-2004 2:30
Ah damn! yeah, Gregg already pointed it out..
Ok, I uploaded necessary files, try it again.
Thanks for the feedback..
Anton.
p.s. You liked the screenshot, did you? Features two
of my *own* icons ! ;)
[4/5] from: atruter:labyrinth:au at: 24-Aug-2004 11:29
Anton,
Looks good except:
>> do http://www.lexicon.net/antonr/rebol/gfx/tile-mapper/tile-mapper.r
** Script Error: map-size has no value
** Where: save-state
** Near: map-size grid-chk/data map-scale origin-pe/data pos-pe/data
>> map-size: 20x20
== 20x20
>> do http://www.lexicon.net/antonr/rebol/gfx/tile-mapper/tile-mapper.r
** Script Error: first expected series argument of type: series pair event
money
date object port time tuple any-function library struct event
** Where: redraw-map
** Near: tile: first section/:pos
scaled-image: get-scaled-image-thru
Regards,
Ashley
[5/5] from: antonr:lexicon at: 24-Aug-2004 17:53
Hi Ashley,
Umm, that's a weird one - can't reproduce it.
However, it made me think of the more politically
correct way to do the script (without creating a new
directory, %state/, in the current directory):
url: http://www.lexicon.net/antonr/rebol/gfx/tile-mapper/tile-mapper.r
read-thru/update url ; make sure we have latest version
; move to script's directory in your cache
change-dir first split-path path-thru url
do %tile-mapper.r
Give that a go. That should create the %state/ directory in the cache,
not your current directory.
By the way, I developed and tested only on View beta 1.2.48.3.1
Sorry for all the mess, and thanks for trying.
Anton.