article thumbnail

Cocos Shader Tutorial 1.0 - about UV

Cocos

By default, the 3D Shader of Cocos will multiply the tile Tilling and add the Offset, and it also supports the flip repair for RenderTexture. _pass = this.node.getComponent(Sprite).material.passes[0]; Use the water wave effect on the 3D meshes This is only for 3D planes with tiled UV Mapping. x,waveFactor.y-uv0.y); x,waveFactor.y-uv0.y);

Shaders 98
article thumbnail

Module 2: Programming & Design Basics (Lesson 3)

Game Designing

So the parts that make up a 2D game are sprites, which are the images that you actually see and interact with and move tile sets, which are traditionally the background and the level design that you use Sounds, which are music and sound effects. Then you’ve got objects, which are basically everything you interact with.

Tile 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

Getting started with HaxeFlixel in 2021

Radiator Blog

The engine should be able to render and simulate 200+ lightweight game objects -- frame-animated sprites with simple collision, no fancy physics or shaders. Instead of MonoBehaviour, most of your scripts inherit from FlxSprite (or FlxNestedSprite if you need to parent sprites to each other) instead. and no WASM.)

Sprite 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.