Making a prettier GUI
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Making a prettier GUI
by Chris H. » 08 Jul 2011, 15:25
`DennisBergkamp wrote:The reason the sounds were causing heap space errors was because it would create a new "MP3Player" object every single time a sound was played
Looking back I can remember finding the card shuffling code. I added in a call to play the shuffling card deck sound that I recorded. I think that the card shuffling code was set up to shuffle some number of times ... and with a new object being created each time the deck was shuffled ... java heap space errors.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Making a prettier GUI
by DennisBergkamp » 11 Jul 2011, 16:51
Yes, and even worse, a sound would be played anytime a card got tapped!
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Who is online
Users browsing this forum: No registered users and 58 guests