Commit Graph

4093 Commits

Author SHA1 Message Date
Anthony Calosa
e14afcc1aa unused import 2022-07-19 12:08:54 +08:00
Anthony Calosa
80a48b7c2c refactor Assets
- modify fps display to show card images re/loaded
- also restore basicland rewards
2022-07-19 11:36:00 +08:00
Anthony Calosa
8ce3b8921b Merge pull request #1139 from Card-Forge/saveInTowns
Allow saving from towns.
2022-07-19 11:11:21 +08:00
friarsol
121f7d8012 Allow saving from towns.
If you save from a town, make sure to restore the town as the current scene
2022-07-17 22:48:26 -04:00
Anthony Calosa
c05ea97822 update controls 2022-07-15 01:01:41 +08:00
Anthony Calosa
02f7b7f383 make avatar semi transparent inside tiledmap 2022-07-15 00:48:02 +08:00
Anthony Calosa
462c20af86 (Adventure) Double Tap Avatar to show Menu buttons
- useful for Android devices without navigation buttons (back key to show menu by default)
(Gesture detections like Edge detection needs AppCompatActivity which is missing on Forge Android)
2022-07-15 00:35:44 +08:00
Anthony Calosa
26d906a89a Support for preferred Skin sleeves 2022-07-14 14:12:45 +08:00
Anthony Calosa
bf481ea746 Update AdventurePlayer.java 2022-07-13 18:33:45 +08:00
Anthony Calosa
5c26394ad0 missing ";" 2022-07-13 18:28:19 +08:00
Austere Grim
5280e26066 Rebalance defeat gold loss (#1111)
added percent loss to defeated
changed gold loss to be calculated by a variable percentage loss not static divide by two.
2022-07-13 08:34:42 +03:00
Anthony Calosa
b2984de2d4 unused import 2022-07-12 23:33:12 +08:00
Anthony Calosa
5054ca19a8 add Card Auditer to Mobile 2022-07-12 23:15:59 +08:00
Anthony Calosa
7874178f8b add stretchedArt for saga/class/dungeon 2022-07-12 14:42:52 +08:00
Anthony Calosa
3ac2f00f46 prevent NPE 2022-07-12 10:23:17 +08:00
Anthony Calosa
9dd5d9282d move skin and art related objects to Assets 2022-07-11 10:53:14 +08:00
Anthony Calosa
31e089993d update ImageCache check
- update some variables, prevent NPE on font on reload
2022-07-10 22:14:41 +08:00
Anthony Calosa
edbef89cfa unused imports 2022-07-10 16:56:16 +08:00
Anthony Calosa
8cb8fb2bba refactor overlay to use text mode
- update assetmanager on resume
2022-07-10 16:44:59 +08:00
Anthony Calosa
00130296d8 use single assetmanager
- add seperate set to determine cards loaded
2022-07-10 13:35:17 +08:00
Anthony Calosa
2d607bf289 move skin and adventure fonts to Assets 2022-07-10 07:49:31 +08:00
Anthony Calosa
6915b0d7a4 adjust label width
should fix portrait mode
2022-07-09 20:27:56 +08:00
Anthony Calosa
421c210252 move tmx textures to Assets 2022-07-09 18:42:37 +08:00
Anthony Calosa
ffef4c6191 unused import 2022-07-09 17:23:35 +08:00
Anthony Calosa
3c4f31d37c remove extra 2022-07-09 17:17:07 +08:00
Anthony Calosa
2b9fa901c6 unused import 2022-07-09 17:15:36 +08:00
Anthony Calosa
2f4481e76f Merge branch 'master' into newmaster 2022-07-09 17:08:43 +08:00
Anthony Calosa
3e3abed344 misc moved to Assets 2022-07-09 17:01:20 +08:00
Anthony Calosa
fe5cc6f829 missing import 2022-07-09 16:54:55 +08:00
Anthony Calosa
e5727c60d5 revert override 2022-07-09 16:53:45 +08:00
Anthony Calosa
24069c2b2a Update SplashScreen.java 2022-07-09 16:45:45 +08:00
Anthony Calosa
b385fe8033 remove unused function 2022-07-09 16:40:07 +08:00
Anthony Calosa
4b5ebf2575 refactor libgdx static objects to be disposed
-fixes memory leaks since these objects are not properly disposed by the GC
-Textures, BitmapFonts and others should be disposed manually if not loaded in the assetmanager
2022-07-09 15:53:19 +08:00
Anthony Calosa
77678b4cbc Fix loading fallback_skin, delay setlookup file 2022-07-08 14:38:43 +08:00
Anthony Calosa
fed4ab99c1 add EvictingQueue for loaded images
-use the Queue as reference for removing old entries on the AssetManager
-fix cardArtCache storing forgeArt, should fix missing cardArt
2022-07-08 11:04:53 +08:00
Anthony Calosa
8e4cca7fe8 Update ImageCache.java 2022-07-07 21:37:05 +08:00
Anthony Calosa
acea266dc0 remove extra entries 2022-07-07 21:27:13 +08:00
Anthony Calosa
18e3def8b7 Refactor FSkin to use Assetmanager 2022-07-07 21:07:40 +08:00
Anthony Calosa
51b1391aee prevent NPE 2022-07-06 22:09:01 +08:00
Anthony Calosa
8ca8e145e4 remove static reference 2022-07-06 21:53:14 +08:00
Anthony Calosa
c838b60b7a Assets class 2022-07-06 21:32:37 +08:00
Anthony Calosa
b65c7607d4 clear generated cards 2022-07-06 17:55:47 +08:00
Anthony Calosa
b1e307747f remove loadingCache and use card assetmanager exclusively 2022-07-06 16:29:57 +08:00
Anthony Calosa
c81158530f add otherTextureManager 2022-07-06 15:10:00 +08:00
Anthony Calosa
616637d160 [Mobile] Assetmanager for card texture & texture atlas
- texture atlas manager for adventure & card texture manager for card images
- Assetmanager is automatically used except when UI_ENABLE_BORDER_MASKING = Full
- makes dispose textures option effective (free up some RAM)
2022-07-06 08:42:54 +08:00
Magpie
7667c4522d Adventure mode - Adjustments
* Fixed gold display on SpellSmithScene.java.
* Added Spirit Guard icon.
2022-06-24 09:23:01 +02:00
Magpie
d2fddb3ac5 Adventure mode - Adjustments
Reformatted Reward.java so it's cleaner to modify.
2022-06-24 08:22:04 +02:00
Magpie
babca60f2f Adventure mode - Adjustments
* Easy mode starts with Leather Boots instead of a Jungle Shield.
* Added boss flag for enemies.
* Fixed fences without collision.
* Purge all reward objects after leaving reward scenes, might fix reported leaks.
* Added spellsmith.
* Renamed Steel gear to Iron, renamed Mithril gear to Steel.
* Catch incorrect or non-existent items on load.
* Added ability to blacklist cards and editions from the card pool. This allows removing the Power Nine and other powerful or useless cards (like Commander specific ones).
* UI: Gave selectbox a 9patch background.
* Removed basic lands from rewards.
* Some adjustments to player and enemy avatars.
* Cleaning up of maps and removal of multi-area maps (cemeteries and crypt remain).
* Better cleanup of stale data in NG+ and on loading saved games.
* Random ColorID for fantasy mode.
* Reorganized AdventurePlayer.java so it's easier to modify.
* Colored bosses now give Moxen cards as opposed to items. The two final bosses still drop items.
* Colorless Castle moved to closer to the center of the map.
* Removed unused items.
* Tweaked value for sold items.
* Added Golem and Sliver shops.
* Corrected some misaligned sprites in the shop atlas.
* Added Skep with boss.
* Added mage tower in blue areas that requires the blue key for some good treasure.
* Update wastes and plains towns.
2022-06-24 08:20:22 +02:00
Anthony Calosa
64580cb7f3 refactor typo UI_APPLIED_VARIANTS 2022-06-23 10:40:34 +08:00
Anthony Calosa
a73ff0427c PlayerPanel sort by variant
- sort initialize method by last used variant on startup
2022-06-23 10:37:03 +08:00