Commit Graph
123 Commits
Author SHA1 Message Date
Anders Jenbo 893efd51ea Merge branch 'master' of github.com:diasurgical/devilution 2020-09-27 03:34:42 +02:00
Anders Jenbo 1ba96a6777 Add doxygen description to remaining engine files 2020-07-06 05:43:25 +02:00
Anders Jenbo 8c2fb7605e Use defines for tile and screen related magic numbers 2020-05-11 23:21:27 +02:00
Anders Jenbo 3b8bcf98bf Enable assertions 2020-04-11 15:22:40 +02:00
Anders Jenbo 776ab10476 Merge branch 'master' of github.com:diasurgical/devilution 2020-03-29 23:40:05 +02:00
galaxyhaxz c632e2d1d0 Names and bug fixes (#1974) 2020-03-12 04:32:53 +01:00
galaxyhaxzandRobin Eklind 71565b9c02 Several updates [enums+names] (#2002)
* Several updates

* Correct msg_get_next_packet

* Update enums.h

Co-Authored-By: Robin Eklind <[email protected]>

Co-authored-by: Robin Eklind <[email protected]>
2020-03-11 21:27:40 -05:00
Anders Jenbo e7e51abd13 Document remaning functions in render related files 2020-02-16 04:01:52 +01:00
Anders Jenbo dd64f18a49 Merge SetDungeonMicros and SetTownMicros 2020-02-16 02:32:44 +01:00
Anders Jenbo 25993b4043 Merge branch 'master' of github.com:diasurgical/devilution 2020-02-14 23:03:31 +01:00
Anders Jenbo 20621a0642 add all.h and use in place of diablo.h (#2005)
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.

Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
2020-02-14 13:12:54 +01:00
Anders Jenbo 0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
Anders Jenbo f4496aa7f9 Merge branch 'master' of github.com:diasurgical/devilution 2019-11-09 21:27:06 +01:00
galaxyhaxz 94a2f1e181 Nice huge commit 2019-11-04 15:30:43 -06:00
Anders Jenbo 4e8a8d2157 Merge remote-tracking branch 'refs/remotes/devilution/master' 2019-10-26 13:43:28 +02:00
Anders Jenbo 92ab05ea13 Decompose more magic numbers 2019-10-26 00:24:55 +02:00
Anders Jenbo 86bf1fe0d5 Correct spelling 2019-10-21 19:54:32 +02:00
Anders Jenbo 2348c3a8fd Documentations, enums and clean ups 2019-10-21 19:33:14 +02:00
Robin Eklind e155a9423e rename random to random_ to avoid collision with random in stdlib.h
Fixes #1813.
2019-10-21 09:56:36 +02:00
Anders Jenbo 8f916e4d1f Merge town_draw_town_all() with scrollrt_draw_dungeon() 2019-10-20 15:59:47 +02:00
Anders Jenbo 40fa2f6596 Merge east-flag functions 2019-10-20 15:59:47 +02:00
Anders Jenbo 16820106bc Merge town_draw() with scrollrt_draw()
This require calling DRLG_InitTrans() during CreateTown() to clear out
the transparancy flags after having been to the duntion. Else the
mausoleum will be transparent.
2019-10-20 15:59:47 +02:00
Anders Jenbo c44b2ee09f Merge town_clear_buf with world_draw_black_tile 2019-10-20 15:59:47 +02:00
Anders Jenbo 2079b67475 Drop dpiece_defs_map_1 memory access optimization
This also gets rid of IsometricCoord. They where used to map tiles in a
way that had a simpler access pattern when rendering the screen in
visual oriented rows.
See
https://github.com/diasurgical/devilution/pull/544#issuecomment-450968761
2019-10-20 15:59:47 +02:00
Anders Jenbo bfe0a54f4a Merge T_DrawView and T_DrawGame with there scrollrt variants 2019-10-20 15:59:47 +02:00
Anders Jenbo 7ab68036f2 Remove extra flag and double call to draw function 2019-10-20 15:59:47 +02:00
Anders Jenbo 337bc9b125 Render text in screen cordinates instead of buffer offsets 2019-10-20 15:59:47 +02:00
Anders Jenbo ad7a621e5f Drop PitchTbl to avoid resolution restriction 2019-10-20 15:59:47 +02:00
Anders Jenbo e695c0d9ea Combine zoomed and standard view 2019-10-20 15:59:47 +02:00
Anders Jenbo d4e3b573d0 Allow for adjustable resolutions
The render is still only stable when height is a multiple of 32 and
width is a multiple of 64. 832x480 gives you close to 16:9 with the
original height.
2019-10-20 15:59:47 +02:00
Anders Jenbo 9e1b161bc0 Unify upper and lower screen rendering 2019-10-20 15:59:47 +02:00
Anders Jenbo 8ed4515727 Strip clipping from town and scroll 2019-10-20 15:59:47 +02:00
Anders Jenbo 11e8df8f6c Deduplicate missile rendering code 2019-10-20 15:59:47 +02:00
Anders Jenbo 141bffe1dd Update town.cpp 2019-10-14 01:06:38 +02:00
Anders Jenbo a0baa92ef0 Merge branch 'master' of github.com:diasurgical/devilution 2019-10-13 19:59:26 +02:00
Anders Jenbo 6597688eac Rename cell functions 2019-10-13 13:31:56 +02:00
Anders Jenbo bf040777cb Make more use of cell helpers 2019-10-12 17:45:11 +02:00
Marlon Beijer d641c65562 Some fixes for Big Endian systems 2019-10-06 20:50:35 +02:00
Anders Jenbo c5a9917aee Merge branch 'master' of github.com:diasurgical/devilution 2019-09-17 03:29:59 +02:00
qndel 5fb15255a8 Apply enums to quests 2019-09-15 15:42:27 +02:00
Anders Jenbo 37785ed0fe Remove more redundant render code 2019-08-26 16:14:50 +02:00
Anders Jenbo f605138c79 Strip ASM code 2019-08-26 13:33:03 +02:00
Anders Jenbo 98ab9b9600 Merge branch 'master' of github.com:diasurgical/devilution 2019-08-18 08:07:33 +02:00
Anders Jenbo 68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Anders Jenbo 60ee365dff Merge branch 'master' of github.com:diasurgical/devilution 2019-07-20 19:52:50 +02:00
Anders Jenbo 3bc8ba66b0 Use defines for more screen geometry values 2019-07-20 17:10:49 +02:00
Xadhoom 148a7be44d Merge upstream branch 'devilution/master' 2019-07-10 17:04:38 +00:00
Anders Jenbo 55b5ce883d Clean up unformatted files 2019-07-08 04:28:31 +02:00
Anders Jenbo 32a51d17ca Align function signatures with PSX symbols
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
2019-07-08 04:12:12 +02:00
Anders Jenbo d2cb6a59e7 Apply scrollrt naming to town.cpp 2019-07-05 13:23:48 +02:00