Commit Graph

26 Commits

Author SHA1 Message Date
Nathan Fulton
3ed85e5813 Game::ClearDisplay() null check gaclrFixed
gaclrFixed may be null if a game database is not found. Calling
GetColor() in this case may result in a crash.
2017-10-21 20:42:27 -04:00
Nathan Fulton
05f1755637 Add max FPS to game options 2017-10-21 20:41:49 -04:00
Nathan Fulton
7932f4cc00 Implement FPS cap 2017-10-21 20:41:48 -04:00
Nathan Fulton
119cf11f08 Add 24bpp color array
Change Color to dword and add gaclr24bpp
2017-10-21 20:40:28 -04:00
Nathan Fulton
dfc9e088f8 Remove old palette code 2017-10-21 20:39:57 -04:00
Nathan Fulton
71dd4eb5b5 Save preferences as json
Preferences have keys as defined in ht.h. These keys can be used to read/write preferences. Preferences are saved in a .json on the disk.
This is much easier to work with than the old presences binary structures as it doesn’t require preference versioning.
2017-10-21 20:36:37 -04:00
Nathan Fulton
122a2d198f Change gnScrollSpeed to float 2017-10-21 20:36:36 -04:00
Nathan Fulton
3ecad7c281 Accept the 2432 data directory 2017-10-21 20:36:35 -04:00
Nathan Fulton
4896fbe384 Read json fonts
A font.json maps characters to image file names. The Font class caches all the glyph images then draws the appropriate one(s) at blt time.
2017-10-21 20:28:29 -04:00
Nathan Fulton
97a84b8e27 Add texture atlas manager 2017-10-21 20:28:28 -04:00
Nathan Fulton
901a201a45 Refactor: ".tbm" -> ".png" 2017-10-21 20:28:27 -04:00
Nathan Fulton
7fa189e3da Use CreateTBitmap()
Replace:
- GetSharedTBitmap()
- LoadRawBitmap()
- LoadTBitmap()
2017-10-21 20:27:44 -04:00
Nathan Fulton
de281e5fd7 Remove old bitmap code
- DibBitmap
- HtBitmap
- RawBitmap
- Tbitmap
2017-10-21 20:27:23 -04:00
Nathan Fulton
31ca038021 Fix bug with simulation pause state and backgrounding 2017-10-21 02:54:14 -04:00
Nathan Fulton
891e6273ac In-game option to mute sound
In 1dceae4cf0ea47df5ee8ab24ae2fde2644527c43 the in-game mute option was
ignored. This has been undone because players requested a mute sound
button added to options.
2017-10-21 02:49:39 -04:00
Scott Ludwig
95046aaaee Use delete[] for arrays allocated with new[]. 2016-08-31 23:55:30 -04:00
Nathan Fulton
27f07f70f9 Improve backgrounding on SDL-iOS and SDL-Android
If the client is connected to multiplayer when the app is backgrounded,
that connection will be closed. If the app is reopened, a message will
be presented with the user informing them of the disconnection. Single
player games will be paused when entering background and resumed when
entering foreground.
2016-08-31 22:43:34 -04:00
Nathan Fulton
4aadbf87cb strings.h -> wistrings.h
Change strings.h to wistrings.h to prevent SDL.h from including it
while trying to include the CRT strings.h
2016-08-24 21:40:38 -04:00
Nathan Fulton
573c8aafd3 Update preprocessor checks to support SDL 2016-08-24 21:34:48 -04:00
Nathan Fulton
d34f08c6e5 Change default game speed to 2.0x 2016-08-24 16:20:31 -04:00
Nathan Fulton
380d8beb25 Change default account login for new devices to not anonymous
To encourage the use of accounts, new devices should be presented with
the login screen where they can create an account. New users can still
switch to anonymous login if they choose.
2016-08-24 16:20:31 -04:00
Scott Ludwig
5e43e0ba50 Ignore in-game mute
This was an old Palm timeframe setting. Now, sound might be muted
while exiting. This shouldn't be saved as a preference.
2016-01-21 22:11:53 -08:00
Scott Ludwig
f2d7002bc3 Restore game audio after OS events (dictation or siri) use audio
- Dictation reliable raises the handleAudioInterrupt notification, so that
  is used for disabling / enabling audio
- Siri sometimes doesn't raise the handleAudioInterrupt notification, so
  rely on applicationDidBecomeActive / applicationWillResignActive.
- Trial and error showed it is best to destroy and re-create the OS audio
  objects when audio is disabled / enabled.
2016-01-21 21:45:51 -08:00
Scott Ludwig
de950ccc46 Use scanf and printf compile time format string type checking; fix 64 bit bugs 2016-01-10 13:14:36 -08:00
Scott Ludwig
2186f473b5 Fix 64 bit compile warnings 2016-01-03 23:19:26 -08:00
Darrin Massena
f4c0203914 initial commit 2014-07-06 17:47:28 -07:00