SlideShare a Scribd company logo
1 of 39
Firstly, I started by making a player sprite. After finishing my design, I gave it an ellipses mask as 
the shape was roughly similar to my sprite.
Next, I programmed the movement code for my Player sprite, so that using the w,a,s,d keys, I was 
able to control the direction my sprite moved. 
Then, I started to make a background for my game, since my sprite was a space ship, it seemed 
appropriate to have a space background, therefore I made my first background a bunch of stars in 
space.
Next I created a foreground image that would overlay on top of the first background and scroll 
slightly slower in order to give my game the feeling of depth. 
Then, I began creating a sprite for some smoke that would be used in a particle system for the jets 
of my player sprites exhaust.
This is the code for my particle system. It makes the sprite fly out of the back of the player ship 
towards the left side of the screen in a random way, similar to what an actual exhaust would be like. 
In order to get my player able to shoot enemies, I needed to create a laser that would be fired from 
my ship. First I created a sprite that would be used as my laser.
Then I programmed the code so that when fired, it would move towards the right of the screen from 
where it was fired. It would also play a custom sound effect that I made myself using reaper. 
Then I added the step event that checked whether the the laser was off the screen and if so, destroy 
itself. This is so hundreds of lasers don’t build up outside the screen and crash the game.
Them, I went back to the player code and added an if statement that when the space bar was pressed 
it would fire a single laser. 
Here is what my game looked like so far:
Now that I had the ability to shoot, I needed something to shoot. I created an new sprite that would 
be the first enemy of the game. 
I added a slight animation to the sprite that moved a few lasers along the back of the ship.
I needed to add my enemy to the game but at random intervals and positions. Therefore I added this 
code that spawned the enemies in a V formation randomly from the right of the screen. Then I 
added an alarm that reset the spawn of the enemy from between 1 ½ and 2 seconds. 
Then I added the create event that began the alarm.
In order for everything in my system to appear in the main game, the object had to be placed into 
the physical level. However, since it had no sprite it would be invisible to the player. 
Then, for them to move towards the left side of the screen, I changed their H speed to -10 and their 
image speed to 0.7 so that it would cycle its animation at 0.7 of its normal speed.
Similar to the laser, if the enemy left the room it would disappear so as to not crash the game with 
too many instances. 
Here is the formation of which the enemies spawn.
Next, I created an explosion animation for my enemies so that when they died they didn’t just 
disappear. 
I used the same particle system code except I changed the variables and sprite used.
Then in the enemy object, I created a collision event that when hit by the player laser, it would play 
the explosion object. 
Here is the enemies exploding into the explosion object.
I needed my enemies to fire back at me, therefore similar to the player, I created an enemy laser. 
These laser would move towards the player at whichever point the player was when the laser 
instance was created.
This laser had the same code as the player laser where it would be destroyed when it left the room 
or when they hit the player. 
So that the player wouldn’t instantly die when a single bullet hit them, I implemented the code for 
shield/ health bar that when a bullet hit the player, the shield would go down.
This code drew a red line in the actual game that showed how much life the player has and 
decreases when the player is hit. 
Then in the player object, I set up a collision object with the enemy laser that when hit, it would 
decrease the shield by 10 points.
I then began work on a player explosion for when the player died. 
Once again, I used the same particle system apart from changing the variable and object again.
Since this was the player explosion, when it ended after the alarm finished, it would destroy the 
explosion instance and it would restart the room so you could play again. 
Then I had to go back to the player object and add the code that every step, it would check to see if 
the player shield was at 0 and if so, it would change the instance to the player explosion.
I wanted to add a scoring system, therefore I began by making code similar to the shield by m,aking 
a points variable and setting it to 0. 
Then I created the code that would draw the score at the top of the screen.
In order for it to draw numbers, it needed a font, therefore I made one. 
Then, I went into the enemy object and added code that when hit by the laser, it would add 1 to the 
score count.
Since it looked bare with one enemy, I added a second enemy with a flashing animation.
Alongside my new enemy, I created another enemy laser which it would fire. 
Then I made the second enemy's spawn alarm to 2 seconds.
Instead of having this enemy spawn in a V formation I decide it would make things to hectic, 
therefore I only made one spawn at a time. 
Then I added the code for it to shoot at the player, as well as all the other code from the first enemy.
Here is the game with two enemies on screen firing. 
I wanted to add a bit extra challenge to my game, therefore I decided I wanted to make a boss for 
my player to kill. I began by making the sprite.
I placed it just off screen so that when the level starts, it moves left onto screen for 55 steps where it 
stops. 
Before I continued with the boss, I wanted to make a start screen so that players wouldnt be 
dropped immediately into the action. I started by making a start button with two images, an on and 
off image.
I made it so when the mouse hovered over the button, it would change to the on sprite and when the 
mouse left the button, it moved to the off sprite. Also, when the button it would move the the main 
room. 
The start screen looked quite blank, therefore I created a little sprite that would float across the 
screen, to spruce it up.
I added plenty all around the start screen and created code that would make them float up to the left 
and out of the screen as if they are an armada moving through space. 
One thing I found was that the screen was very dark when playing the game, so I decided to make a 
large planet that would fly across the screen in the background as the game was played. I went into 
photo shop, created a larger sphere with a blue gradient and used a cloud like brush to make the 
clouds and used a bunch of tiny white dots to act as lights on the planets surface on the dark side.
Using the same code as the boss, it moved from halfway on screen to completely of the left side and 
after it moved completely off it is destroyed so as not to possibly crash the game in any way. 
Here is a size comparison of the planet to the actual level.
After I was happy with the background, I continued work on the boss, creating a 
destroyed/damaged version of the boss that would appear as parts of the boss are destroyed 
I seperated the original boss sprite into three in order for them to be destroyed seperately.
I gave each the same movement code as the original boss so they would move in unison and not slip 
out of place. 
Then, similar to the other enemies, when the player appears it begins its alarm to fire its laser.
So the pieces of the boss aren’t immediately destroyed I gave each piece a shield that had lots of 
health to be worn down over the course of the fight 
for the two cannons on each side of the boss, I created a large bright laser that would do large 
amaounts of damage to the player and also home onto him.
For each step, they would check if their individual shields were below 0 and if so they would be 
destroyed, revealing the piece of broken ship beneath it. 
Finally, I set up a collision event with the player laser that would take 4 health of their shields with 
each hit.
When the boss' middle section was destroyed, I want it to progress to a new stage of the boss battle, 
therefore, I created a new red laser that would rapidly fire from the middle and do plenty of damage. 
This is the same homing code as enemy1 except the alarm is sped up quite a lot, thus making the 
laser fire in much quicker intervals.
This is how the ship pieces look when not on top of each other... 
and when they are.
I decided I should make a unique explosion for my boss to make it feel unique when killing the 
boss. 
I set up an alarm in the boss explosion that destroyed itself and also signalled the game to move 
onto the win screen.
For the win screen, I created a fancy box that had some end text inside congratulating the player for 
their accomplishment. 
Also in the room I had a retry button that restarted the game again in order for the player to try to 
get the high score.
For the death screen, I cut up the player sprite into pieces as if they are floating in space after being 
defeated and turned them into their own object. 
Also, I created large text that would move down onto the screen after a few seconds.
This code moves the text from off screen and stops it on screen. 
As for the dead player sprite, I made it move left and down very slowly as if all that remains is the
pieces of the players ship floating through space forever. 
This is a zoomed out view of the death screen.
The final thing to do was add music to each room to add spice to the game. 
In each room, there is an object that has code for stopping all other music and starting that rooms 
specific music. For example in the main room, its the system that has the code for playing the 
background music and stopping all other music. 
With this done, my game is in its finished state.

