Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    3
  • comments
    0
  • views
    215

Maze game

MarklHarrison9

358 views

Maze

image.png.6243ca31f34238abcebaa534dead4088.png

This is the maze game; there isn’t a lot to show. You move the mouse up down left and right and the goal is to get the cheese when you do you are rewarded with a game over screen.

 

 

Click Game

image.png

 

In this game you click to remove walls to remove or add I was having a difficult time trying to do it though game maker, but I decided to write a code which was much simpler

image.png.7d3456809ef7f47462912cad16efa210.png

“”//check if mouse button pressed

if mouse_check_button_pressed(mb_left)

{position_empty((mouse_x div 40) * 40, (mouse_y div 40) * 40)

{instance_create((mouse_x div 40) * 40, (mouse_y div 40) * 40,wall);}}

//check if other mouse button pressed

if mouse_check_button_pressed(mb_right){

if position_meeting((mouse_x div 40) * 40, (mouse_y div 40) * 40,wall){

position_destroy((mouse_x div 40) * 40, (mouse_y div 40) * 40);}}”

I found that writing it out in code was not only more effective but less frustrating.

 

 

Legend of maze

image.png.f43aa0c635bdffb8ffc133071b9dc4e5.png

This is a redone version of the mouse game there are some general things to consider.

Cheeze = gives you 10 hp

Shyguy =  enemy

Bush = destroyable object

Link is not without weapons though…

image.png.fc675a9c4a11c0b744b6e71afad510d5.png

 

When pressing the “Z” button link will slash his sword in front of himself.

If you hold a direction and hit “X” link will perform a roll which makes him immune to enemies and projectiles.

image.png.deccf9bc69df2c472854cb202b7ec626.png

There are two types of enemies

Octo= an octopus that shoots a blue fireball, but only if you’re standing in front of him.

Shyguy= a midget wearing a mask that paces back and forth

Lives

You have 10 lives at the start eating cheese will replenish it but if you run out you die and cannot move!

There is however a resurrect button, by pressing “R” you will immediately resurrect where you died.

 

Oh no I’m stuck!

If for whatever reason you are unable to move or are stuck simply pressing the “R” key will revive your movement. ( I had a minor issue with the sword animation freezing link making him unable to move or attack)

End of documentation.

 

 

 

 

 



0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!