Fun with Marquee and Blink

August 18th, 2009

Some friends decided they would seriously disown me if i used the marquee or blink tags… So I’m driving them to murder…

This text will bounce from left to right

Apparently this is evil or something. It’s actually deprecated and the W3C standards committee doesn’t want you to use it.

This text would blink in compatible browsers.

This is apparently evil as well. Marquee was in early versions of internet explorer, while blink was in netscape.

I wouldn’t use them for anything other than playing around though. Future browsers will probably remove this (maybe or who knows they might still include it for compatibility reasons).

By the way if it doesn’t work, then no harm done. Your browser probably just doesn’t recognize the tag, or like i said future browsers that did once recognize it will probably stop.

Said friends also told me not to forget blinking and scrolling red text in comic sans font.


EVIL EVIL EVIL !!!

There, happy now?

Note: Comic Sans doesn’t seem to work, and the blink tag doesn’t work in IE at all, also because of the size the text gets clipped in IE. So moral of the story is, don’t use IE to view this post. That is all.

Next look at UhfEdit

June 18th, 2009

Well here’s a new update.  Now I’ve got the ability to manipulate the map size, the cell size, and to turn the grid and info on and off.  I had a bear of a time attempting to get the keyboard input stuff working exactly how I wanted and now it works great!  The other issue is once I worked the resize issues out, there was a graphical glitch that caused the selector square to remain where it was even though it was off the map.  Since I’m not really planning on using the keyboard to select actual tiles (at least at the moment) I decided (on advice of others, thanks #xna!) to just simply hide the selector (dark red box on the grid) when it was off the grid.  You can see what I mean here:

UhfEditSS02 That’s sort of unwanted.  However you can see I fixed it here:

UhfEditSS03And here it is with it gone:

UhfEditSS04Okay now for the main event, a video of the map editor in action.  Notice it still doesn’t do anything yet because the next thing I will work on is a tile selector panel and then the ability to place tiles on the map.  Note a tile is just an abstract concept for still image or animation that is placed on a map.  A tile can be any size and shape and be put anywhere on the board, just as long as you got the grid off.  With the grid on it will line up with the upper right corner.

Please forgive the quality of the video.  I captured with CamStudio, and then converted it from 1280×720 down to 640×480 (with black bars to keep the aspect ratio at 640×360 ie 16:9)  Anyways it should give you an idea of where I’m going.

Keith

First peeks at Uhf-Edit

June 2nd, 2009

Okay so I decided to just start making the editor, instead of planning out every little detail.  Here are some screenshots and a few notes.

This first one is a translucent block over the background.  This was ultimately scrapped.

UhfEdit0001 The next two are how the editor looked when I had camera problems.  Turns out I wasn’t turning it back into local space.  I turned from local coordinates to world coordinates, and then i need to go back to local.  Essentially the tile (individual grid cell) wasn’t lining up to the map which was world space.

MapEdWrongMapEdWrong2 These last two are how they were supposed to look, which was good if you didn’t move the mouse outside the map.

MapEdRight MapEdRight2 Finally the corrected version.

UhfEditSS01

I just decided I wanted gray on black instead of white on gray.  And fooled around with the grid size.  See this is going to be a bit different than traditional map editors.  I wanted the kind of flexibility a tile map gives you but I wanted the ability to place images of any size anywhere.  So basically whatever the tile grid is set to, the “tile” which is any arbitrarily sized graphic object (will include animations and stuff later), the tile will be placed in the upper left corner depending on what grid cell you’re in.  You’ll also be able to change the tile and map sizes in realtime.  What this means is if you have a big 64×64 texture but you want to put a 32×32 texture directly on top of it in the center, you simply change the grid size from 64 to 32, and you can automatically place tiles in increments of 32.  If you set the grid cell size to anything lower than the minimum (probably 8×8) there won’t be any grid and you can place tiles anywhere on the map up unto the boundaries of the map.  Even if it hangs off.  However the map will be clipped at it’s edges, so if you hang something off the edge you might only see part of it.  This is just a start.  Right now I’m figuring out what keys and controls to use to manipulate the tile and map sizes.

Keith