Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
69 matches across 7 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | …nderer/webgl/wrappers/WebGLTextureUnitsWrapper.test.js | 397 | var nullBindCalls = renderer.gl.bindTexture.mock.calls.filter(function (call) |
| CRITICAL | …nderer/webgl/wrappers/WebGLTextureUnitsWrapper.test.js | 425 | renderer.gl.bindTexture.mock.calls.forEach(function (call) |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 119 | scene.sys.cache.xml.get.mockReturnValue(null); |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 137 | scene.sys.cache.xml.get.mockReturnValue(undefined); |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 147 | scene.sys.cache.xml.get.mockReturnValue(null); |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 222 | scene.sys.cache.xml.get.mockReturnValue(null); |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 247 | scene.sys.cache.xml.get.mockReturnValue(mockXml); |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 261 | scene.sys.cache.xml.get.mockReturnValue(mockXml); |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 272 | scene.sys.cache.xml.get.mockReturnValue(mockXml); |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 25 | - Apply a Blocky filter to the camera: `this.cameras.main.filters.external.addBlocky({ size: 8 });` |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 29 | - Apply a Pixelate filter to the camera: `this.cameras.main.filters.external.addBlocky(6);` |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 245 | - `this.cameras.main.filters.external.addBlocky({ size: 8 });` |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 261 | `this.cameras.main.filters.external.addPixelate(6);` |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 278 | this.cameras.main.filters.external.addQuantize({ |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 316 | - Apply a Blocky filter to the camera: `this.cameras.main.filters.external.addBlocky({ size: 8 });` |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 320 | - Apply a Pixelate filter to the camera: `this.cameras.main.filters.external.addBlocky(6);` |
| CRITICAL | src/filters/Blend.js | 106 | var phaserTexture = this.camera.scene.sys.textures.getFrame(texture); |
| CRITICAL | src/filters/Mask.js | 283 | var phaserTexture = this.camera.scene.sys.textures.getFrame(texture); |
| CRITICAL | src/filters/ImageLight.js | 172 | var phaserTexture = texture instanceof Phaser.Textures.Texture ? texture : this.camera.scene.sys.textures.getFra |
| CRITICAL | src/filters/ImageLight.js | 193 | var phaserTexture = texture instanceof Phaser.Textures.Texture ? texture : this.camera.scene.sys.textures.getFra |
| CRITICAL | src/filters/CombineColorMatrix.js | 122 | var phaserTexture = texture instanceof Phaser.Textures.Texture ? texture : this.camera.scene.sys.textures.getFra |
| CRITICAL | src/filters/Displacement.js | 104 | var phaserTexture = this.camera.scene.sys.textures.getFrame(texture); |
| CRITICAL | src/filters/Wipe.js | 257 | this.wipeTexture = this.camera.scene.sys.textures.get(texture) || this.camera.scene.sys.textures.get('__DEFA |
| CRITICAL | src/renderer/webgl/renderNodes/ShaderQuad.js | 165 | var baseShader = this.manager.renderer.game.cache.shader.get(vertexKey); |
| CRITICAL | src/renderer/webgl/renderNodes/ShaderQuad.js | 183 | baseShader = this.manager.renderer.game.cache.shader.get(fragmentKey); |
| CRITICAL | …renderer/webgl/renderNodes/filters/BaseFilterShader.js | 54 | var baseShader = manager.renderer.game.cache.shader.get(fragmentShaderKey); |
| CRITICAL | src/gameobjects/video/Video.js | 614 | var video = this.scene.sys.cache.video.get(key); |
| CRITICAL | src/gameobjects/bitmaptext/static/BitmapText.js | 111 | var entry = this.scene.sys.cache.bitmapFont.get(font); |
| CRITICAL | src/gameobjects/bitmaptext/static/BitmapText.js | 835 | var entry = this.scene.sys.cache.bitmapFont.get(key); |
| CRITICAL | src/loader/filetypes/VideoFile.js | 53 | var urlConfig = loader.systems.game.device.video.getVideoURL(url); |
| CRITICAL | src/sound/html5/HTML5AudioSoundManager.js | 175 | this.game.cache.audio.entries.each(function (key, tags) |
| CRITICAL | src/sound/html5/HTML5AudioSoundManager.js | 215 | _this.game.cache.audio.entries.each(function (key, tags) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/scale/ScaleManager.js | 553 | // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds |
| HIGH | src/scale/ScaleManager.js | 780 | // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds |
| HIGH | src/scale/ScaleManager.js | 845 | // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | types/index.d.ts | 1 | /// <reference types="./phaser" /> |
| LOW | tests/textures/parsers/PVRParser.test.js | 1 | var PVRParser = require('../../../src/textures/parsers/PVRParser'); |
| LOW | tests/textures/parsers/KTXParser.test.js | 1 | var KTXParser = require('../../../src/textures/parsers/KTXParser'); |
| LOW | src/textures/parsers/VerifyCompressedTexture.js | 161 | // ATC internal formats: |
| LOW | src/plugins/BasePlugin.js | 81 | // Here are the game-level events you can listen to. |
| LOW | src/tweens/tween/ReservedProps.js | 1 | /** |
| LOW | src/tweens/builders/GetValueOp.js | 261 | // y: { value: 300, ... } |
| LOW | src/gameobjects/BuildGameObjectAnimation.js | 41 | } |
| LOW | src/gameobjects/blitter/BlitterFactory.js | 41 | // this.displayList - a reference to the Display List the Scene owns |
| LOW | …objects/bitmaptext/dynamic/DynamicBitmapTextFactory.js | 61 | // this.scene - a reference to the Scene that owns the GameObjectFactory |
| LOW | src/gameobjects/pathfollower/PathFollowerFactory.js | 41 | |
| LOW | src/gameobjects/text/TextCreator.js | 41 | // backgroundColor: [ 'backgroundColor', null ], |
| LOW | src/gameobjects/extern/ExternFactory.js | 41 | // this.scene - a reference to the Scene that owns the GameObjectFactory |
| LOW | src/gameobjects/captureframe/CaptureFrameFactory.js | 41 | // this.displayList - a reference to the Display List the Scene owns |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/renderer/webgl/wrappers/WebGLVAOWrapper.test.js | 59 | function makeAttributeBufferLayout (layouts, opts) |
| LOW | tests/input/keyboard/KeyboardPlugin.test.js | 4 | function createMockSceneInputPlugin () |
| LOW | tests/tilemaps/parsers/tiled/ParseTilesets.test.js | 39 | function makeCollectionTilesetJSON(overrides) |
| LOW | …sts/tilemaps/components/HexagonalWorldToTileXY.test.js | 30 | function makeLayerWithTilemapLayer (overrides) |
| LOW | tests/tilemaps/components/WorldToTileX.test.js | 16 | function makeLayerWithTilemapLayer (tileWidth, tileHeight, layerX, layerY, scaleX, scaleY, scrollFactorX) |
| LOW | …sts/tilemaps/components/HexagonalTileToWorldXY.test.js | 20 | function makeLayerWithTilemapLayer (staggerAxis, staggerIndex, layerOptions, cameraOptions) |
| LOW | tests/sound/webaudio/WebAudioSound.test.js | 44 | function createMockStereoPannerNode () |
| LOW | tests/sound/webaudio/WebAudioSound.test.js | 59 | function createMockBufferSourceNode () |
| LOW | tests/animations/AnimationState.test.js | 59 | function createMockAnimationManager () |
| LOW | …derer/webgl/wrappers/WebGLVertexBufferLayoutWrapper.js | 32 | initialize: function WebGLVertexBufferLayoutWrapper (renderer, layout, buffer) |
| LOW | src/physics/matter-js/poly-decomp/index.js | 610 | function polygonRemoveCollinearPoints(polygon, precision){ |
| LOW | src/physics/matter-js/poly-decomp/index.js | 627 | function polygonRemoveDuplicatePoints(polygon, precision){ |
| LOW | src/data/DataManager.js | 31 | * @class DataManager |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/setup.js | 13 | // ── Globals that jsdom doesn't provide ────────────────────────────────────── |
| MEDIUM | tests/setup.js | 46 | // ── Image mock ────────────────────────────────────────────────────────────── |
| MEDIUM | tests/setup.js | 92 | // ── Canvas 2D Context mock ────────────────────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/gameobjects/particles/ParticleEmitter.js | 1880 | // emitZone: { type: 'edge', source: X, quantity: 32, [stepRate=0], [yoyo=false], [seamless=true], [tot |
| MEDIUM | src/gameobjects/particles/zones/EdgeZone.js | 107 | * @name Phaser.GameObjects.Particles.Zones.EdgeZone#seamless |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/renderer/webgl/renderNodes/RenderNode.js | 89 | * Don't forget to call it in your custom method. |
| LOW | src/renderer/webgl/renderNodes/RenderNode.js | 102 | * Don't forget to call it in your custom method. |