Egretia Io
Egretia
Published in
3 min readJul 28, 2020

--

Create A Space Shooter Game | Egretia Engine Tutorial For Beginners Part 4

This is the fourth part of Egretia Engine tutorial, showing how to build a space shooter game!

Part 1 https://bit.ly/32xy7r3

Part 2 https://bit.ly/2CV2CfC

Part 3 https://bit.ly/39uicLD

Demonstration

Programming

>Use the factory pattern when NPC are unknown numbers of objects

1)Create NPC and NPCManager

2) NPCManager

> Finite State Machine (FSM)

Create id:number

Update

> Create array of NPCs

1)Randomly generated NPC

2)Time-related generation

3)Generated with arrays

>The relationship between factories

1)NPC bullets

Numbers of NPC bullets shots

> Add isHit()

What are the coolest projects you saw from people using Egretia engine?

Stay tuned for updates from the Egretia official channels below so that you can be involved in all the exciting things to come!

Egretia Telegram: https://t.me/Egretia

Egretia Twitter: https://twitter.com/Egretia_io

Egretia Website: https://egretia.io/

--

--