More Related Content

What's hot

Powerpoint Storyboard- Tynker
Powerpoint Storyboard- TynkerPowerpoint Storyboard- Tynker
Powerpoint Storyboard- TynkerEmmie Parker
 
Media 03 02-15 dev blog
Media 03 02-15 dev blogMedia 03 02-15 dev blog
Media 03 02-15 dev blogNathanielW
 
Documentation of my 2D game
Documentation of my 2D gameDocumentation of my 2D game
Documentation of my 2D gamerosstapher
 
My Level Design For 2D Scroll Game
My Level Design For 2D Scroll GameMy Level Design For 2D Scroll Game
My Level Design For 2D Scroll GameArron96
 
My Level Design For 2D Scroll Game By Arron Coakley
My Level Design For 2D Scroll Game By Arron CoakleyMy Level Design For 2D Scroll Game By Arron Coakley
My Level Design For 2D Scroll Game By Arron CoakleyArron96
 
Y1 gd level_designworkflow
Y1 gd level_designworkflowY1 gd level_designworkflow
Y1 gd level_designworkflowcrisgalliano
 
Forest assassin 2 d platformer game
Forest assassin 2 d platformer gameForest assassin 2 d platformer game
Forest assassin 2 d platformer gameAnshuman Pattnaik
 
Game maker walkthrough
Game maker walkthroughGame maker walkthrough
Game maker walkthroughLewisB2013
 
