dc26f6c131
TextField updates, and bug fixes from some recent commits. - Added modified copy of slick.gui.TextField: added CTRL+BACKSPACE for word deletion, and disabled left/right arrows to move cursor and CTRL+Z to undo. - Fixed musicEnded() incorrectly setting the "trackEnded" upon swapping tracks. This has caused some nasty loops since #38. - Fixed a null pointer exception in OsuDB from 0b03912. - Fixed the song menu search bar transition being incorrectly reset when hitting backspace on a 0-length query.
Jeffrey Han
2015-03-08 16:34:28 -04:00
0b03912b7a
Keep track of beatmap cache size. The minimum batch loading size is now based on the beatmap cache size instead of an arbitrary constant.
Jeffrey Han
2015-03-08 13:36:26 -04:00
f9878f4fa4
More optimizations: don't load OsuFile array fields until needed. When cached, defer loading of timing points, breaks, and combo colors until directly before a game. Potentially cuts loading time by 50%, and saves a bit of memory.
Jeffrey Han
2015-03-08 03:05:01 -04:00
f8e91cba64
Added error() method to DownloadListener interface. Downloads failing due to connection errors will now send a bar notification instead of throwing an ErrorHandler dialog.
Jeffrey Han
2015-03-07 23:57:18 -05:00
cfd335de88
Merge pull request #39 from fluddokt/omaster
Jeffrey Han
2015-03-07 23:28:28 -05:00
40a800eb76
Changed cached OsuFile loading. Instead of being loaded individually from the database, OsuFiles are now loaded in batch by traversing the database. In most cases, this should cause a ~10% loading speed improvement. Defaults to the previous approach if few OsuFiles are being loaded.
Jeffrey Han
2015-03-07 23:24:19 -05:00
421cfad6ad
Fixes some sliders with too much control points.
fd
2015-03-07 20:54:16 -05:00
c6041d8cba
Added more checks for failed database connections. Should prevent unnecessary null pointer exceptions if anything goes wrong.
Jeffrey Han
2015-03-07 20:39:27 -05:00
64755bbc5c
Attempts to load music with incorrect file names. #33
fd
2015-03-07 19:45:56 -05:00
8c24ef97c7
Follow-up to #38: loop tracks on states by default.
Jeffrey Han
2015-03-07 19:04:45 -05:00
447fd93e60
Merge pull request #38 from fluddokt/omaster
Jeffrey Han
2015-03-07 18:43:58 -05:00
5e9d9a491c
SQLite optimizations. (addressing #34) - Added indexes. - Only call OsuDB.insert() if necessary. - Drop/recreate indexes for batch inserts. - Added pragmas for "locking_mode" and "journal_mode".
Jeffrey Han
2015-03-07 18:05:18 -05:00
4718cb9aa5
Follow-up to #37. - Removed 'currentObject' parameter from HitObject.draw() since it's no longer used. - Changed "spun out" rpm. - Formatting changes.
Jeffrey Han
2015-03-07 15:38:59 -05:00
11b5c41b46
Next track on trackEnded (but checks trackended every update...) Continue playing while minimized(does not fix moving) start from preview time in songMenu on repeat
fd
2015-03-07 13:29:29 -05:00
f4d17b9148
Merge pull request #37 from fluddokt/SpinnerTest
Jeffrey Han
2015-03-07 15:11:16 -05:00
133608dd43
Follow-up to #31: added more reserved keys.
Jeffrey Han
2015-03-07 14:24:26 -05:00
04cca79b46
Merge pull request #31 from ScoreUnder/tweak-remove-key-restriction
Jeffrey Han
2015-03-07 14:10:28 -05:00
cf6e87f6f2
Support case-insensitive audio file names. (fixes#33)
Jeffrey Han
2015-03-07 13:13:32 -05:00
078b765143
Added an automatic updater for new releases. opsu! will now check for updates upon launching, and will prompt the user to download and run a newer version, if available. - The remote version file is just the filled "version" file, currently located in the gh-pages branch. - The new version is downloaded to the working directory, and launched with ProcessBuilder.
Jeffrey Han
2015-03-07 04:17:19 -05:00
9271e0d473
Disallow escape as click key, move validity checks into Options.java
Score_Under
2015-03-07 04:49:59 +00:00
9138b70a24
Minor GameContainer changes. Added copy of GameContainer.java: - updateAndRender() no longer calls Log.error(), and re-throws the original exception as a SlickException. This prevents errors from being logged twice, and now the relevant one is shown in the error popup (instead of a useless "failure" message). - getBuildVersion() no longer calls Log.error(), and removed slick build information from "version" file.
Jeffrey Han
2015-03-06 19:16:43 -05:00
3df08e5357
Write build information to "version" file and auto-fill error forms. - Maven version and build date are now written to "res/version". - The GitHub Issues form is auto-filled with error information if available. (reference: fluddokt/opsu@53fe3d9)
Jeffrey Han
2015-03-06 15:55:15 -05:00
6cd6938ea5
Preload game images directly before a game. (undo 95775d8) Not noticing any bad effects from this anymore. The application should load faster again.
Jeffrey Han
2015-03-06 14:39:49 -05:00
7fb326d870
Merge pull request #28 from fluddokt/omaster
Jeffrey Han
2015-03-06 02:41:32 -05:00
81601d41aa
Implemented various keyboard shortcuts. - Main menu: -- 'd': opens downloads menu -- 'r': plays random track - Song menu: -- SHIFT+DEL: opens beatmap deletion menu
Jeffrey Han
2015-03-06 01:29:50 -05:00
0a1b10fbdb
Implemented "relax" mod. Also added a few checks for related "autopilot" mod (probably incomplete).
Jeffrey Han
2015-03-06 00:25:48 -05:00
b80764f3eb
Added a DownloadListener interface and more bar notifications. Notifications are now sent when a download is complete and when new songs are imported in the downloads menu.
Jeffrey Han
2015-03-05 15:36:36 -05:00
cf9b22442f
Added global F7 and F10 shortcuts. - F7: cycles through FPS settings. - F10: toggles mouse enable/disable state during gameplay.
Jeffrey Han
2015-03-05 14:40:57 -05:00
235adc539e
Extracted UI components from Utils into a separate UI class. Added draw(), update(), and enter() methods in UI to do all the necessary calls (instead of letting the states handle them).
Jeffrey Han
2015-03-05 13:27:45 -05:00
fb5515efb8
Added bar notifications. Currently used in main menu music buttons.
Jeffrey Han
2015-03-05 12:44:10 -05:00
ebf629d261
Updated to JarSplicePlus v1.1. Fixed an issue where the META-INF directory was not being copied, causing problems with mp3spi.
Jeffrey Han
2015-03-04 23:26:49 -05:00
f515924b8d
Added gh-pages link in README.
Jeffrey Han
2015-03-04 22:36:48 -05:00
dbc24c403b
Added a Slick2d 'version' file to silence the errors.
Jeffrey Han
2015-03-04 22:08:40 -05:00
4959510b5d
Deleting beatmaps/groups now also deletes them from the cache.
Jeffrey Han
2015-03-04 21:45:44 -05:00
3216c4d1ac
Minor improvements in tab appearance. Centered the text and spread out the tabs in the options menu.
Jeffrey Han
2015-03-04 21:21:53 -05:00
bf04083ebd
Added a beatmap cache database. - New database ".opsu.db" stores a cached copy of all parsed beatmaps. All data will be read from this database unless the last modified time of a beatmap file does not match the one in the table. - OsuParser inserts all new entries to the database in batch after parsing. - Added *toString()/*fromString() methods for 'breaks', 'timingPoints', and 'combo' fields in OsuFile for use with the database. - For any database format changes, update the DATABASE_VERSION field in OsuDB. - Reloading beatmaps (F5) will now clear the beatmap cache.
Jeffrey Han
2015-03-04 21:03:06 -05:00
5626cd1699
Added a "pop" effect to the combo counter. Also changed drawSymbolString() and drawFixedSizeSymbolString() methods slightly: coordinates are now floats, and drawSymbolString() takes an 'alpha' argument.
Jeffrey Han
2015-03-04 01:30:28 -05:00
d468a81c92
Attempt to fix jitter by using a higher precision timer.
fd
2015-03-03 22:07:00 -05:00
11e555492e
Simplified Options class. - Boolean and integer option values are now stored in a GameOption field instead of individual static fields in the Options class. - Added default method bodies for getValueString(), click(), and drag() based on the option type.
Jeffrey Han
2015-03-03 00:40:51 -05:00
de949ef11c
Added options to disable the mouse wheel or mouse buttons during gameplay. - Clicking the mouse wheel now pauses the game (with these options disabled). - Created an "Input" category in the options menu.
Jeffrey Han
2015-03-02 22:12:57 -05:00
4bf5943ee0
Follow-up to #27. - Removed 'isSpinner' field from GameData.hitResult() since it's now being passed the full OsuHitObject. - Minor Javadoc fixes.
Jeffrey Han
2015-03-01 13:58:03 -05:00
33e880df77
Merge pull request #27 from fluddokt/AudioTest
Jeffrey Han
2015-03-01 13:20:15 -05:00
c543ddea01
Follow-up to #25. - Moved all MultiClip-handling methods into the MultiClip class. - Destroy extra clips when starting and finishing new beatmaps. - Reduced maximum number of extra clips to 20. - Attempted fixes at multithreading issues.
Jeffrey Han
2015-03-01 00:03:06 -05:00
540b1c49f0
Merge pull request #25 from fluddokt/AudioTest
Jeffrey Han
2015-02-28 21:08:21 -05:00
955a184d2c
Global max clips reuse clips close extraclips in ranking
fd
2015-02-28 18:28:58 -05:00
abde932b06
Merge pull request #26 from fluddokt/omaster
Jeffrey Han
2015-02-27 22:39:30 -05:00
9c2c5e309a
Half fix for some sliders which doesn't have enough distance in the curve to reach the end.
fd
2015-02-27 00:04:58 -05:00
fbce0391a8
Allows multiple instance of the same clip to be played simultaneously.
fd
2015-02-26 23:37:30 -05:00
ad5277882e
Added method for drawing tooltips. Currently used for game mods and the music buttons in the main menu.
Jeffrey Han
2015-02-26 02:06:34 -05:00
148400b75d
Updated README with links to the libGDX port for Android.
Jeffrey Han
2015-02-26 00:04:54 -05:00
4f0f093b75
Very slightly tweaked slider rendering. Increased color alpha level, and don't fade the begin/end circles.
Jeffrey Han
2015-02-23 18:12:31 -05:00
51620772c0
Updating version to 0.6.0.
Jeffrey Han
2015-02-21 22:30:47 -05:00
36574cc073
Switched jlayer to com.googlecode.soundlibs.
Jeffrey Han
2015-02-21 22:27:16 -05:00
64f5d5032d
Merge pull request #23 from fluddokt/omaster
Jeffrey Han
2015-02-21 22:07:10 -05:00
27f5454afb
Fixes Music Ended (hopefully)
fd
2015-02-21 20:20:57 -05:00
2825f4c885
Fixes Music Ended (hopefully)
fd
2015-02-21 20:14:48 -05:00
163e72d423
Made sliders very slightly easier. Sliders no longer need to be held to the end, but near it (within a 300-hit offset) for perfect hit.
Jeffrey Han
2015-02-21 17:12:18 -05:00
00b98e07d6
Image loader fixes. Image locations are now searched separately and in order, instead of just relying on ResourceLoader. Fixes issues with some images in the skins directory not being loaded at all, as well as image arrays being loaded from mixed locations.
Jeffrey Han
2015-02-21 11:40:25 -05:00
96e27171e9
Support loading MP3 sound effects. Also some minor formatting changes from #22.
Jeffrey Han
2015-02-21 09:58:56 -05:00
d268008d7a
Merge pull request #22 from fluddokt/AudioTest
Jeffrey Han
2015-02-20 23:45:23 -05:00
020dfbde32
Spinner updates and animated score percentage display. - Added spinner RPM display. (image by @kouyang) - Added "osu!" image for completed spinners. - Changed spinner hit result ratios to be slightly harder.
Jeffrey Han
2015-02-20 16:56:41 -05:00
e6f85e9c5c
Hit error bar changes. - Always show the bar until no ticks are left. - Fade out the bar. - Moved from "Custom" options into "Gameplay". - Separated drawing from update logic.
Jeffrey Han
2015-02-20 15:08:16 -05:00
dfeb93d696
Follow-up to ab1a377: now using Graphics.setClip(). Partial revert of changes made in that commit; also made song menu header/footer partially transparent again. Thanks to @fluddokt.
Jeffrey Han
2015-02-19 23:45:48 -05:00
80c66a98c3
Added methods to check for transparent pixels in images. This is currently being used for the logo/play/exit buttons in the main menu.
Jeffrey Han
2015-02-19 15:05:55 -05:00
ab1a377be0
Minor graphical changes. - Added a simple color change when hovering over an option in the options menu. - Draw part of the song button before the start node, if any, for a more complete-looking scroll animation.
Jeffrey Han
2015-02-19 02:43:26 -05:00
25a7a826f1
More graphical updates, some code cleanup, and minor fixes. - The MenuButton class now fully supports hover effects (scale, fade, rotate) for Animations. - Used a fixed location for the selection buttons in the song menu (previously based on the "back" button width, which varies widely in different skins). - Added hover effects for "retry" and "exit" buttons in the ranking screen. - Changed animation speed of back/skip buttons. - Fixed a bug where main menu showed the incorrect number of songs loaded during searches. - Removed unneeded draw() methods in Utils for color filters (since 69f5aa5). - Moved Utils.drawCentered(Image, ...) into the Image class. - Added overwritten Image class to Maven excludes.
Jeffrey Han
2015-02-19 00:33:32 -05:00
1a4120a736
Follow-ups to #21. - Reverted "Extends ScoresData bg to clock", as this was intended behavior. - Fixed overlapping text in the options menu, and made it look more similar to the other menus. - Fixed issues with the text and icon in the song menu header in certain resolutions. - Fixed minor issue with ranking screen header text positioning. - Decreased skip button hover scale. - Some code style changes.
Jeffrey Han
2015-02-18 19:35:26 -05:00
f2ac160dfa
Merge pull request #21 from fluddokt/omaster
Jeffrey Han
2015-02-18 17:40:13 -05:00
678a2ad681
Mp3 wav through mp3spi May have fixed loading some other unique audio.
fd
2015-02-17 19:03:48 -05:00
1dc71aaa7f
Merge quick bad fix
fd
2015-02-17 22:54:20 -05:00
ffed4b260a
Back and Skip animation removed minimum time before skip button is shown.
fd
2015-02-17 22:03:11 -05:00
69f5aa5748
Added a separate Game Mods menu. - Replaces the mods being shown in the options menu. - Added all the (base) mod icons to the menu, with the unimplemented ones grayed out. - Added a rotation effect to MenuButton, and now multiple effects can be set at once.
Jeffrey Han
2015-02-16 17:53:24 -05:00
e02b195b71
Hard coded Ranking Panel Hard coded Scorebar Made MenuButtonBG colours darker Extends ScoresData clock bg More General Scaling
fd
2015-02-16 11:34:35 -05:00
329d54c230
Minor changes. - Replaced duplicate GameImage.process_sub() calls from related images with calling a single method, for easier editing. - Suppress warnings from overwritten Slick2D classes.
Jeffrey Han
2015-02-16 01:24:22 -05:00
66016160a4
Song menu graphical updates. - Added "selection-*" images from Xiaounlimited's "Nexus Ivory" skin. These do the same thing as the F1-F3 keyboard buttons in the song menu. - Removed the old wrench icon and replaced it with an "Other Options" button. F1 no longer opens the options menu. - Moved the search bar to under the tabs and better simulate osu! behavior. Removed the old search icon. - Added solid black bars at the top and bottom of the song menu. Moved the top divider closer to the end of the information text. Cropped song button images to fit between the bars.
Jeffrey Han
2015-02-15 21:38:54 -05:00
fff0080ddc
Combo Color ordering General Image scaling Score fixed size width
fd
2015-02-15 18:51:07 -05:00
4826798fba
Reformatting of #20, and disable the hit error bar by default. Added an option (in the "Custom" tab) to enable the bar.
Jeffrey Han
2015-02-15 01:40:01 -05:00
b7f86f1962
Merge pull request #20 from fluddokt/omaster
Jeffrey Han
2015-02-15 00:45:43 -05:00
c2793ae31c
Some graphical improvements and fixes. - The music position bar in the main menu is now clickable (changes track position). - Fixed scroll bar height function, and merged all scroll bar drawing into a single Utils.drawScrollbar() method. - Fixed the buggy song menu scroll bar. - Scaled the sizes/positions of the main menu music icons (previously fixed/hardcoded).
Jeffrey Han
2015-02-15 00:25:07 -05:00
5a2fbd82fa
Removed Hit Error Bar during breaks Keep Hit Error Ticks inside bar Removed Miss Locations
fd
2015-02-14 22:15:41 -05:00
8c3604d4db
Visual changes #2 Fill bg image to screen while keeping aspec ratio Added a few more resolutions
fd
2015-02-14 14:10:47 -05:00
597c4bfb19
Visual Changes mostly personal preferences though
fd
2015-02-14 13:45:14 -05:00
54806303f4
Reformatting of #17 and #18, and minor bug fix in #17. Fixed not losing any health at near-zero rotation angles.
Jeffrey Han
2015-02-14 01:07:17 -05:00
2c59b345b5
Merge pull request #17 from PizzaLovers007/master
Jeffrey Han
2015-02-14 00:37:55 -05:00
885f8bb8c5
Merge pull request #18 from fluddokt/omaster
Jeffrey Han
2015-02-14 00:25:25 -05:00
3a5f66ba81
close mp3 file handles.
fd
2015-02-13 23:17:33 -05:00
e88ebbbea2
Removed extra debug code
PizzaLovers007
2015-02-13 21:48:11 -06:00
c891cbeafa
Changed spinner calculations again
PizzaLovers007
2015-02-13 21:46:17 -06:00