Log In  
Follow
wesleyparriott
[ :: Read More :: ]

Cart #cookiecrumbler-0 | 2023-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Cookie Crumbler

A small arkanoid clone where you help a cow try and get home

Goal

I spend an embarrassing amount of my time playing around splore and awhile back a lot of people were putting out
brick-break clones. There's a moment in brick-break where you have one brick left and you spend a lot of time trying to
get the last brick. I wanted to make a brick-break/arkanoid like game where you wouldn't have to deal with that
frustrating last-brick moment.

My Solutions

I tried to solve the goal two ways: ball direction based on where it hit the paddle and creating a explosion that moves
across the screen taking 1 hit off of every cookie hit.

Ball Direction Based on where it Hit the Paddle

In arkanoid your ball will go in different directions based on where you hit paddle. Meaning, if you hit the right most
of the paddle the ball would go more right than if you hit the paddle just right of the center. This is done by just
lerping -1 to 1 based on where the ball is on the paddle.

Explosion that Moves Across the Screen

When the ball is in play you can press the "x" button (or whatever you button you have set) to explode a jug. The
explosion creates a big circle that grows larger and takes adds a life-point to every cookie it passes through. This is
just circle-vs-rectangle collision detection. The way I made sure it only hit once was to add the hit cookie to an array
and check if the collided rectangle was in that array.

Bugs

There's still some weird stuff with the way collision works on the paddle. I should just do collision the same way I do
the bricks.

Sometimes the score goes negative. I don't know if I solved this one or not. But the problem is that the numbers
pico-8 uses aren't quite as large as I originally thought.

Feedback

Let me know what you think! What would you do different? Does the paddle feel okay? Do you feel okay?

Thanks

I hope you have a good day and night

P#138488 2023-12-09 18:01 ( Edited 2023-12-14 22:32)

[ :: Read More :: ]

Cart #boxmoover-0 | 2023-12-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Boxmoover

A cute little game about a cow helping you move.

Learned things

We loaded levels via reading each tile of the map, getting which sprite it was, and creating an entity based on that.
While the math on loading levels via the map was a little odd at first.
It lead to a really easy ways to create levels via the pico8 level editor.
The downside is that it makes it hard to reload the lvls with the same code.
Because levels loaded at when levels change instead of at the start of the game therefore the map data would change until the game was restarted.
Not being able to read the map data after a level change meant that we couldn't reload previous levels.
What would of been better would have been to save the initial map state in _init.
Then, create levels based on that information.
Essentially only ever using spr() and not map()

This is our first time using the map editor in Pico-8.
It's fun but a little limited.
When cutting a set of sprites in the map editor you have to use the stamp tool to paste.
The pan tool will tell you what the x and y is of the upper left corner.
We want to know more shortcuts and tricks in the map editor.

To anyone reading

Thanks for reading and hopefully playing :)
If you have any suggestions feel free to let me know. Especially map editor tricks and tips!

P#138172 2023-12-03 06:59 ( Edited 2023-12-03 07:03)

[ :: Read More :: ]

Cart #cowpie-0 | 2023-10-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#135416 2023-10-04 19:26