Create a Zombie Invasion Killers Game using GDevelop Engine

Introduction

 
This blog demonstrates how to build a 2D Zombie Invasion killers using GDevelop in the HTML5 platform “GDevelop” software. GDevelop is a free and open-source, cross-platform 2D game development engine Specially designed for 2D gamer and for use by everyone, with no programming knowledge required. With this software, you can develop all kinds of games. For example, platformers, puzzles, bullet shooter games, 3D View games. As you can see, GDevelop is meant for general purpose and the game engine is powerful enough for all 2D game engines.
 
Prerequisites
 
“Gdevelop” Software Environment upgrade version 5 (Free).
 
Exercise 1
 
Click on -> File, open New Folder and then you will see,
 

Overview

 
In this blog, the concept is based on  Zombie Invasion Killers.
 

Step1

For creating a new game->Choose the HTML platform and then click on Empty project.

The following article represents the basic introduction of Gdevelop IDE and provides the procedure for the zombie invasion killer's object creation.

Select->new->file->new project.

First of all, we need to choose our platform for game development. For that we need to choose the platform such as html5 and native, the present article explains about the zombie game and the output is based on HTML 5.

If the game development is based on HTML 5 then, HTML5->create this platform-> android and Web games.

Suppose the game development is based on native then, Native->Create platform ->Windows and Linux Games.

After selecting->new project, a dialog box window will appear. Select -> HTML5 -> empty project and click -> create the new project.

 
 
 

Step 2
 

Scene condition

 After creating a new project, a new scene window stage will appear and scene and event conditions will be seen in the new scene stage as shown below. The scene condition represents the insertion of an object, and the event condition represents the performance action of the object.

 

 
 

 

Step 3

Event Conditions

The scene object editor represents the insertion of the objects, and it allows the required number of object insertions according to the user's request and the inserted object can be edited according to the need of the user.

 

 
 

Inserting Player Object (Hero)

inserting the Sprite object, double click on the Scene sheet. A new object dialog box will appear now. Here, we can select the Hero(Player) object. Name it as Player.
 
Now, we are able to see the hero object and the player object diagram in the given event sheet.
 
Insert child behavior object,
  1. Wall object
  2. Background object.
 
 
 
 
 
 
 

Inserting Zombie Object:

 
For adding the Sprite object, double click->in scene window and insert a new object dialog box and now we can select the Zombie object.
 
By right-clicking on->zombie killer Object-> a window dialog box will appear and click->add force from the left-hand side of the window and select->Edit the zombie killer Object.
 
 
 
 
 

Child behavior object

Double Click on the Scene Conditions. A dialog box will appear. Now, we need to add the following object to the Scene, so that it will lead to the creation of all game objects,
  1. LaserDrawer
  2. LaserEnd Object
  3. LaserEndParticles
  4. GlobalLight Object
  5. Background object
  6.  Gameover (text) object
  7. ZombieDeath object
  8. ok, Done.
 We need to add group extensions
    
     1.LaserObstacle.
 
 
 
 
 
 
 
 
 
In the Object editor window (in right), we need to change the following conditions' Game Over Text object,
 
 
 

Event Conditions

The event editor is like the heart of the entire game development since the scene editor represents just the insertion of object, whereas the event editor brings the life of the object action such as movements of the object.
 
Open the events ->click on the add event -> New Event.
    At the beginning of the object,
     1. Hide the object LaserEnd
     2. Hide the object Gameover
     3. variable GameOver is =0
     4. Rotate Hero towards Mouse(" ",0); MouseY(" ",0)
     5. Ok,Done.
 
 Add event->Particles Object,
   1. Do =200 to flow of laserend particles
   2. Do =-cos(Hero.Direction()/180*3.14159) to the emission X direction of LaserEndParticles
   3. Do =-sin(Hero.Direction()/180*3.14159) to the emission Y direction of LaserEndParticles 
   4. Ok,Done.
 Add event->Zombie Object,
   1. Create object Zombie at position Random(2000)-500;-500
   2. Create object Zombie at position -500;Random(2000)-500
   3. Create object Zombie at position Random(2000)-500;-500
   4. Create object Zombie at position -1500;Random(2000)-500
   5. Move Zombie to Hero.X();Hero.Y()
   6. Do =1 to variables Gameover
   7. Done.
 
 
 
 
 
Output
 
It's time to view the output that we have been waiting for, for viewing the output, select->scene in the options menu and click->preview for output
 
 
 
 
 
 

Conclusion

I hope this blog will be useful for Zombie invasion Killers and your games programming using GDevelop. Thanks for reading.