Your VR Experience Presentation
Your VR Experience PresentationYour VR Experience Presentation
Your VR Experience PresentationEsteban Gallardo
 
Your VR Experience (Oculus Presentation, Indiecade 2016)
Your VR Experience (Oculus Presentation, Indiecade 2016)Your VR Experience (Oculus Presentation, Indiecade 2016)
Your VR Experience (Oculus Presentation, Indiecade 2016)Esteban Gallardo
 
Game Development with AndEngine
Game Development with AndEngineGame Development with AndEngine
Game Development with AndEngineDaniela Da Cruz
 
Resident evil 5 cheat codes guide
Resident evil 5 cheat codes guideResident evil 5 cheat codes guide
Resident evil 5 cheat codes guideKratos Bram
 
Portfolio 2011- Hugo Frénoy
Portfolio 2011- Hugo FrénoyPortfolio 2011- Hugo Frénoy
Portfolio 2011- Hugo FrénoyHugo Frénoy
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)noorcon
 
My game development pipeline
My game development pipelineMy game development pipeline
My game development pipelineSamuel Hayman
 

What's hot (19)

Documentation
DocumentationDocumentation
Documentation
 
Powerpoint Storyboard- Tynker
Powerpoint Storyboard- TynkerPowerpoint Storyboard- Tynker
Powerpoint Storyboard- Tynker
 
Media 03 02-15 dev blog
Media 03 02-15 dev blogMedia 03 02-15 dev blog
Media 03 02-15 dev blog
 
Documentation of my 2D game
Documentation of my 2D gameDocumentation of my 2D game
Documentation of my 2D game
 
My Level Design For 2D Scroll Game
My Level Design For 2D Scroll GameMy Level Design For 2D Scroll Game
My Level Design For 2D Scroll Game
 
My Level Design For 2D Scroll Game By Arron Coakley
My Level Design For 2D Scroll Game By Arron CoakleyMy Level Design For 2D Scroll Game By Arron Coakley
My Level Design For 2D Scroll Game By Arron Coakley
 
Y1 gd level_designworkflow
Y1 gd level_designworkflowY1 gd level_designworkflow
Y1 gd level_designworkflow
 
Gamemaker work flow
Gamemaker work flowGamemaker work flow
Gamemaker work flow
 
Forest assassin 2 d platformer game
Forest assassin 2 d platformer gameForest assassin 2 d platformer game
Forest assassin 2 d platformer game
 
Game maker walkthrough
Game maker walkthroughGame maker walkthrough
Game maker walkthrough
 
Your VR Experience Presentation
Your VR Experience PresentationYour VR Experience Presentation
Your VR Experience Presentation
 
Your VR Experience (Oculus Presentation, Indiecade 2016)
Your VR Experience (Oculus Presentation, Indiecade 2016)Your VR Experience (Oculus Presentation, Indiecade 2016)
Your VR Experience (Oculus Presentation, Indiecade 2016)
 
Game Development with AndEngine
Game Development with AndEngineGame Development with AndEngine
Game Development with AndEngine
 
Resident evil 5 cheat codes guide
Resident evil 5 cheat codes guideResident evil 5 cheat codes guide
Resident evil 5 cheat codes guide
 
2dworkflow complete
2dworkflow complete2dworkflow complete
2dworkflow complete
 
Portfolio 2011- Hugo Frénoy
Portfolio 2011- Hugo FrénoyPortfolio 2011- Hugo Frénoy
Portfolio 2011- Hugo Frénoy
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
 
fortine
fortine fortine
fortine
 
My game development pipeline
My game development pipelineMy game development pipeline
My game development pipeline
 

Viewers also liked

