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

Sonic 3 makes a fine holiday tradition | Why I Love

GamesIndustry.biz

Here, kids could hang out after school, buy a glass of Sprite for 50 German pfennig and get help with their homework. The local church blessed us by donating a Sega Mega Drive and it came with Sonic 3. I was about five years old when I started spending my afternoons at a youth centre in our little town in the East-German countryside.

Sprite 98
Insiders

Sign Up for our Newsletter

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

article thumbnail

intersectRect not working with a sprite if is a child?

Cocos

And the intersection is only detected with sprite C, so it seem that intersectRect() doesn’t work with a sprite if is a child. x); // Result: 240 CCLOG("%f y local position of spriteB", spriteA->getPosition().y); y); // Result: 320 CCLOG("%f x local position of spriteB", spriteB->getPosition().x); thanks, R

Sprite 40
article thumbnail

Load local device files (Audio)

Cocos

Trying to load local device files on an android device. successfully loaded the.png file, having an issue in loading.mp3. stopRecording = () => { console.log("clikced"); let clip = this.node.getComponent(AudioSource).clip; successfully loaded the.png file, having an issue in loading.mp3.

article thumbnail

The launch of Nairobbery leveraged a political revolution to highlight Kenyan talent

PreMortem.Games

Attendees who discovered the event through the viral tweet emphasized the power of social media in spotlighting local talent. He gave me the time I needed to perfect the sprites for Vicky and Flex. Macharia’s vision for Nairobbery goes beyond showcasing local talent; it aims to create new opportunities in the game development scene.

Media 129
article thumbnail

Strategies for Optimizing Multiplayer Games in Unity

Logic Simplified

The game enables multiplayer gameplay through two options: local mode or server-hosted online mode, allowing players to either connect directly on the same local network or join others via dedicated servers through automatic system pairing. Billboard Sprites reduces GPU processing through the use of simple models for distant objects.

Games 78
article thumbnail

sprite wars, gamers vs evil, and PAX

Interesting Choices

I'm calling the game Sprite Wars , and the rules set is a fairly simple modification of Tic-Tac-Toe. These are wildly different goals from most TCGs that you would find in your local store. You're probably raising one eyebrow and muttering something like, "Interesting." right about now.

Sprite 52