greggman / o3dtoydefense

Automatically exported from code.google.com/p/o3dtoydefense
0 stars 0 forks source link

Fix placement and upgrade bugs #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Placing a tower has *issues*

*) You are supposed to be able to double click to place but this only works
sometimes.
*) You are supposed to be to drag a tower out but this only works sometimes
as well
*) You are supposed to be able to upgrade a tower but the UI is unusable.

Random ideas for fixes:

Change the UI so if you are not dragging a tower then

Double clicking or right clicking on the playfield brings up a menu with
the 3 towers you can place. The ones you have no money for are grayed out.
 You can click on one of the towers to build OR you can click off the menu
to close the menu or click the "cancel" button.

As you cursor over the options the area of effect cursor should appear live
around the tower and the tower should show in the place it will appear once
built.

Double clicking or right clicking on a tower brings up the upgrade / sell
menu. Click the upgrade button or click cancel. As you cursor over upgrade
the area cursor should adjust to show the influence of the upgraded tower.

Single click and drag to scroll.

Unfortunately it's not clear how the tower icons and dragging towers off
those icons fit with this model.

Otherwise, maybe

#1) The cursor should ALWAYS have a tower under it if it not over an
existing tower. It is displayed as:

a) ghosted if you don't have enough money to place
b) flashing transparent red if it overlaps something else
c) a solid transparent color (blue? green?) if you can place it

Only placed towers should be their true colors.

Clicking places the tower if you have the funds

#2) If the cursor is over an existing tower the shape under the cursor
changes to an upgrade symbol or flashes the tower under the cursor. 
Clicking brings up an upgrade/cancel menu. While to menu is up the range of
attack area is shown for that tower. While the cursor is over "upgrade" the
upgraded area of attack is shown.

#3) Right clicking at any time brings up a shortcut menu to select one of
the 3 towers. It's a click, drag, release menu. 

a) click and hold, menu appears
b) while holding drag to tower icon around mouse
c) release on icon to select a tower type or anywhere to leave selection as is.

This is just a shortcut so you don't have to go to the icons at the top right.

Original issue reported on code.google.com by g...@google.com on 4 Nov 2009 at 3:22