Unit 73 ig2 assignment creating a sample library 2013_y1
Unit 73 ig2 assignment creating a sample library 2013_y1Unit 73 ig2 assignment creating a sample library 2013_y1
Unit 73 ig2 assignment creating a sample library 2013_y1ElliotBlack
 
IG je game engines_y2_assignment brief
IG je game engines_y2_assignment briefIG je game engines_y2_assignment brief
IG je game engines_y2_assignment briefElliotBlack
 
Gtav script word document
Gtav script word documentGtav script word document
Gtav script word documentElliotBlack
 
Y1 gd engine_terminologY
Y1 gd engine_terminologYY1 gd engine_terminologY
Y1 gd engine_terminologYElliotBlack
 
Elliot Black 3D game Workflow
Elliot Black 3D game WorkflowElliot Black 3D game Workflow
Elliot Black 3D game WorkflowElliotBlack
 
Animators galore
Animators galoreAnimators galore
Animators galoreElliotBlack
 
IG1 task sheet cut scene analysis
IG1 task sheet cut scene analysisIG1 task sheet cut scene analysis
IG1 task sheet cut scene analysisElliotBlack
 
Quantitative survey powerpoinT
Quantitative survey powerpoinTQuantitative survey powerpoinT
Quantitative survey powerpoinTElliotBlack
 
Qualitative survey powerpoinT
Qualitative survey powerpoinTQualitative survey powerpoinT
Qualitative survey powerpoinTElliotBlack
 
Ig1 task 2 analysis work sheet DmC3
Ig1 task 2 analysis work sheet DmC3Ig1 task 2 analysis work sheet DmC3
Ig1 task 2 analysis work sheet DmC3ElliotBlack
 
Ig1 task 2 analysis work sheet onimusha 3
Ig1 task 2 analysis work sheet onimusha 3Ig1 task 2 analysis work sheet onimusha 3
Ig1 task 2 analysis work sheet onimusha 3ElliotBlack
 
IG1 task 2 analysis work sheet GTA 5
IG1 task 2 analysis work sheet   GTA 5IG1 task 2 analysis work sheet   GTA 5
IG1 task 2 analysis work sheet GTA 5ElliotBlack
 
Ig1 task 2 analysis work sheet ass creed
Ig1 task 2 analysis work sheet ass creedIg1 task 2 analysis work sheet ass creed
Ig1 task 2 analysis work sheet ass creedElliotBlack
 
Clay and plaster artists galore!!
Clay and plaster artists galore!!Clay and plaster artists galore!!
Clay and plaster artists galore!!Elliot Black
 
Artists galore! concept artist turbo edition
Artists galore! concept artist turbo editionArtists galore! concept artist turbo edition
Artists galore! concept artist turbo editionElliot Black
 
Artists galore! wired edition
Artists galore! wired editionArtists galore! wired edition
Artists galore! wired editionElliot Black
 

Viewers also liked (20)

Thingy editedd
Thingy editeddThingy editedd
Thingy editedd
 
Art moodboard
Art moodboardArt moodboard
Art moodboard
 
Unit 73 ig2 assignment creating a sample library 2013_y1
Unit 73 ig2 assignment creating a sample library 2013_y1Unit 73 ig2 assignment creating a sample library 2013_y1
Unit 73 ig2 assignment creating a sample library 2013_y1
 
IG je game engines_y2_assignment brief
IG je game engines_y2_assignment briefIG je game engines_y2_assignment brief
IG je game engines_y2_assignment brief
 
Gtav script word document
Gtav script word documentGtav script word document
Gtav script word document
 
Y1 gd engine_terminologY
Y1 gd engine_terminologYY1 gd engine_terminologY
Y1 gd engine_terminologY
 
Elliot Black 3D game Workflow
Elliot Black 3D game WorkflowElliot Black 3D game Workflow
Elliot Black 3D game Workflow
 
Animators galore
Animators galoreAnimators galore
Animators galore
 
IG1 task sheet cut scene analysis
IG1 task sheet cut scene analysisIG1 task sheet cut scene analysis
IG1 task sheet cut scene analysis
 
Thingy oldd
Thingy olddThingy oldd
Thingy oldd
 
Quantitative survey powerpoinT
Quantitative survey powerpoinTQuantitative survey powerpoinT
Quantitative survey powerpoinT
 
Qualitative survey powerpoinT
Qualitative survey powerpoinTQualitative survey powerpoinT
Qualitative survey powerpoinT
 
