The Code Zone Bargain Basement Blog


Imparting Game Development Wisdom of Dubious Quality Since 1998

Wednesday, February 21, 2007

Bleah

I have flu.

Thursday, February 15, 2007

Back to the bizness at hand

Okay, gamedev's back in the land of the living. GDC is coming up. I'll be doing expo coverage as always.

I just settled on what will be daily puzzle number ten. It's a bit like Shi Sen, although it'll probably be a bit quicker to play. Shi Sen's the most popular game in the lineup right now (judging by the number of hits), so I'm hoping it'll also do well.

I replaced the main menu on The Code Zone's site with a similar-looking one written in DHTML (read: javascript). This will give me the ability to make larger menus, as they pull down rather than sideways, which was a problem for the Flash menus, which must be rectangular.

Only problem is that javascript draws lower on the Z-order than Flash, so the menus were pulling down under the games. Doing a little research, it appeared that the solution was easy, just set the "WMODE=opaque" parameter to your embedded Flash thingy, and it'll draw itself directly on the browser's surface and javascript can draw on top of it.

Simple, right?

WRONG!!

Problem with that is that the Flash windows no longer activate and take focus and keyboard-events like normal windows do (even hidden windows like the ones that plugins occupy). So when you do an opaque Flash applet, your keyboard events either never register at all (Firefox) or they're sent to both the applet AND the browser (IE). So the upshot was, in Firefox it was impossible to move the bulldozer with the arrow keys. In IE, you could move the bulldozer, but if you pressed the down-arrow to move it down, the browser would also scroll.

(Note that this doesn't seem to be a problem with the daily puzzles, mainly because they're almost entirely mouse-driven. They only keyboard-stuff on daily puzzles are the login screens, the text-entry for logins still works because only the key-up events are killed, not key-downs).

Anyway, I decided to go with the dirty-trick solution. I made the Bulldozer/Ducktiles splash-screens into separate applets and put 'em above the applet (1, 2). That way I can leave the games as-is, as only the splash-screens don't get key-events.

So it's actually a fairly big change even though it doesn't look much different. If you see anything screwy, lemme know.



Next, I made several small fixes to the daily puzzles. I added some new awards. Also, I put in a small delay before the "game over" panel pops up, as I didn't really like the panel popping up without giving you a moment to admire your handiwork.

Yeah, I'm proud of the little critters. I still need to get more players, though, as they're not yet making enough in ad-revenue to cover their hosting. So if you have some pals who need to get turned on to playing, send 'em over. I'll probably make some kind of "got a new player to sign up" award if you do :)

Friday, February 02, 2007

Yet again, still another site update

Actually, there are several new things. First off, Daily Puzzle 9 is now up. It's a dice game that's based on an old favorite risky-strategy game. It's called Countdown Dice.


Also, there are a few "behind the scenes" changes to better accommodate future expansion. The account manager and registered download page should behave better. Also, the Google Checkout shopping-cart code has been improved.


Enjoy!

A change of career

Awright folks, I've discovered that the big money doesn't come from writing cute little games and selling 'em at low prices. The big money comes from MOTIVATIONAL SPEAKING!

Motivational speaking is a career in which you claim to have all the answers to life's questions and can instill those answers in others if they'll just be more like you. And click lots of banner-ads. And press the "donate here" buttons that are liberally festooned all over your site.

That being said, I'm announcing THE TWO MILLION DOLLAR EXPERIMENT, which is twice as good as any other similar experiments that thus-far have only been able to garner an average of $653, thus rendering the experiment a 99.94% failure. In order to take the two million dollar experiment, you must announce your intentions to the universe thusly. . .



Also, feel free to right-click that picture and make it into your windows wallpaper, as it'll only make the mojo stronger if you see it all the time.

What with this being a subjective universe and all, you can expect large sums of cash to start appearing in your pants almost immediately.



So go ahead and announce your intentions to receive two million dollars in your pants. If you achieve any results, please post them as comments.

Amen.