Baloon Blast: Difference between revisions

From ENIGMA
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
The graphic to the left shows the final result of the game. The amount of time to complete this game shouldn't take no longer than an hour. Please note that some knowledge in using Enigma's interface is essential as I will be using various terms throughout. Knowledge in GML is also required. There will be no Drag and Drop actions used, except the 'Create code' in the Control tab.  
The graphic to the left shows the final result of the game. The amount of time to complete this game shouldn't take no longer than an hour. Please note that some knowledge in using Enigma's interface is essential as I will be using various terms throughout. Knowledge in GML is also required. There will be no Drag and Drop actions used, except the 'Create code' in the Control tab.  


'''Gathering our Sprites'''
==='''Gathering our Sprites'''===
There are 2 types of sprites used.
There are 2 types of sprites used.
   a balloon animation sprite
   a balloon animation sprite
   a font sprite representing our score and lives.
   a sprite from the numbers 0 to 9 to represent our score and lives.


Our balloon sprite
[[File:Sprite_balloon.png|150px|thumb|left|Balloon Sprite animation]]
[[File:Sprite_numbers.png|150px|thumb|right|Sprite to represent our scores]]
Our balloon sprite when loaded should have the following setup as shown in the graphic. Likewise for our other sprite. Theses assets can be found [https://www.4shared.com/s/ftLG_F42qda here]. To begin using the archive, you need to extract them somewhere on your computer. Most preferably to the desktop. In the archive you will find a folder containing these two sprites. Included also is the source code, an executable file and a small video of the game playing. If you  want, you can open the source code in Enigma to follow along as the tutorial is outlined.
 
Add the two sprites and give them the names 'spr_balloon' and 'spr_numbers'. Our balloon sprite should be centered. There is no need to center the other sprite. Now that we've loaded and setup our sprites. Let's work on resources.
 
 
==='''Adding a Background'''===
The background is  a simple graphic of the the sky. Backgrounds give depth and realism to games. Without them, games would not make much sense and look confused and dull. If you want to add a different graphic in the source code
go to the backgrounds section,
add a new resource,
state your width and length
click on the paint icon to edit your graphic or click on the folder icon to load one already on your computer
then save the changes.
 
Alternatively, you can double-click on the existing background and load the one you want to replace it with.
 
==='''The Objects'''===

Latest revision as of 13:26, 15 July 2019

Game screen

This is a variation to the article on creating your very first game using Enigma. In this version, you must stop the balloons going upwards offscreen. Popping them with your mouse increases your score by ten 10 points. You lose a life for each balloon that flies past you offscreen.

To create this game, you will need some balloon sprites, a sprite to display the numbers 0 to 9, some objects and a room. Such resources can be created in a graphic editing program of your own choice, or downloaded from the Internet. A great place to get free assets is from Kenny website.

The graphic to the left shows the final result of the game. The amount of time to complete this game shouldn't take no longer than an hour. Please note that some knowledge in using Enigma's interface is essential as I will be using various terms throughout. Knowledge in GML is also required. There will be no Drag and Drop actions used, except the 'Create code' in the Control tab.

Gathering our Sprites

There are 2 types of sprites used.

 a balloon animation sprite
 a sprite from the numbers 0 to 9 to represent our score and lives.
Balloon Sprite animation
Sprite to represent our scores

Our balloon sprite when loaded should have the following setup as shown in the graphic. Likewise for our other sprite. Theses assets can be found here. To begin using the archive, you need to extract them somewhere on your computer. Most preferably to the desktop. In the archive you will find a folder containing these two sprites. Included also is the source code, an executable file and a small video of the game playing. If you want, you can open the source code in Enigma to follow along as the tutorial is outlined.

Add the two sprites and give them the names 'spr_balloon' and 'spr_numbers'. Our balloon sprite should be centered. There is no need to center the other sprite. Now that we've loaded and setup our sprites. Let's work on resources.


Adding a Background

The background is a simple graphic of the the sky. Backgrounds give depth and realism to games. Without them, games would not make much sense and look confused and dull. If you want to add a different graphic in the source code

go to the backgrounds section,
add a new resource, 
state your width and length
click on the paint icon to edit your graphic or click on the folder icon to load one already on your computer
then save the changes.

Alternatively, you can double-click on the existing background and load the one you want to replace it with.

The Objects