Artists galore!
Artists galore!Artists galore!
Artists galore!
 
Ig1 task 2 analysis work sheet DmC3
Ig1 task 2 analysis work sheet DmC3Ig1 task 2 analysis work sheet DmC3
Ig1 task 2 analysis work sheet DmC3
 
Ig1 task 2 analysis work sheet onimusha 3
Ig1 task 2 analysis work sheet onimusha 3Ig1 task 2 analysis work sheet onimusha 3
Ig1 task 2 analysis work sheet onimusha 3
 
IG1 task 2 analysis work sheet GTA 5
IG1 task 2 analysis work sheet   GTA 5IG1 task 2 analysis work sheet   GTA 5
IG1 task 2 analysis work sheet GTA 5
 
Ig1 task 2 analysis work sheet ass creed
Ig1 task 2 analysis work sheet ass creedIg1 task 2 analysis work sheet ass creed
Ig1 task 2 analysis work sheet ass creed
 
Clay and plaster artists galore!!
Clay and plaster artists galore!!Clay and plaster artists galore!!
Clay and plaster artists galore!!
 
Artists galore! concept artist turbo edition
Artists galore! concept artist turbo editionArtists galore! concept artist turbo edition
Artists galore! concept artist turbo edition
 
Artists galore! wired edition
Artists galore! wired editionArtists galore! wired edition
Artists galore! wired edition
 

Similar to 2d game printscreens

Jake Hyatt 2D Game Workflow
Jake Hyatt 2D Game WorkflowJake Hyatt 2D Game Workflow
Jake Hyatt 2D Game WorkflowJakeyhyatt123
 
Ben Atherton 2D Side Scrolling Shooter Workflow
Ben Atherton 2D Side Scrolling Shooter WorkflowBen Atherton 2D Side Scrolling Shooter Workflow
Ben Atherton 2D Side Scrolling Shooter WorkflowBen_Atherton
 
2D Top-down shooter workflow
2D Top-down shooter workflow2D Top-down shooter workflow
2D Top-down shooter workflowraimondklavins
 
Harry johnson 2d work flow task 2 screen shots
Harry johnson 2d work flow task 2 screen shotsHarry johnson 2d work flow task 2 screen shots
Harry johnson 2d work flow task 2 screen shots11275449
 
Documenting game (recovered)2
Documenting game (recovered)2Documenting game (recovered)2
Documenting game (recovered)2BenWhite101
 
Documenting game (recovered)2
Documenting game (recovered)2Documenting game (recovered)2
Documenting game (recovered)2BenWhite101
 
Jowen roche 2 d game workflow
Jowen roche 2 d game workflowJowen roche 2 d game workflow
Jowen roche 2 d game workflowaknatdeahobia
 
Level design workflow 3
Level design workflow 3Level design workflow 3
Level design workflow 3tommo123456
 
Level design workflow 3
Level design workflow 3Level design workflow 3
Level design workflow 3tommo123456
 

Similar to 2d game printscreens (20)

Jake Hyatt 2D Game Workflow
Jake Hyatt 2D Game WorkflowJake Hyatt 2D Game Workflow
Jake Hyatt 2D Game Workflow
 
Workflow
WorkflowWorkflow
Workflow
 
Workflow
WorkflowWorkflow
Workflow
 
Ben Atherton 2D Side Scrolling Shooter Workflow
Ben Atherton 2D Side Scrolling Shooter WorkflowBen Atherton 2D Side Scrolling Shooter Workflow
Ben Atherton 2D Side Scrolling Shooter Workflow
 
2D game workflow
2D game workflow2D game workflow
2D game workflow
 
2D Top-down shooter workflow
2D Top-down shooter workflow2D Top-down shooter workflow
2D Top-down shooter workflow
 
Evaluation fmp
Evaluation   fmpEvaluation   fmp
Evaluation fmp
 
Harry johnson 2d work flow task 2 screen shots
Harry johnson 2d work flow task 2 screen shotsHarry johnson 2d work flow task 2 screen shots
Harry johnson 2d work flow task 2 screen shots
 
Documenting game (recovered)2
Documenting game (recovered)2Documenting game (recovered)2
Documenting game (recovered)2
 
Workflow
WorkflowWorkflow
Workflow
 
Documenting game (recovered)2
Documenting game (recovered)2Documenting game (recovered)2
Documenting game (recovered)2
 
Work Flow
Work FlowWork Flow
Work Flow
 
Gamemaker work flow
Gamemaker work flowGamemaker work flow
Gamemaker work flow
 
Workflow
WorkflowWorkflow
Workflow
 
Jowen roche 2 d game workflow
Jowen roche 2 d game workflowJowen roche 2 d game workflow
Jowen roche 2 d game workflow
 
Level design workflow 3
Level design workflow 3Level design workflow 3
Level design workflow 3
 
Level design workflow 3
Level design workflow 3Level design workflow 3
Level design workflow 3
 
Work Flow
Work FlowWork Flow
Work Flow
 
Task 2 workflow
Task 2 workflowTask 2 workflow
Task 2 workflow
 
critique review
critique reviewcritique review
critique review
 

Recently uploaded

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Recently uploaded (20)

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

2d game printscreens

  • 1. Firstly, I started by making a player sprite. After finishing my design, I gave it an ellipses mask as the shape was roughly similar to my sprite.
  • 2. Next, I programmed the movement code for my Player sprite, so that using the w,a,s,d keys, I was able to control the direction my sprite moved. Then, I started to make a background for my game, since my sprite was a space ship, it seemed appropriate to have a space background, therefore I made my first background a bunch of stars in space.
  • 3. Next I created a foreground image that would overlay on top of the first background and scroll slightly slower in order to give my game the feeling of depth. Then, I began creating a sprite for some smoke that would be used in a particle system for the jets of my player sprites exhaust.
  • 4. This is the code for my particle system. It makes the sprite fly out of the back of the player ship towards the left side of the screen in a random way, similar to what an actual exhaust would be like. In order to get my player able to shoot enemies, I needed to create a laser that would be fired from my ship. First I created a sprite that would be used as my laser.
  • 5. Then I programmed the code so that when fired, it would move towards the right of the screen from where it was fired. It would also play a custom sound effect that I made myself using reaper. Then I added the step event that checked whether the the laser was off the screen and if so, destroy itself. This is so hundreds of lasers don’t build up outside the screen and crash the game.
  • 6. Them, I went back to the player code and added an if statement that when the space bar was pressed it would fire a single laser. Here is what my game looked like so far:
  • 7. Now that I had the ability to shoot, I needed something to shoot. I created an new sprite that would be the first enemy of the game. I added a slight animation to the sprite that moved a few lasers along the back of the ship.
  • 8. I needed to add my enemy to the game but at random intervals and positions. Therefore I added this code that spawned the enemies in a V formation randomly from the right of the screen. Then I added an alarm that reset the spawn of the enemy from between 1 ½ and 2 seconds. Then I added the create event that began the alarm.
  • 9. In order for everything in my system to appear in the main game, the object had to be placed into the physical level. However, since it had no sprite it would be invisible to the player. Then, for them to move towards the left side of the screen, I changed their H speed to -10 and their image speed to 0.7 so that it would cycle its animation at 0.7 of its normal speed.
  • 10. Similar to the laser, if the enemy left the room it would disappear so as to not crash the game with too many instances. Here is the formation of which the enemies spawn.
  • 11. Next, I created an explosion animation for my enemies so that when they died they didn’t just disappear. I used the same particle system code except I changed the variables and sprite used.
  • 12. Then in the enemy object, I created a collision event that when hit by the player laser, it would play the explosion object. Here is the enemies exploding into the explosion object.
  • 13. I needed my enemies to fire back at me, therefore similar to the player, I created an enemy laser. These laser would move towards the player at whichever point the player was when the laser instance was created.
  • 14. This laser had the same code as the player laser where it would be destroyed when it left the room or when they hit the player. So that the player wouldn’t instantly die when a single bullet hit them, I implemented the code for shield/ health bar that when a bullet hit the player, the shield would go down.
  • 15. This code drew a red line in the actual game that showed how much life the player has and decreases when the player is hit. Then in the player object, I set up a collision object with the enemy laser that when hit, it would decrease the shield by 10 points.
  • 16. I then began work on a player explosion for when the player died. Once again, I used the same particle system apart from changing the variable and object again.
  • 17. Since this was the player explosion, when it ended after the alarm finished, it would destroy the explosion instance and it would restart the room so you could play again. Then I had to go back to the player object and add the code that every step, it would check to see if the player shield was at 0 and if so, it would change the instance to the player explosion.
  • 18. I wanted to add a scoring system, therefore I began by making code similar to the shield by m,aking a points variable and setting it to 0. Then I created the code that would draw the score at the top of the screen.
  • 19. In order for it to draw numbers, it needed a font, therefore I made one. Then, I went into the enemy object and added code that when hit by the laser, it would add 1 to the score count.
  • 20. Since it looked bare with one enemy, I added a second enemy with a flashing animation.
  • 21. Alongside my new enemy, I created another enemy laser which it would fire. Then I made the second enemy's spawn alarm to 2 seconds.
  • 22. Instead of having this enemy spawn in a V formation I decide it would make things to hectic, therefore I only made one spawn at a time. Then I added the code for it to shoot at the player, as well as all the other code from the first enemy.
  • 23. Here is the game with two enemies on screen firing. I wanted to add a bit extra challenge to my game, therefore I decided I wanted to make a boss for my player to kill. I began by making the sprite.
  • 24. I placed it just off screen so that when the level starts, it moves left onto screen for 55 steps where it stops. Before I continued with the boss, I wanted to make a start screen so that players wouldnt be dropped immediately into the action. I started by making a start button with two images, an on and off image.
  • 25. I made it so when the mouse hovered over the button, it would change to the on sprite and when the mouse left the button, it moved to the off sprite. Also, when the button it would move the the main room. The start screen looked quite blank, therefore I created a little sprite that would float across the screen, to spruce it up.
  • 26. I added plenty all around the start screen and created code that would make them float up to the left and out of the screen as if they are an armada moving through space. One thing I found was that the screen was very dark when playing the game, so I decided to make a large planet that would fly across the screen in the background as the game was played. I went into photo shop, created a larger sphere with a blue gradient and used a cloud like brush to make the clouds and used a bunch of tiny white dots to act as lights on the planets surface on the dark side.
  • 27. Using the same code as the boss, it moved from halfway on screen to completely of the left side and after it moved completely off it is destroyed so as not to possibly crash the game in any way. Here is a size comparison of the planet to the actual level.
  • 28. After I was happy with the background, I continued work on the boss, creating a destroyed/damaged version of the boss that would appear as parts of the boss are destroyed I seperated the original boss sprite into three in order for them to be destroyed seperately.
  • 29. I gave each the same movement code as the original boss so they would move in unison and not slip out of place. Then, similar to the other enemies, when the player appears it begins its alarm to fire its laser.
  • 30. So the pieces of the boss aren’t immediately destroyed I gave each piece a shield that had lots of health to be worn down over the course of the fight for the two cannons on each side of the boss, I created a large bright laser that would do large amaounts of damage to the player and also home onto him.
  • 31. For each step, they would check if their individual shields were below 0 and if so they would be destroyed, revealing the piece of broken ship beneath it. Finally, I set up a collision event with the player laser that would take 4 health of their shields with each hit.
  • 32. When the boss' middle section was destroyed, I want it to progress to a new stage of the boss battle, therefore, I created a new red laser that would rapidly fire from the middle and do plenty of damage. This is the same homing code as enemy1 except the alarm is sped up quite a lot, thus making the laser fire in much quicker intervals.
  • 33. This is how the ship pieces look when not on top of each other... and when they are.
  • 34. I decided I should make a unique explosion for my boss to make it feel unique when killing the boss. I set up an alarm in the boss explosion that destroyed itself and also signalled the game to move onto the win screen.
  • 35. For the win screen, I created a fancy box that had some end text inside congratulating the player for their accomplishment. Also in the room I had a retry button that restarted the game again in order for the player to try to get the high score.
  • 36. For the death screen, I cut up the player sprite into pieces as if they are floating in space after being defeated and turned them into their own object. Also, I created large text that would move down onto the screen after a few seconds.
  • 37. This code moves the text from off screen and stops it on screen. As for the dead player sprite, I made it move left and down very slowly as if all that remains is the
  • 38. pieces of the players ship floating through space forever. This is a zoomed out view of the death screen.
  • 39. The final thing to do was add music to each room to add spice to the game. In each room, there is an object that has code for stopping all other music and starting that rooms specific music. For example in the main room, its the system that has the code for playing the background music and stopping all other music. With this done, my game is in its finished state.