Adding Power Up Items | Space Shooter Part 14 #sdl2 #gamedev #odinlang
Handmade Games
Using text-rendering techniques detailed in other videos, we easily add a player's score to the window.
00:00 - Start 01:39 - Nuke Power Ups - Storage 02:03 - Creating Our Nuke Power Ups 02:44 - NukePowerUp Struct 04:14 - No OOP - A Work Around 05:07 - Power Up Animation.start() 06:21 - Power Up Animation.maybe_run() 07:19 - Picking Up Our Power Ups 07:45 - Accumulating Nukes 08:37 - Animation Frames 09:10 - A weird bug! 09:32 - SDL.SetTextureAlphaMod() for Blinking Effect 10:48 - Reset Nuke Power Ups
💻 The Code :: https://github.com/patrickodacre/odin-space-shooter/tree/038198098cefd2dd37c909c20a7b53e1597e4a0b
👾 The Guide :: https://github.com/patrickodacre/odin-space-shooter/blob/038198098cefd2dd37c909c20a7b53e1597e4a0b/guides/part-014-create-powerups.md
Related Material ::
📺 Animations :: https://www.youtube.com/watch?v=hhjlcmn9Zks
This tutorial uses SDL2 and the Odin programming language. ... https://www.youtube.com/watch?v=NCVXQVFb30Y
93980985 Bytes