Commit Graph

29 Commits

Author SHA1 Message Date
Nathan Fulton
00a92e2f6c Animation read updated anir structure
- StripData count is now dword
- Added chars for bitmap and bitmap2 name
- ibm and ibm2 are now words

acrunch max structure was updated in commit 33420b0970728fde92292c525e588cfbdffd7373
2017-10-21 20:40:28 -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
57c6e26ce2 Read RGBA TileMap data 2017-10-21 20:40:27 -04:00
Nathan Fulton
9662079334 Implement direction16 for mobile units 2017-10-21 20:40:26 -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
2ef0ab5ae8 Implement host file I/O
Host file I/O API to read files from disk
2017-10-21 20:28:31 -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
0cd8cff9c2 Change HtBitmap references to TBitmap 2017-10-21 20:27:45 -04:00
Nathan Fulton
da52f61897 Implement new TBitmap code
Texture bitmap, for storing information about images in texture atlases.
2017-10-21 20:27:24 -04:00
Nathan Fulton
bc8777e56e Implement new DibBitmap code
Implemented with SDL API
2017-10-21 20:27:23 -04:00
Nathan Fulton
de281e5fd7 Remove old bitmap code
- DibBitmap
- HtBitmap
- RawBitmap
- Tbitmap
2017-10-21 20:27:23 -04:00
Nathan Fulton
f7a4eb1d69 ht.h include yajl/wrapper/jsontypes.h 2017-10-21 20:27:05 -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
Nathan Fulton
d6b301c3e7 Track client platform version
Client platform version can be retrieved live with /ids and is also
recorded in the playerdetail module.
2016-08-31 23:54:48 -04:00
Nathan Fulton
31adbf1da0 Save reinitialize game on SDL-iOS when app is terminated 2016-08-31 22:43:35 -04:00
Nathan Fulton
72566c33bd Add server feature for clients to receive chats while in lobby
Clients can receive chats while in lobby state by having the shell form
present a HtMessageBox with the chat and the player is it from. This
feature was designed to be used with the moderator whisper command.
2016-08-31 22:43:35 -04:00
Nathan Fulton
abb1823956 Add /t server command for team chat
New command /t that can be used in game to send chats that only appear
to players on the same team. Observing players cannot use team chat.
2016-08-31 22:43:34 -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
573c8aafd3 Update preprocessor checks to support SDL 2016-08-24 21:34:48 -04:00
Nathan Fulton
8f0e81a3f5 Create main thread via host
Create the main thread via host rather than being a global variable in
base; this way, no base threads are created before the host runs main()
because that can cause issues on some platforms.
2016-08-24 16:20:31 -04: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
2186f473b5 Fix 64 bit compile warnings 2016-01-03 23:19:26 -08:00
Scott Ludwig
20706d0f36 Fix packing for Preferences 2016-01-01 14:08:28 -08:00
Scott Ludwig
a00848e6b9 Use default structure packing, rather than a universal 2. The system headers
don't work setting 2 universally. Fixing issues as I find them.
2016-01-01 13:57:23 -08:00
Darrin Massena
f4c0203914 initial commit 2014-07-06 17:47:28 -07:00