#include "stdafx.h" /* ----------------------------------------------------------------------------- Class: GhostArrowBright Desc: See header. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Ben Nordstrom Chris Danford ----------------------------------------------------------------------------- */ #include "GhostArrowBright.h" #include "PrefsManager.h" #define SHOW_SECONDS THEME->GetMetricF("GhostArrowBright","ShowSeconds") #define ZOOM_START THEME->GetMetricF("GhostArrowBright","ZoomStart") #define ZOOM_END THEME->GetMetricF("GhostArrowBright","ZoomEnd") #define COLOR_PERFECT_START THEME->GetMetricC("GhostArrowBright","ColorPerfectStart") #define COLOR_PERFECT_END THEME->GetMetricC("GhostArrowBright","ColorPerfectEnd") #define COLOR_GREAT_START THEME->GetMetricC("GhostArrowBright","ColorGreatStart") #define COLOR_GREAT_END THEME->GetMetricC("GhostArrowBright","ColorGreatEnd") #define COLOR_GOOD_START THEME->GetMetricC("GhostArrowBright","ColorGoodStart") #define COLOR_GOOD_END THEME->GetMetricC("GhostArrowBright","ColorGoodEnd") #define COLOR_BOO_START THEME->GetMetricC("GhostArrowBright","ColorBooStart") #define COLOR_BOO_END THEME->GetMetricC("GhostArrowBright","ColorBooEnd") // "2" appended so the names won't conflict with the GhostArrow float g_fShowSeconds2; float g_fZoomStart2, g_fZoomEnd2; D3DXCOLOR g_colorPerfectStart2, g_colorPerfectEnd2, g_colorGreatStart2, g_colorGreatEnd2, g_colorGoodStart2, g_colorGoodEnd2, g_colorBooStart2, g_colorBooEnd2; GhostArrowBright::GhostArrowBright() { g_fShowSeconds2 = SHOW_SECONDS; g_fZoomStart2 = ZOOM_START; g_fZoomEnd2 = ZOOM_END; g_colorPerfectStart2= COLOR_PERFECT_START; g_colorPerfectEnd2 = COLOR_PERFECT_END; g_colorGreatStart2 = COLOR_GREAT_START; g_colorGreatEnd2 = COLOR_GREAT_END; g_colorGoodStart2 = COLOR_GOOD_START; g_colorGoodEnd2 = COLOR_GOOD_END; g_colorBooStart2 = COLOR_BOO_START; g_colorBooEnd2 = COLOR_BOO_END; SetDiffuse( D3DXCOLOR(1,1,1,0) ); } void GhostArrowBright::Update( float fDeltaTime ) { Sprite::Update( fDeltaTime ); } void GhostArrowBright::Step( TapNoteScore score ) { // HACK: set the length of each frame so the animation plays in exactly 1 pop up time. // We can't do this in the constructor because the image hasn't been loaded yet for( int i=0; i