Commit Graph

349 Commits

Author SHA1 Message Date
Glenn Maynard a847b4f47b fix paste clearing everything after the paste; also fixes compress, etc.
problems
2005-02-10 05:07:34 +00:00
Chris Danford 1de61aa8ae split AutoActor into a separate file 2005-02-09 05:27:51 +00:00
Chris Danford 4223e09cc8 GetPathTo -> GetPath 2005-02-06 03:32:53 +00:00
Glenn Maynard 9a164cd7b4 simplify 2005-02-03 03:39:15 +00:00
Glenn Maynard 38eaa83497 fix m_NoteFieldEdit being updated twice, causing animations to play
too fast
2005-02-03 03:13:06 +00:00
Glenn Maynard 0ac0049da8 fix assist tick 2005-01-31 19:12:30 +00:00
Glenn Maynard bb7482e722 evil big commit (sorry):
Remove m_HoldNote array entirely.  Remove 2sAnd3s.  Store hold note
durations in the hold head.  hold_tail only still exists when InsertHoldTails
is used, to make SM parsing a little easier (may go away).  Add helpers
for iterating over ranges while including or excluding adjacent and overlapping
hold notes.  Range operations are now [start,end) instead of [start,end].
(probably more details coming to sm-dev soon)
2005-01-25 05:02:35 +00:00
Glenn Maynard 1dbb8cfac2 Fix shift not releasing g_iShiftAnchor.
This call is cleaner and simpler than DeviceToEdit, and it shouldn't
be less efficient to call it many times than calling DeviceToEdit once
(since DeviceToEdit loops over all keys anyway).  Maybe DeviceToEdit
should be dropped.
2005-01-23 23:49:19 +00:00
Glenn Maynard 52731adc29 NoteField::m_fBeginMarker, m_fEndMarker -> m_iBeginMarker, m_iEndMarker
go back to storing BPM as a float, until I'm sure it won't cause precision
problems
2005-01-23 23:17:12 +00:00
Glenn Maynard 3634c07656 Represent TimingData values (except for "seconds") in fixed-point.
Maybe we should stop calling note indexes "rows" and "indexes", and just
call them "beats"; if they're stored as an integer, they're in fixed-point.  Things
like "note rows per second" are a lot less intuitive than just calling them "beats
per second".
2005-01-23 21:55:01 +00:00
Glenn Maynard a769bc7c41 cleanup 2005-01-22 19:25:05 +00:00
Glenn Maynard 24f8de5cec more use of beat indexes instead of floating point
It actually looks like almost all of NoteDataUtil can be done naturally
in fixed-point: instead of passing around floating point, converting it to
fixed point for NoteData indexing, and adding floating-point beat fractions,
just pass around fixed point everywhere, and convert beat fractions to
fixed-point (which probably happens at compile-time)
If TimingData, etc. does the same thing, things will be simpler ...
2005-01-22 17:51:46 +00:00
Glenn Maynard 77d58c0d63 "Beat rows" are really just a fixed-point representation of beats. Prefer
using them in general over beats: it's more precise (we can tell exactly
how it'll round, and we can compare them without ugly error-margin hacks),
and it's what we need to use them with NoteData.
2005-01-22 17:34:10 +00:00
Glenn Maynard 032ddf0e08 Don't hold a redundant copy of the NoteData in NoteField. NoteField is
now just a renderer for NoteData.  This means we don't have to carefully
apply all changes to NoteData to NoteField.
2005-01-22 02:50:45 +00:00
Chris Danford ddab166dad fix "can't lay mines" 2005-01-21 06:47:50 +00:00
Glenn Maynard 754fb297fa cleanups, fixes 2005-01-15 18:33:09 +00:00
Glenn Maynard 2ecbfae787 fix record
eliminate g_pCurrentMap (one less piece of state to become desynced)
2005-01-15 13:14:36 +00:00
Glenn Maynard 8781bb055d cleanup, fix gcc compile 2005-01-15 13:05:33 +00:00
Glenn Maynard 0b4ad2db3b generalize 2005-01-15 04:31:35 +00:00
Glenn Maynard db57380d59 cleanup 2005-01-15 04:19:35 +00:00
Glenn Maynard 6548069e5e tween 2005-01-15 04:15:15 +00:00
Glenn Maynard 9fba6088f7 actually, s/help/overlay/ 2005-01-15 04:01:56 +00:00
Glenn Maynard 779e7777a1 cleanup 2005-01-15 03:56:32 +00:00
Glenn Maynard f265551c97 don't reload mine sounds, etc when entering play mode in the editor 2005-01-15 03:31:07 +00:00
Glenn Maynard 0dfdaee605 remove some more old experimental stuff 2005-01-15 02:01:26 +00:00
Glenn Maynard 3a9b2f7f4b working on fixing up extra loads when entering play mode in the editor 2005-01-15 01:28:29 +00:00
Glenn Maynard 856dc5c2ff Handle editor keymappings more sanely; this fixes the "#ifdef XBOX"
everywhere (tip: if you're putting that many preprocessor checks in
high-level code, you're doing something wrong).
2005-01-14 23:17:04 +00:00
Glenn Maynard 8d40bee10c fix shift-0 hold notes
These #ifdef Xbox-specific hacks need to go.  Making the entire editor
code unreadable and hard to maintain is just not acceptable.
2005-01-10 00:52:04 +00:00
Glenn Maynard 7dc7d2a917 cleanup: use TimingData::SetStopAtBeat
use strtod(), not atof() (to avoid double to float warnings)
2005-01-08 14:00:15 +00:00
Charles Lohr 88a9c0cdaa Add: Manual (textually inputted) BPM Changes and Stops. 2005-01-08 07:41:26 +00:00
Chris Danford cfd7f6300f fix CoinMode toggling on ScreenTitleMenu 2005-01-05 04:35:15 +00:00
Chris Danford a1340dd1c0 have gameplay objects access PlayerStageStats though a member pointer and not directly access g_CurStageStats. 2004-12-22 07:31:27 +00:00
Chris Danford f840c014a9 Move some player-specific data out of the bloated GameState class.
Have gameplay objects hold a PlayerState pointer instead of a PlayerNumber and indexing back into GameState.
This will simplify off-screen players (e.g. CPU ghosts, network replicated human players, >2 players using one NoteField)
2004-12-20 06:25:59 +00:00
Chris Danford b6d711b3c1 Remove backgrounds on screens. Have one shared background that persists across screens. 2004-12-09 08:16:18 +00:00
Glenn Maynard 3961acc447 eliminating brute-force search for ticks 2004-12-03 23:50:20 +00:00
Chris Danford 5790a0e9d4 fix Player alignment in editor 2004-12-01 04:02:00 +00:00
Chris Danford 7f336c2ce6 self-registering screen classes 2004-11-26 17:28:47 +00:00
Chris Danford 5127ceef4d remove CachedThemeMetrics in favor of ThemeMetric<T>
fix "CachedThemeMetrics don't read HTML colors and don't evaluate Lua expressions"
2004-11-06 20:36:04 +00:00
Chris Danford 72bd480883 CENTER_* -> SCREEN_CENTER 2004-11-05 06:35:10 +00:00
Chris Danford 8c1c2d0095 fix compile error 2004-11-01 06:30:35 +00:00
Ryan Dortmans b17860c1e1 Add Xbox input translation 2004-10-28 07:56:13 +00:00
Chris Danford ce4780559f froundf -> Quantize 2004-10-24 17:44:51 +00:00
Chris Danford 584189a10c naming cleanup: iNoteIndex -> row 2004-10-24 00:17:15 +00:00
Chris Danford 3ac1dba044 simplify TapAttack storage:
store attack info in TapNote
  in the SMNoteData string, store the attack params inline (like with keysounds)
play keysounds when hit
  still doesn't play keysounds on a miss
  still doesn't play autoKeysounds
2004-10-23 23:41:49 +00:00
Chris Danford 09193d9e4b cleanup:
use references when passing NoteData
  Have player own a NoteDataWithScoring, not derive from it
2004-10-23 17:43:49 +00:00
Glenn Maynard 8a0df6bb27 fix warnings 2004-09-21 08:41:17 +00:00
Chris Danford 03fbb915f3 remove VC6 scoping hacks 2004-09-21 07:53:39 +00:00
Chris Danford 807d892f4f allow theme to specify logical screen dimensions 2004-09-21 06:07:12 +00:00
Chris Danford d2a54cca31 make TapNote a struct. Over time, more properties will move from the enums and into bit flags. 2004-09-12 05:56:24 +00:00
Glenn Maynard 649b3df153 handle IET_LEVEL_CHANGED 2004-09-09 22:21:50 +00:00