phaser3学习笔记:camera

相机管理器是场景插件,负责管理场景中的所有相机。默认通过`this.cameras`访问。相机可以设置大小、位置、旋转和缩放。视口定义相机在游戏中的物理位置,滚动值决定看向何处。默认相机渲染所有可见对象,可通过`ignore`方法筛选。相机支持淡入淡出、闪烁、震动、平移和缩放等特效。前31个创建的相机能独立过滤游戏对象,超过此数量的相机无法忽略对象。
摘要由CSDN通过智能技术生成

#### camera文档描述

The Camera Manager is a plugin that belongs to a Scene and is
responsible for managing all of the Scene Cameras.

By default you can access the Camera Manager from within a Scene using
this.cameras, although this can be changed in your game config.

Create new Cameras using the add method. Or extend the Camera class
with your own addition code and then add the new Camera in using the
addExisting method.

Cameras provide a view into your game world, and can be positioned,
rotated, zoomed and scrolled accordingly.

A Camera consists of two elements: The viewport and the scroll values.

The viewport is the physical position and size of the Camera within
your game. Cameras, by default, are created the same size as your
game, but their position and size can be set to anything. This means
if you wanted to create a camera that was 320x200 in size, posi

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值