CodeNewbie Community 🌱

Tóth Béla
Tóth Béla

Posted on

More PICO-8 Gamedev - Retro Camera, Abilites

This article was taken from my Ko-Fi page, where you check more of my stuff! If you like what I do, you can support me with a price of a single coffee!
ko-fi

This week was quite active for me on the gamedev side, thanks to the bug I fixed last time. It opened up the project for more fun stuff and helped to relieve some stress that was building up due to the issue, so let's see what was done!

Retro Camera:

If you’ve seen past gifs about the project you can pretty much notice one thing that may be bothering you. The smallest change in the player's position drags the camera immediately. This is due how the camera is moved atm, as I just assign the player coordinates to it’s center, which may cause some issues with how quickly it snaps and jiggles as you move around and I wanted to avoid that at all cost.

Retro Camera

In old games there was a system implemented into the game that basically let the player move around in the center of the screen freely, without triggering camera movement. This is not a really difficult feature to code, as you only need to set boundaries and check if the player is inside or outside of them, and adjust the camera only when we happen to be outside.

New Camera on Ko-fi, gifs to long

The code is easy and the result speaks for itself if you ask me. You can now adjust movement and position without twitching the camera like crazy.

Dashing ability:

Do you remember the gift I left you last time?

Old Gif

At that point the ability was hardcoded and I have a button set to cycle around the power up stages, that is why you saw the Dino already in the yellow form. So with all the code done, let’s do some art!

New Sprites

For the moment I’m working with mystical flowers that let you change power-up states, which may change in the future. This one is simple yellow one with some flash to let me feel some forward motion in the project, and to be honest I really like how it looks animated in the game!

Ingame look on Ko-fi, gifs to long

Fireball ability:

Since I started posting about this project you could see the red sprite for the player but nothing special was happening. Well because I haven’t done anything yet! This issue got tackled as well this week, with adding some really simple frames and doing a few lines of code. Added a really simple fireball rotation animation (see above cursor) and went coding!

Fireball Sprites

I have a separate collection for my firebally, a add_fireball function, which takes position and speed and to top it all an update and a draw function. Basically they are moved according to the speed and checked for any enemy collision, on which both the fireball and the enemy dies. At the moment i haven’t coded any special movement into them (like the bounce in Super Mario) nor do they have collision with the environment. The latter is gonna change for sure but not sure on a special movement for them yet, so that is up for the future!

Still on Ko-fi, gifs don't like me here

Ending and future plans:

So that is all that I have for this week. If you want to follow the project more closely you can check the newly created GitHub table for more frequent updates!

The other thing I was wondering about is maybe to upload the weekly “build” of the game for Ko-Fi supporters, so if you are interested in something along that line don’t be afraid to comment down below!

That is the end for this update! PicoShorts will be postponed for the next weekend due to the lack of time to write the article!

Ko-fi supporters

Big thank you to Csöndi, for supporting my work!

Wanna see your name here? See more frequent updates? Longer PicoShorts? Or you just like what i do? Consider supporting my work with even the price of a single coffee, and if you can please share my work, so more people can enjoy the magical world of PICO-8.

Other social sites:
🐦 Twitter
📷 Instagram
🎥 Twitch
🎬 YouTube

*Games and devlogs i made: *
⌨️ GitHub repos
🎮 Itch.io
🕹️ Newgrounds

Top comments (1)

Collapse
 
fishrot profile image
Fishrot

I often hear about how important design and interface are in various applications and video games. This is also important for online casinos and betting platforms. It’s cool that now many developers are striving to make navigation online casino and betting more comfortable and understandable for all players, regardless of their level.