Sunday, September 4, 2011

How to make a scene Part 1

 The scenes are all in json.

This bit of json creates a template for the enemy on the scene.  It tells when the different creatures are put onto the scene and where they go.

          "createlistturns2": {
               "classname": "gwt.client.game.CreateListTurns",
               "template": "attack",
               "turn": [
                    1,
                    7,
                    11,
                    21,
                    17,
                    31
               ],
               "xfull": 5,
               "yfull": 0,
               "livingbeing": [
                    "fire vortex",
                    "fire elemental",
                    "molten gargoyle",
                    "fire vortex",
                    "fire elemental",
                    "molten gargoyle"
               ]
          }

Saturday, June 25, 2011

I think I found an additional bug in gwt

I think if the visible item count is exceeded then sometimes the listbox returns something that the development mode doesn't understand. Need to investigate further.

Thursday, June 23, 2011

Had to upgrade to the google canvas as well

For now I am leaving in the load images method from gwtcanvas as I am not sure if that is anywhere.

I managed to get the new canvas working despite not being able to use the official canvas object. That required a contextual shift, as I am used to drawing within the lines.

Google voice looks like it got a pretty major upgrade.

Which is good as someone mentioned that it downloaded 40 ogg files when they first used it.

I am still leaving the sound muted to start with, but hopefully this is no longer an issue.

Saturday, June 18, 2011

Pausing while doing a selection box, not a success

I was trying to do a selection box that paused when you held the mouse down. However it did a brief pause on normal clicks that I didn't like.

I'll probably eventually look into pausing after so much time of the mouse movement, but for right now I'd mark it a failure.

Seriously optimized my game

It turns out I was refreshing the entire canvas on every single persons turn. Now it only refreshes half the canvas on the entire turn.

For a pausing turn based module I will need to add in a flag that lets it go back to the previous mode though.

Thursday, June 16, 2011

Added the ability to upload resources

In profile you can go to manage resources and add your own images to use

For pretty much anything just add an image key with the path and it should override the default image.

One thing to note is that for the image loader I am using there is no "on failure" way to see which images are missing. So if one is broken none will show up. I could at least add in a warning that displays everything that the game was trying to load. Havent yet though.

Tuesday, June 14, 2011

Dungeon crawl tiles

I don't really have a distribution package, but I thought I'd give them a shoutout.

Part of the graphic tiles used in this program is the public
domain roguelike tileset "RLTiles".
Some of the tiles have been modified by Terra

You can find the original tileset at:
http://rltiles.sf.net

Wednesday, June 8, 2011

The joy of being random and unfair

When I played baldur's gate 2 I would spend an inordinate amount of time rerolling my character in order to get the stats that I wanted.

NWN did away with this (I assume due to V3 DnD rules) and I was always disappointed when I had to update stats without a random component.

Incidentally I think my favorite part of Civilization is regenerating the map until I get a favorable map.

Saturday, June 4, 2011

Chrome canvas development mode stopped working

I researched around for a while and couldn't really figure out the issue. I suspect it might have to do with the way chrome updates.

Saturday, May 28, 2011

Two bugs

Played far too many sounds at once and chrome crashes.

Also I found an obscure case where Arrays.asList() returns the actual array on the get call (it happened on a string array with a length of 1). I can reliably reproduce, but am not going to take the time to try to pinpoint what caused it.

Friday, May 20, 2011

Blog entry 1

My daughter put something in my wii.

Now the cd part of it no longer works. I bought shiren the wanderer and let her stuff it in there only to find out that it is pretty much broken. The cd has a few scratches on it, but it is probably still playable.

No warranty on the wii though. I am debating sending it back to nintendo to get it repaired. If it does then how will I watch netflix? I really don't want to
buy xbox gold or use my computer (watching hulu through the hdmi cable is annoying enough)