Smash and Edit
This week’s gruedorf challenge is a day late but at least 19.95 over. First up is a prototype of the reason I put in the entity collision event: A block-pushing demonstration! While it’s not quite “there”, I’m amused by the demo. I expected to have to do a little more work to get non-player entities to interact with each other, but the way I coded it up worked right on the first attempt!
Unfortunately the handling acts in peculiar ways, mainly due to the fact that I’m using playerstep = 16; to fake tile-based movement. I initially thought that playerstep would effect all entities, but ha… look at the name again, sucker! I’m tiring of how verge always handles player-entities as a super-special case from regular entities. They should all be one and the same but for where their marching orders are coming from, maaan.
There will be more developments on this front in the near future. Don’t worry, Glambo. Your two cents have not fallen on deaf piggy banks.
Old dog, new code.
Today’s second verge-based miracle is Maped 1. In verge 3. In VC. Well, not quite fully functional seeing as it can’t load or save maps, and not really maped1 since its tiles are 32×32 and based off of pngs in the ./tile/ directory instead of a real vsp, but… SHUT UP OKAY.
This project came about from a long-standing desire for a mapeditor in-code in vc, a desire to find a use for overkill’s widget library, and a need for a map editor for my iPhone games projects. I don’t have much intent to build this past my needs there, but I have been building it fairly generically, so it could be updated for 16×16 tiles easily… so if anyone wants to come along and write v3 loaders and savers in vc, well, hell, we could surely use’m ;)
As far as the mapediting goes, select “New Map”, enter a garbage string as the name, and two positive ints between 1 and 100 for the size. When in the map editing mode, ‘A’ and ‘Z’ scroll the left click button’s selected tile up and down, and ‘S’ and ‘X’ scroll the right click button’s selected tile up and down. Clicking left or right on a tile will paint, and holding ‘CTRL’ while left or right clicking will ‘eyedropper’ the tile you click on into the button’s slot you clicked with.