Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprite Scalling #11

Open
ghost opened this issue Nov 23, 2015 · 0 comments
Open

Sprite Scalling #11

ghost opened this issue Nov 23, 2015 · 0 comments
Milestone

Comments

@ghost
Copy link

ghost commented Nov 23, 2015

I find interesting having a function to draw sprites in a scalled way.

For example, adding a new parameter to cpct_drawsprite:

cpct_drawSprite (void* sprite, void* memory, u8 width, u8 height, i8 scale)

So:

cpct_drawSprite (G_enemySprite, pvideo, 16, 16, 2)

Would draw a 32x32 sprite, doubling pixels.

Or:

cpct_drawSprite (G_enemySprite, pvideo, 16, 16, -2)

Would draw a 8x8 sprite, skipping pixels (for example) on the sprite.

This is just a simple implementation idea. Maybe it could be usefull to be able to use different scales for height and width.

@lronaldo lronaldo modified the milestone: 2.0 Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant