Commit Graph
60 Commits
Author SHA1 Message Date
alxpnv cd11578f2b ASYLUM: fix animation of floating bodies in Chapter 4
Bug no. 13558
2022-10-06 13:41:58 +03:00
alxpnv c5044f433c ASYLUM: fix formatting 2022-10-06 13:41:58 +03:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
alxpnv 2fd785c12c ASYLUM: add support for Sanitarium Demo 2021-08-30 15:50:15 +03:00
alxpnv 33cbf3b082 ASYLUM: fix calculation of object's sound source coordinates 2021-08-18 14:26:34 +03:00
Cameron Cawley 57dc4a08d1 ASYLUM: Fix compilation on AmigaOS 4 2021-05-17 19:56:18 +01:00
Eugene Sandulenko 22e949035b ASYLUM: Comment out unused variables 2021-05-17 16:19:35 +02:00
alxpnv c81c046450 ASYLUM: clean up destructors 2021-05-17 15:37:58 +02:00
alxpnv ac43968c47 ASYLUM: formatting 2021-05-17 15:37:55 +02:00
alxpnv b905953e5f ASYLUM: make FrameSoundItem::frameIndex unsigned 2021-05-17 15:37:53 +02:00
alxpnv 7654475f3d ASYLUM: finish implementation of Object::playSounds() 2021-05-17 15:37:49 +02:00
alxpnv b2a9192793 ASYLUM: make AsylumEngine::getRandom() generate a number from [0; max) to match the original 2021-05-17 15:37:49 +02:00
alxpnv 471ac0abfd ASYLUM: fix a few bugs in Object::update() 2021-05-17 15:37:42 +02:00
alxpnv 219dbbbee5 ASYLUM: fix reverse animation playback 2021-05-17 15:37:39 +02:00
Alex Bevilacqua 6004f808dc ASYLUM: add name to debug out for object inspection 2021-05-17 15:37:28 +02:00
Alex Bevilacqua 407c96b3d2 ASYLUM: fix warnings 2021-05-17 15:37:22 +02:00
Littleboy 341bf99614 ASYLUM: Cleanup Screen class 2021-05-17 15:37:21 +02:00
Littleboy ebfd32685b ASYLUM: Implement Object::saveLoadWithSerializer() 2021-05-17 15:37:17 +02:00
Littleboy d6883a89a1 ASYLUM: Implement WorldStats::saveLoadWithSerializer()
- Add stubs for saveLoadWithSerializer() for ActionArea, Actor, ActorData and Object classes
2021-05-17 15:37:17 +02:00
Littleboy 78f275d796 ASYLUM: Cleanup Scene and related classes 2021-05-17 15:37:15 +02:00
Littleboy 5b0da5965c ASYLUM: Cleanup more base classes 2021-05-17 15:37:15 +02:00
Littleboy 28363f844d ASYLUM: Reorganize SharedData
- Add accessors for most variables
 - Add stubs for set/getChapter2Data()
2021-05-17 15:37:13 +02:00
Julien Templier b15b5cb473 ASYLUM: Identify transparency field for Actor and Object
- Rename related script opcode and function
2021-05-17 15:37:03 +02:00
Julien Templier f011d86920 ASYLUM: Properly check for object flags when drawing
This fixes the actor appearing on top of the bed at the beginning
2021-05-17 15:37:01 +02:00
Julien Templier e212e20a6b ASYLUM: Fix ResourceEntry::getData() 2021-05-17 15:36:57 +02:00
Julien Templier 1db67c5c88 ASYLUM: Remove SVN keywords 2021-05-17 15:36:57 +02:00
Julien Templier 1526593cf0 ASYLUM: Replace several pairs of (x, y) parameters by Common::Point 2021-05-17 15:36:56 +02:00
Julien Templier 1b9c4dd404 ASYLUM: Add DrawFlags enumeration and update drawing functions parameters 2021-05-17 15:36:55 +02:00
Julien Templier 359794ec5d ASYLUM: Made several SharedData members public
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@700 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:42 +02:00
Julien Templier 51bf14d497 ASYLUM: Move Special and Speech instances to engine class
Also remove a couple of unused variables from Scene class

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@627 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:31 +02:00
Julien Templier b729447782 ASYLUM: Rename ActionList to ScriptManager and move to engine class
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@626 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:31 +02:00
Julien Templier 9e18348aae ASYLUM: Implement Scene::handleHit
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@625 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:31 +02:00
Julien Templier 787546f83d ASYLUM: Finish implementing Object::playSounds
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@615 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:29 +02:00
Julien Templier 2172d82d2e ASYLUM: Implement rest of game startup
- Add stubs for game loading & setup
- Add stub for sin/cos table initialization

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@609 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:28 +02:00
Julien Templier f8b4d22f7b ASYLUM: Move coordinate adjustement to Screen::drawGraphicsInQueue
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@597 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:26 +02:00
Julien Templier 9d195216a3 ASYLUM: Cleanup use of adjustCoordinates
Also add FIXME since the original doesn't add the frame coordinates
(we are missing code in the Screen class that would do it at drawing time)

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@596 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:26 +02:00
Alexandre Fontoura ce04e57184 ASYLUM: Revert previous commit!! Commented WorldStats xLeft and yTop from Scene::adjustCoordinates to correct actors and objects Scene scrolling positions.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@592 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:25 +02:00
Alexandre Fontoura a6178aa903 ASYLUM: Fixed Actors and Objects positions according with Scene screen scrolling.
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@591 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:25 +02:00
Julien Templier 2d04087fc2 ASYLUM: Add stubs for two more graphic queue methods
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@567 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:22 +02:00
Julien Templier 351c466746 ASYLUM: Rename direction enum values
Also rename Actor::getDirection to Actor::direction and cleanup code

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@566 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:21 +02:00
Julien Templier 5186ad9425 ASYLUM: Moved shared data to new structure
Some flags have a longer lifetime and should not be part of the scene instance.
Those are now part of the SharedData structure.
Also implements several actor::updateStatus methods, using the new shared data

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@548 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:19 +02:00
Julien Templier 3e6f065a91 ASYLUM: Cleanup Pass 3
- Add proper init code for Object & BlowUpPuzzle classes
- Use Common::Rational in a few more places
- Add casts & const modifiers in proper places

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@547 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:18 +02:00
Julien Templier 8528b9d964 ASYLUM: Cleanup Pass 2
- Add proper init code for WorldStats
- Add some missing deletes in destructors (in particular Scene)
- Add const modifiers & casts in several places
- Fix some off-by-one array accesses
- Add checks for NULL in several classes

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@546 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:18 +02:00
Julien Templier d38322ebca ASYLUM: Cleanup Pass 1
- Add proper init code in some classes
- Add some missing deletes in destructors
- Add const modifiers in several places
- Switch tick variables (and several others) to uint32
- Update Polygon struct slightly (with count() method instead of variable)

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@545 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:18 +02:00
Julien Templier 7c64f717ec ASYLUM: Add GraphicFrame helper functions
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@542 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:18 +02:00
Julien Templier 692ade2186 ASYLUM: Switch ActorDirection to an enumeration
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@541 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:18 +02:00
Alex Bevilacqua f5b8dfe959 ASYLUM: plug memory leak
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@540 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:17 +02:00
Arthur Blot 2fcf5167ac ASYLUM: Small fix for object and actor coordinates
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@539 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:17 +02:00
Julien Templier ea952cc33d ASYLUM: Implement Sound panning/adjustement methods
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@532 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:16 +02:00
Julien Templier d7c22354a6 ASYLUM: Add ResourceManager class
It will keep track of opened resource files and simplify handling of resource packs

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@513 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
2021-05-17 15:36:13 +02:00