A new version of the Inventory System is available. This release includes various refinements to existing systems to flesh out more combat-related functionality.
Inventory Ammo Provider
The GGAmmoProvider component is responsible for providing ammunition to equipped weapons. Previously, it only had a “simple” strategy: Creating ammunition out of thin air. The new GGAmmoProviderInventoryStrategy pulls ammunition from items in the inventory it’s connected to. This allows players to pick up ammunition from loot boxes and item spawns
Weapon and Combat Refinements
The MyRangedWeapon2D class, which powers the two example guns in the Multiplayer Interaction Demo has received some ammo consumption refinements to go with the Inventory Ammo Provider mechanic and now emits signals when firing/reloading. Melee weapons and projectiles now use the GGHurtBox component to deal damage. The HurtBox applies damages to a HitBox, which is then processed by a DamageCalculator strategy to update the HealthStats component.
The new Ghost “Enemy” spawns as part of the Multiplayer Interaction Demo, and can receive damage from both melee and ranged weapons. When taking hits, the amount of damage floats above the character/object, which is all handled on the server and replicated to clients for multiplayer by a new set of classes.
Changelog
Features:
Added a new configurable MyEntitySpawner2D to spawn the Ghost
Added the GGAmmoProviderInventoryStrategy, along with some ammo and projectile rework.
Added configurable target (defaults to “_blank”) for the GGRichTextURLOpener.
Added GGFloatingNotifier component to inform the GGFloatingDisplay component to display floating numbers for server and clients.
Melee Weapons now each have dedicated scenes.
Ranged Weapons were reworked for improved ammo handling and signal emission when firing and reloading.
Bug fixes:
Corrected the Drag-and-Drop configuration for the Inventory In-Game Menu UI integration.
Ensure damage calculation only runs server-side.
Various corrections to the netfox implementation of the character scene.
The Tour instructions now correctly show that CMD (instead of CTRL) is the drag-and-drop modifier on Mac.
The Inventory System Deep Dive and Architecture Guide helps game developers implement advanced multiplayer inventories using Godot Engine. The PDF Guide contains over 500 pages of code walkthroughs, diagrams, and explains concepts related to inventories, items, and more.
In this 2018 GDC session, Spry Fox‘s Daniel Cook explains how to keep human beings from being treated as interchangeable, disposable, or abusable when designing multiplayer games. If you’re developing, or thinking about developing a multiplayer game, this is a great talk to better understand the challenges of designing multiplayer interactions that result in more …
Creating network connections with Godot is simple — as long as you have the other party’s IP address, and there’s no NAT gateway involved. Unfortunately, that’s exactly the problem in most cases. You don’t know the other party’s IP, and these days, just about everyone is behind a combination wifi router/gateway/firewall with NAT. Conceptually, NAT …
Once I found out about the Steam Deck’s Desktop Mode, it got even more interesting. Steam Deck’s Gaming Mode vs Desktop Mode You see, the Steam Deck defaults to an analog of Big Picture mode on PC. It runs full screen in “Steam Deck gaming console” mode. But underneath all that is a Linux system …
Arguably, more fun than writing code is removing code. I was assembling a split-screen multiplayer UI. The goal behavior is to show/hide the appropriate displays for the players, depending on how many players there are. Initially, the code to update the UI was very simple, because I started with two players. In that case, you …
Inventory System v1.17 available
A new version of the Inventory System is available. This release includes various refinements to existing systems to flesh out more combat-related functionality.
Inventory Ammo Provider
The GGAmmoProvider component is responsible for providing ammunition to equipped weapons. Previously, it only had a “simple” strategy: Creating ammunition out of thin air. The new GGAmmoProviderInventoryStrategy pulls ammunition from items in the inventory it’s connected to. This allows players to pick up ammunition from loot boxes and item spawns
Weapon and Combat Refinements
The MyRangedWeapon2D class, which powers the two example guns in the Multiplayer Interaction Demo has received some ammo consumption refinements to go with the Inventory Ammo Provider mechanic and now emits signals when firing/reloading. Melee weapons and projectiles now use the GGHurtBox component to deal damage. The HurtBox applies damages to a HitBox, which is then processed by a DamageCalculator strategy to update the HealthStats component.
The new Ghost “Enemy” spawns as part of the Multiplayer Interaction Demo, and can receive damage from both melee and ranged weapons. When taking hits, the amount of damage floats above the character/object, which is all handled on the server and replicated to clients for multiplayer by a new set of classes.
Changelog
Features:
Bug fixes:
The Inventory System Deep Dive and Architecture Guide helps game developers implement advanced multiplayer inventories using Godot Engine. The PDF Guide contains over 500 pages of code walkthroughs, diagrams, and explains concepts related to inventories, items, and more.
Related Posts
Design Patterns for Building Friendships
In this 2018 GDC session, Spry Fox‘s Daniel Cook explains how to keep human beings from being treated as interchangeable, disposable, or abusable when designing multiplayer games. If you’re developing, or thinking about developing a multiplayer game, this is a great talk to better understand the challenges of designing multiplayer interactions that result in more …
Creating a UDP peer-to-peer connection
Creating network connections with Godot is simple — as long as you have the other party’s IP address, and there’s no NAT gateway involved. Unfortunately, that’s exactly the problem in most cases. You don’t know the other party’s IP, and these days, just about everyone is behind a combination wifi router/gateway/firewall with NAT. Conceptually, NAT …
Godot Engine on the Steam Deck – Developing games on the go?
Once I found out about the Steam Deck’s Desktop Mode, it got even more interesting. Steam Deck’s Gaming Mode vs Desktop Mode You see, the Steam Deck defaults to an analog of Big Picture mode on PC. It runs full screen in “Steam Deck gaming console” mode. But underneath all that is a Linux system …
A GDScript refactoring exercise
Arguably, more fun than writing code is removing code. I was assembling a split-screen multiplayer UI. The goal behavior is to show/hide the appropriate displays for the players, depending on how many players there are. Initially, the code to update the UI was very simple, because I started with two players. In that case, you …