article thumbnail

How to get an array of pixel colors from an image?

Cocos

I’m trying to make an effect of pixels appearing with transparency and sequence (first the “darkest” then the rest of the pixels). I want to achieve the effect - “so that the pixels, like water, fill the empty mouth of the river.” But I couldn’t get the array of pixel colors.

Pixel 52
article thumbnail

[Tutorial]Outer Stroke Effect for 2D Sprites

Cocos

Original: [link] Author: BitByBit Outer Stroke Effect for 2D Sprites Continuing from the previous article Inner Stroke Effect for 2D Sprites Introduction In the last article, we introduced the method of inner stroke and also discussed its pros and cons. First, we get the uv of the surrounding pixel through the offset uv.

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

Atari ST Programming: STOS BASIC Sprite Movement

Retro Game Coders

In the last part of this STOS BASIC Tutorial we loaded a sprite but it just sat there, let’s fix that … One of the ways that STOS BASIC helps us to build interactive programs and games is in the sprite movement features because they are not only easy, but they do their thing without our constant input. Why is this useful?

Sprite 52
article thumbnail

Sprite Object Shape question

Cocos

I had tried the mask method already with no luck… but you mentioning it here pushed me to go try it some more… actually, I still had no luck using the graphic stencil… but the graphic ellipse did the trick perfectly! You saved me so much time!

Sprite 40
article thumbnail

Module 3: Attack of the Snake (Lesson 10)

Game Designing

So open up your S p R block or really any of your sprites. And the reason for that is that this Sprite, the entire Sprite, all 32 pixels of it are actually inside of its own collision mask. And so if an object touches this Sprite, this collision mask, then the collision event gets triggered. That’s okay.

article thumbnail

Atari ST Graphics Programming with STOS BASIC

Retro Game Coders

I used to do my pixel art in Neo and general image editing in Degas. As I have chosen to scroll X by 8 pixels per scroll, this will scroll our on-screen text to the right. STOS Sprites. STOS has plenty of sprite features, including a provided sprite editor. Creating Your Pictures with Atari ST Drawing Apps.

article thumbnail

Atari ST Programming: A Simple Game in STOS

Retro Game Coders

Now we can move sprites in STOS we need to put things together to see how we can actually begin creating playable games. This isn’t intended to be super fun, just ensure we know how to have a bad guy sprite that can cause the game to end when our player character is eaten. Background Tiles and Beating the Sprite Limits.

Sprite 52