Premium Only Content
Space Game - Part 3 - Item Mechanics
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!
-
10:50
Pixel
4 years agoSpace Game Part 26 - Item Weights
8 -
16:56
Pixel
4 years agoSpace Game Part 24 - Item Management
22 -
13:15
Pixel
4 years agoSpace Game - Part 6 - AI
11 -
15:00
Pixel
4 years agoSpace Game - Part 4 - Targeting
34 -
9:00
Pixel
4 years agoSpace Game - Part 9 - UI Automation
35 -
7:00
Pixel
4 years agoSpace Game Part 25 - Explosions!
22 -
15:20
Pixel
4 years agoSpace Game - Part 8 - Station Trading
65 -
15:34
Pixel
4 years ago $0.01 earnedSpace Game - Part 1 - The Beginning
26 -
6:00
Pixel
4 years agoSpace Game Part 27 - Exploration
19 -
15:00
Pixel
4 years agoSpace Game - Part 10 - UI Tooltips
36