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

Image for post

2) NPCManager

Image for post
Image for post

> Finite State Machine (FSM)

Image for post

Create id:number

Image for post

Update

Image for post
Image for post

> Create array of NPCs

1)Randomly generated NPC

Image for post

2)Time-related generation

Image for post

3)Generated with arrays

Image for post

>The relationship between factories

1)NPC bullets

Image for post
Image for post

Numbers of NPC bullets shots

Image for post

> Add isHit()

Image for post
Image for post

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/