Space Game - Part 4 - Targeting

3 years ago
34

More work done on the project! Figured out what the issue was with the engine missing. I didn't add it to the starter kit doh!

Added the following:
Max speed to the players space ship (each space ship will have a max speed value).
Stats bars for all NPC objects in game.
Added structure health bars to all solar body's.
Can swap your weapon now using the left ctrl key, will switch to "e" key next session.
Started the beginning of the AI code and weapon fire code.
You can now select/target objects with a mouse click

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:30 Attaching engine values for turning and thrust of the object
00:37 Adding max speed mechanic
02:21 Attaching space ship item image and radius to the object
02:36 Coding if energy is already energy maximum do nothing.
02:43 Adding mouse click targeting code
03:13 Adding stats bars to NPC objects
04:50 Adding NPC object name visual
05:00 Adding first NPC space ship
05:10 Beginnings of AI code
05:57 Adding first NPC space station
06:14 Converting player item mechanical code to all objects
07:04 Converting player stats max code to all objects
07:23 Adding a station to the item database
07:41 When warping target is reset and all objects in that sector are updated
07:48 Adding active weapon code
13:57 Changing how the game loads visually
14:21 Thank you for watching!

Loading comments...