This is more like it

posted in Gaiiden's Scroll
Published January 05, 2006
Advertisement
Wednesday, Jan 4

So I picked up a new toy today at Best Buy, a Logitech wireless travel mouse. I learned last year at GDC (after forgetting to pack a mouse) just how much a touch pad really sucks. I mean touch pads are okay, but the more you have to use them, the less effective they become. So since I'm going on vacation and bringing my laptop with me, I knew I'd want to take a mouse. So rather than pack along the large, clunky and wired Intellimouse I usually travel with I bought a teeny travel mouse. Love it. My only gripe is that it as the side-scroller wheel, which is real cool, but it makes it tough to middle-click with the wheel sometimes, because you have to make sure to press straight down. But, minor complaint. Me happy.

So I put in a solid 5 hours again tonight working on Galaxy Conquest. In the process of implementing the player class I pretty much gutted the way it was originally set up, so I spent a bit of time going through and changing some things. But I like the new system better. Originally I was creating children of a parent ScriptObject
new ScriptObject(Player){   score = 0;   skill = $EASY_SKILL;};$player1 = new ScriptObject( : Player){   type = $PLAYER_ONE;   class = Player;   name = "Player 1";   ...};

Now instead the Player ScriptObject controls all the player functions and abilities and contains an array of actual player data objects
new ScriptObject(Player);function Player::createPlayers(%this){   for (%player = 1; %player <= $MAX_PLAYER_COUNT; %player++)   {      %this.players[%player] = new ScriptObject();......

So I just had to go through and change things like
eval("$player" @ %player @ ".name = %name;");

to
Player.setName(%player, %name);

Much more readable too.

Okay that's pretty much all the code-ey stuff. On to the prettay pictars!!


First off, check out the new cursor. Rock on. Wish it was animated (the asset was originally animated) but it seems Torque doesn't support that. Weird eh? Note also that the Special System Density setting in the lower-right has been locked on "default" until I implement it. I also added a bit of code to restore the Turn Timer to whatever it was set before the user selects a Blitzkreig game type (where the turn timer is locked in at 5 seconds for that game type).


Here's the first real ingame screenshot. Unlike my past entry a few days ago, everything is rendered - there are no placeholder assets in use here. If you look at the previous image you'll see the planets in the player panels match up, as well as their names


I implemented some basic cursor changing - the "no drop" cursor appears when the cursor is placed over the map and there are no systems for the player to drop a planet on. In the future this will be expanded to include systems belonging to other players (both occupied and unoccupied if in Imperialism mode with territories) and asteroid field special systems


When the cursor is placed over a system (right now it's any system. As mentioned above not every system can take a planet) the cursor changes to the planet type of the currently active player


Here's a shot of a 4-player game set up with a different map selected


And here's the ingame shot of that setup. Note the cursor in the upper-left map corner

So that's it for today. Updated task list:

  1. Create the game screen GUI

  2. [Added 1/1/06] Implement map loading changes for game. Maps loaded in a game do not appear as they are loaded in the editor. Blank systems, for example, are not rendered

  3. Load the map chosen in the menu in the GUI

  4. Flesh out the Player class

  5. Load the game with player info (name/planet/difficulty)

  6. Create game loop and allow players to take turns placing planets

  7. Create & implement the ingame menu GUI

  8. Create & implement the ingame settings menu GUI

  9. Begin implementing Conquest gameplay


Progress is looking good. Hopefully I'll have the rest done before I leave for vacation on Sat so that while I'm away I can work on the gameplay.

Oh and wow I've been listening to the Chronicles of Narnia soundtrack all nite long while working. Great tracks. Especially Can't Take It In by Imogen Heap.

Ok, till next time...
Previous Entry Bah
Next Entry Full Disclosure
0 likes 4 comments

Comments

Aldacron
Animated cursors aren't supported out of the box, but if you do a resource search at the GG site (keywords 'Animated cursor'), you'll find a resource for implementing it. The resource itself is for the TGE 1.3 codebase, which the current releases of T2D are built on. Scroll down to the comments and you'll find an implementation for TGE 1.4, which the next T2D Alpha release will be built on.
January 05, 2006 07:41 AM
HopeDagger
So much progress, so little time. You're starting to make everyone else look bad. ;P
January 05, 2006 09:00 AM
Gaiiden
@Aldacron - oh yea, someone linked me to that over on the GG boards. I haven't felt like doing it myself yet tho. It's something I can wait on - if they don't have it natively supported by the time GC is ready to release I can add it then. It's not like I need animated cursors for the game itself. They're just cool [smile]
January 05, 2006 12:04 PM
Trapper Zoid
I've always wanted to make my own simple 4X game, so I've been following the development of your game for a little while (and I'm impressed with the style you've chosen for the game!).

I'm intrigued by the next stage on your checklist; players get to place planets? Is the construction of the galaxy part of the gameplay? This sounds rather interesting; how are you planning to make it work?
January 05, 2006 07:09 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement