Log In  
Follow
xnphls
Follow

Cart #amongus-2 | 2020-10-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10
Just a little prototype of a character from Among Us who can bounce around and change their color.

First version:

Cart #amongus-1 | 2020-09-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

Update 1, 9/21/2020: made movement smoother and made shadow smaller.
Update 2, 10/3/2020:
-Normalized diagonal movement
-Added walk animation
-Added color select screen

P#82075 2020-09-22 02:05 ( Edited 2020-10-03 17:55)

Cart #bingocallsheetv1-0 | 2020-07-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Slapdash call sheet for a Zoom game of Bingo my mom's going to host with her coworkers from Liberty Mutual--hence the logo in the corner. I have some ideas for how to make it prettier:

  • randomization animation where it clicks through options before slowing down and settling on one
  • menu / game over screen
  • big blinking button to randomize--more tactile
P#80015 2020-07-28 03:21

I've just started experimenting with clipping and camera movement and it seems that when I move the camera, clipping rectangles I use on-screen don't appear to follow cleanly with the camera. I'm attaching a cart that shows what I mean. Arrow keys move the camera and Z / X reset it.

Moving the camera keeps the items I'm drawing in the correct position while failing to move the clipping rectangle.

Here is the cart:

Cart #pillspinstatic-0 | 2020-06-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

A rough fix: I got the camera coordinates:
cx, cy = %0x5f28, %0x5f2a

and used them to offset the clipping rectangle by those values:
clip (o.x - cx, o.y - cy, 11, 6)

I probably could just reuse the variables I moved the camera with for the fix, but I wanted a solution that wouldn't depend on those variables existing.

It works, but I wish there was a better way to make the clipping rectangle follow the camera.

Here is the cart with the fixed code:

Cart #pillspinfixed-0 | 2020-06-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Is this a known thing? Is this a bug or a feature? It's not crippling since I can just do the peek thing, but it bothers me >_>

Here's how the pills are supposed to spin, if you're curious. The weird clipping is even more wild when they're spinning as intended, especially when moving the camera vertically:

Cart #pillspinroll-0 | 2020-06-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#77856 2020-06-09 17:09 ( Edited 2020-06-09 17:13)

Follow Lexaloffle:        
Generated 2020-10-21 10:56 | 0.113s | 2097k | Q:86