mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-30 03:00:51 +01:00
Updates
This commit is contained in:
parent
80daebc874
commit
be1c8bc90b
4
src/core/utils/NitroContainer.ts
Normal file
4
src/core/utils/NitroContainer.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import { Container } from 'pixi.js';
|
||||||
|
|
||||||
|
export class NitroContainer extends Container
|
||||||
|
{}
|
4
src/core/utils/NitroSprite.ts
Normal file
4
src/core/utils/NitroSprite.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import { Sprite } from 'pixi.js';
|
||||||
|
|
||||||
|
export class NitroSprite extends Sprite
|
||||||
|
{}
|
@ -1,7 +1,9 @@
|
|||||||
export * from './AdvancedMap';
|
export * from './AdvancedMap';
|
||||||
export * from './INitroPoint';
|
export * from './INitroPoint';
|
||||||
export * from './NitroAdjustmentFilter';
|
export * from './NitroAdjustmentFilter';
|
||||||
|
export * from './NitroContainer';
|
||||||
export * from './NitroFilter';
|
export * from './NitroFilter';
|
||||||
export * from './NitroPoint';
|
export * from './NitroPoint';
|
||||||
export * from './NitroRectangle';
|
export * from './NitroRectangle';
|
||||||
|
export * from './NitroSprite';
|
||||||
export * from './NitroTimer';
|
export * from './NitroTimer';
|
||||||
|
@ -1167,13 +1167,17 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
|
|||||||
|
|
||||||
if(!camera) continue;
|
if(!camera) continue;
|
||||||
|
|
||||||
|
let location: IVector3D = null;
|
||||||
|
|
||||||
const object = this.getRoomObject(instanceData.roomId, camera.targetId, camera.targetCategory);
|
const object = this.getRoomObject(instanceData.roomId, camera.targetId, camera.targetCategory);
|
||||||
|
|
||||||
if(!object) continue;
|
if(object) location = object.getLocation();
|
||||||
|
|
||||||
|
if(!location) continue;
|
||||||
|
|
||||||
if((instanceData.roomId !== this._activeRoomId) || !this._activeRoomIsDragged)
|
if((instanceData.roomId !== this._activeRoomId) || !this._activeRoomIsDragged)
|
||||||
{
|
{
|
||||||
this.updateRoomCamera(instanceData.roomId, 1, object.getLocation(), time);
|
this.updateRoomCamera(instanceData.roomId, 1, location, time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user