Remove Debug Remove Localization Remove Sprite
article thumbnail

Cocos Shader Tutorial 1.0 - about UV

Cocos

Here are the implementation of water wave effects on 2D sprites and 3D meshes: Preview Link The math behind it is simple, the water wave is simulated by the Sin function, and then the fluctuation range is increased in the Update function. _pass = this.node.getComponent(Sprite).material.passes[0]; x,waveFactor.y-uv0.y); x,waveFactor.y-uv0.y);

Shaders 98
article thumbnail

How to Use Kaboom.js to Make Video Games

Game Designing

You can use the library to easily create scenes, add layers, build sprites, handle actions and collisions, add key events, and so much more. While other game developers might be able to tackle detailed coding requirements or easily debug code issues using their knowledge, Kaboom.js Load your Sprites and Create a Player.

Sprite 52
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Maintenance release: Godot 3.2.2

Mircosoft Game Dev

This drastically reduces drawcall-related bottlenecks and can give massive gains in specific scenarios (drawing lots of sprites, big TileMaps, text rendering). Top: 10,000 Sprites with a randomized modulate and position. Bottom: 8 layers of a screen full of "A"s with two Sprites intermixed. Can you spot the difference?

Debug 52
article thumbnail

Does Spine work with USE_INSTANCING?

Cocos

Hello, I’m working on a custom material/effect with a USE_INSTANCING branch that works on sprites, but does not work on a spine character. I’ve tried the different animation cache modes, and enable/disable batch. The effect is a duplicate of builtin-spine , with the instancing branches added and the two_color branch removed.

Texture 40
article thumbnail

[Share] 2D Post-Processing & Lighting Framework

Cocos

The most commonly used method involves rendering the camera to a RenderTexture (RT) and then displaying it on a Sprite. After all, light is just a localized brightening of the image. The technology is not complicated, but the number of points is more or less limited, and debugging is also troublesome. I tested it with an image.

Render 52
article thumbnail

D20 RPG – Positional Awareness

The Liquid Fire

As a side benefit, you can look at the script in the inspector and see the Entity’s id which may be useful for a variety of debugging purposes. Because of the grid-based nature of my game, I position my sprites at whole number coordinate positions like "(2, 3)". Therefore I needed to create my own array that could be re-used.