Commit Graph

50 Commits

Author SHA1 Message Date
Chris Danford 2f7ac6aa3c Add m_ to StageStats and PlayerStageStats members. There are several methods of these classes with local variable names that are similar to the member names. m_ helps distinguish between those two types. 2006-11-14 11:13:21 +00:00
Chris Danford ea2581fa4e add Character InitCommand (useful for scaling characters) 2006-11-05 04:58:33 +00:00
Chris Danford 7ac45c24e4 save Preferred, Stage, Song, and Current modifiers separately. This eliminates the fragile mods store/restore. 2006-08-05 02:38:05 +00:00
Steve Checkoway 80698277cf Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 1168414cf0 m_bPastHereWeGo -> !m_bGameplayLeadIn, default false. This is more natural;
!m_bPastHereWeGo was the usual case.
2005-10-10 04:36:04 +00:00
Chris Danford 1333bfd2d8 remove references to specific games for things that are only specific to the controller type 2005-10-07 05:00:52 +00:00
Glenn Maynard 3160575d35 stop using BGAnimation directly 2005-08-31 21:10:14 +00:00
Chris Danford bb712884bb move global StageStats into a singleton 2005-02-16 03:25:45 +00:00
Glenn Maynard 5a83da5411 cleanup 2005-02-07 04:00:18 +00:00
Glenn Maynard aceff788bf remove wasteful and mostly unused matrix math helpers (pass by reference,
don't return by value)
2005-02-05 02:42:33 +00:00
Chris Danford 09d018444e split StageStats into player-specific and non-player-specific structs 2004-12-20 10:47:41 +00:00
Glenn Maynard e0fe0e6ddd reduce Model.h dependencies 2004-08-19 01:29:46 +00:00
Glenn Maynard cab0542708 re-add DISPLAY->SetLightOff/SetLighting(false) (where'd they go?)
cleanup
2004-06-18 16:58:37 +00:00
Glenn Maynard a5663aaa0d style cleanup; when commiting, please diff and try to remove unrelated
changes
2004-06-18 16:56:21 +00:00
Glenn Maynard 8221bf543a SDL calls must never be made outside of RageDisplay_OGL 2004-06-18 16:54:48 +00:00
Kevin Slaughter b3f1d8f874 Added GL cel shading option for models 2004-06-18 11:02:40 +00:00
Glenn Maynard 30a9bf3292 license update 2004-06-08 00:08:04 +00:00
Chris Danford a9db266eb2 "for( p=0; p<NUM_PLAYERS; p++ )" -> "FOREACH_PlayerNumber( p )" 2004-05-24 08:16:17 +00:00
Chris Danford ba93ee8469 "for( int p=0; p<NUM_PLAYERS; p++ )" -> "FOREACH_PlayerNumber( p )" 2004-05-24 06:10:11 +00:00
Chris Danford f95254c1a9 turn off culling on dancing characters 2004-03-07 05:53:04 +00:00
Glenn Maynard 01577a27f2 (ugly) fix uninitialized values 2004-01-21 05:49:25 +00:00
Glenn Maynard 9170e91bcc Move CurStageStats and vPlayedStageState out of GAMESTATE. Having
GameState.h depend on StageStats.h is too inconvenient.
2003-12-23 00:26:00 +00:00
Glenn Maynard 11870a6072 continue phasing out BASE_PATH and SLASH 2003-12-10 09:26:05 +00:00
Steve Checkoway 460dd1ca49 scoping fix 2003-11-11 02:46:43 +00:00
Andrew Livy ad7c67b0ce Added: 2D DancingCharacter System, Ability to Show (or not show) Evaluation Screen on Fail. Evaluation Screen Fail / Passed BGA Overlays. 2003-11-10 23:25:44 +00:00
Glenn Maynard ee7a8ea08e fix XXX 2003-11-02 03:52:13 +00:00
Chris Danford 4414561fe6 add default character so Rave/Battle is playable without character models 2003-09-25 04:22:51 +00:00
Chris Danford c8f7c02036 Split ModelView matrix stack into View and World stacks.
Add "hallway" and "distant" mods.
2003-09-21 02:36:28 +00:00
Chris Danford e5c62fcfa0 fix dancing character update rate 2003-09-13 19:08:19 +00:00
Kevin Slaughter 7f8c204bf3 Remove dead GetHowToPlayAnimationPath() 2003-09-11 09:08:23 +00:00
Chris Danford b48d78b866 fix Dancing Characters option setting "Select" 2003-09-07 23:35:48 +00:00
Chris Danford 8a78faf552 better lighting on Danger 2003-08-31 22:38:32 +00:00
Kevin Slaughter 5c2d7c5bd3 Added flashing red light ala previous DDR mixes during DANGER animation on the dancing characters. 2003-08-26 07:44:22 +00:00
Chris Danford 4fd5ede6de fix dancing characters not resetting between songs in a course 2003-08-23 19:58:46 +00:00
Kevin Slaughter adc19d0a15 Updated ScreenHowToPlay code to include dancer. I know it's a bit rough and too-fast paced right now, but that will all be fixed tonight when I get home and re-commit. 2003-07-31 11:31:24 +00:00
Glenn Maynard e70158e4bc Avoid division by zero.
This shouldn't matter; div/0 is not a fatal error by default.  Some people
are getting exceptions for it, though; I have no idea why.
2003-07-09 02:12:14 +00:00
Chris Danford 9c9aef37c7 fold CroppedSprite functionality into Sprite
more work on Rave
2003-07-03 06:38:57 +00:00
Glenn Maynard 33324c34cc If the music is in slow motion, dance in slow motion, too. 2003-06-27 20:10:37 +00:00
Glenn Maynard d4508af417 unneeded header 2003-06-27 08:53:46 +00:00
Chris Danford df728d987a Add sorts by meter
Choose a random dancing character on GameState::Reset()
2003-06-27 08:06:22 +00:00
Glenn Maynard 8756019ea6 Fix course crash. (Not a real fix, since I can't test this code yet.) 2003-06-10 05:28:33 +00:00
Glenn Maynard a382b65e1d fix warnings
can't take the address of the return value of a function
2003-06-10 05:21:26 +00:00
Chris Danford b2f5393026 finalize dancing character directory structure
better camera movements
animated face textures
2003-06-09 19:22:04 +00:00
Chris Danford f34d409d6e DDR-like camera motions for DancingCharacters 2003-06-07 22:20:39 +00:00
Chris Danford 739cc6d38b support loading of multiple animations in a Model 2003-06-07 18:09:20 +00:00
Chris Danford bf77ee902f fix DrawIndexedTriangles bug that caused uninited verticies to be drawn 2003-06-07 11:54:44 +00:00
Chris Danford 54bedc3eba clean up RageDisplay methods, add ability to mask song banner
The masking uses the Z-buffer under the assumption that some cards don't have a stencil.  Should we be using the stencil instead?  It doesn't really matter because we never need both the Z buffer and stencil buffer simultaneously.
2003-05-15 06:09:19 +00:00
Chris Danford c04b5b993b add Model to NoteDisplay 2003-05-09 04:42:04 +00:00
Chris Danford 35dd3886dd add dancing character support, option to enable 2003-05-05 04:43:11 +00:00