Commit Graph

662 Commits

Author SHA1 Message Date
Chris Danford 6b07fcaed5 add hammer-ons and pull-offs ("hopo") 2006-11-30 12:29:01 +00:00
John Bauer 5aa3e3c7c7 Factor out the code for updating the life meters. Make sure that
every time the life meters are updated, we also update the life stats.
This fixes the following bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1556608&group_id=37892&atid=421366
2006-11-27 23:38:47 +00:00
John Bauer b1765cdc0f Fix a bug where the game would display the combo that would have been
correct on the previous step: ie after hitting the 4th tap in a row, it would
say 3 combo.
2006-11-27 01:08:31 +00:00
Jason Felds 5ab5386932 Minor cleanup. 2006-11-22 06:18:38 +00:00
Glenn Maynard cc0914e9b2 dep fixes: move Player's timing prefs into Player; add and
use accessor; fix using SE_ instead of TW_; move code
back into GCAT (was in PrefsMan due to dependency for
SMPackage)
2006-11-21 02:49:59 +00:00
Glenn Maynard b6fd51b4fa fix crashes 2006-11-19 02:28:33 +00:00
Chris Danford 2bf058e511 fix initial life never set in life records 2006-11-16 12:26:16 +00:00
Glenn Maynard c2313737b5 also send ComboChanged at beginning of gameplay 2006-11-16 05:27:59 +00:00
Glenn Maynard d0904f7dc1 ComboChanged message 2006-11-14 22:08:46 +00:00
Glenn Maynard cecb7a5710 simplify 2006-11-14 22:01:21 +00:00
Glenn Maynard 30dc9974ab simplify 2006-11-14 21:56:59 +00:00
Glenn Maynard 93670f895d remove unused 2006-11-14 21:47:45 +00:00
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 bf20880ba9 name cleanup. Replace:
StartDrawingAtPixels
 FirstPixelToDraw
 YStartOffset
 DrawFarY
with:
 DrawDistanceAfterTargetsPixels
2006-11-13 06:12:38 +00:00
Glenn Maynard 701f9ee5f1 comment 2006-11-09 07:07:24 +00:00
Glenn Maynard 0e69f069e7 remove noop 2006-11-09 05:40:45 +00:00
Glenn Maynard 06214febf3 remove noop 2006-11-09 05:40:44 +00:00
Glenn Maynard 816d3f1155 prefer preincrement 2006-11-02 04:28:16 +00:00
Chris Danford 499444645c fix "search for nearest row finds already judged rows"
TNS_None on strum miss, not TNS_HitMine.  This was filling NoteData with tons of new notes
2006-10-30 12:59:15 +00:00
Chris Danford 3c3359c163 add Strum. This needs cleanup 2006-10-27 18:09:39 +00:00
Chris Danford 17ca30a047 add fret/strum
add PlayerInitCommand
2006-10-27 10:19:08 +00:00
John Bauer 37f9178f61 Add an "Autosync Tempo" feature. This uses a linear Least Squares
Regression to figure out a line through the user's step errors to minimize
that error.  It then uses the slope of that line to fix the tempo and the
intercept to fix the offset.  Stops are adjusted as if they were originally
calculated as a number of beats, ie the slope is also used to change
the stops.

Also fixed is a bug where the user doesn't get a chance to keep or
reject the sync changes when ESCing (ZZing) from a song.

R=glenn
2006-10-26 22:41:40 +00:00
Glenn Maynard cb746be4c3 Invalid 2006-10-07 03:43:41 +00:00
Steve Checkoway fcbe0609c3 Move miss combo calculations into the ScoreKeeper. 2006-10-01 04:02:28 +00:00
Glenn Maynard 95c768b6e5 SetCurrentStyle() 2006-09-30 22:25:16 +00:00
Glenn Maynard f567a0fd28 cleanup arg order 2006-09-26 08:54:54 +00:00
Glenn Maynard 38328196a3 use GetMetricR 2006-09-22 03:53:42 +00:00
Glenn Maynard d04a5920fa LuaExpression -> LuaReference 2006-09-21 02:09:44 +00:00
Steve Checkoway 78d266cf6e Simplify. 2006-09-13 08:17:56 +00:00
Glenn Maynard e8b325eac2 fix merge 2006-09-13 02:31:48 +00:00
Glenn Maynard d7e4bf7817 remove InputMapper::StyleToGame(StyleI) 2006-09-13 01:54:16 +00:00
Glenn Maynard 51220acce2 remove unused 2006-09-13 01:46:14 +00:00
Glenn Maynard d6ad18f73e remove InputMapper::IsBeingPressed(StyleI) 2006-09-13 01:45:10 +00:00
Glenn Maynard 9f54f1b248 remove InputMapper::GetSecsHeld(StyleI) 2006-09-13 01:38:10 +00:00
Glenn Maynard ea10bd4422 simplify 2006-09-13 01:00:08 +00:00
Glenn Maynard 2faf8f9135 simplify
I'd prefer to get rid of the StyleInput versions of INPUTMAPPER
calls, and just pass in GameInputs and leave conversion to the
users (which aren't many).  The MultiPlayer hack makes this
hard, though, where we pass in the MultiPlayer to check; that
affects the underlying DeviceInput that's constructed.
2006-09-13 00:59:44 +00:00
Glenn Maynard 6a80311172 phase out StyleI.player 2006-09-13 00:16:23 +00:00
Glenn Maynard 87bb92451b StyleI.player duplicates MenuI.player when the style is set. It's
essentially being used as a hack to see if the style is set, and
as a shortcut for converting from StyleInput back to GameInput,
complicating InputEventPlus in the process.  Remove it, and just
pass along the PlayerNumber when it's actually needed.

(incremental commit)
2006-09-13 00:02:23 +00:00
Glenn Maynard c419567b23 simplify 2006-09-12 23:57:56 +00:00
Glenn Maynard ec3b9382d2 InputMapper::IsButtonDown -> IsBeingPressed, to match InputFilter::IsBeingPressed 2006-09-08 02:12:30 +00:00
Steve Checkoway 22b1817586 Missed commit. 2006-08-16 13:27:59 +00:00
Steve Checkoway b39d68c8cf Initial TapNote::lift implementation. 2006-08-14 12:16:31 +00:00
Steve Checkoway 734f9760cc Remove unnecessary member. Just set iKeysoundIndex to -1 if it isn't valid. 2006-08-14 10:17:48 +00:00
Steve Checkoway 2f9bda2eea Push check down. 2006-08-14 09:57:18 +00:00
Steve Checkoway 45db2de31d Pass release to Step(). Doesn't do anything yet. 2006-08-14 09:09:24 +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 c1899d448f Revert. This is required for the editor which can start in the middle of the song. 2006-08-01 20:58:30 +00:00
Steve Checkoway 767bf0ec82 Fix off-by-one and simplify. 2006-08-01 06:51:19 +00:00
Steve Checkoway 6558a56e8d Simplify. 2006-08-01 06:29:11 +00:00
Steve Checkoway 27eaf18dbd Remove debugging. 2006-07-28 19:58:13 +00:00