Space Game - Part 3 - Item Mechanics

3 years ago
39

Continuing the work! Decided to use phpMyAdmin to handle the managing of the in-game items. Then once done export it as JSON for the JavaScript in game to read from.

Additionally added the following:
Players stats maximums calculated.
Energy now ticks over and regenerates to max allowed.
Shields now tick over and take energy as a cost.
Changed the players stats bars from progress to div tags and added some text on top.
Inventory can now be displayed to the player. (Will have to figure out why engine item isn't showing).

Game (so far): http://www.space.markoz.net/
Patreon: https://www.patreon.com/pixel2020

Music:
YouTubes Audio Library (Jesse Gallagher)
The Golden Present

Timestamps:
00:00 Introduction
00:36 Creating item table
01:28 Adding items
02:29 Exporting items to JSON
02:39 Coding game to read JSON file
03:19 Making mock starting item kit
03:37 Creating grabItemID function
04:09 Creating starterItemKit function
04:37 Creating grabItemInfo function
04:58 Went back to fixing more of the radar to the Object Array method
05:36 Started player stats maximums calculations
05:55 Creating a filter to sort items by type to calculate
06:43 Creating updatePlayerMax function
09:18 Adding tick duration left values to inventory items
09:29 Coding energy mechanics
09:59 Coding shield mechanics
10:25 Working on new player stats bars
12:33 Working on inventory window
13:57 Thank you for watching!

Loading comments...