• About
  • Games
  • Asset Packs
  • 3D Art
  • Environments
  • Game Studies
  • Blog
Stefan Dolidis
  • About
  • Games
  • Asset Packs
  • 3D Art
  • Environments
  • Game Studies
  • Blog
Stefan Dolidis

2. You Got the Power...

8/4/2021
Picture
More work on game mechanics. ⚙️​
​Continued work for the game by adding an 'enemy' gameobject. The player can drop on an enemy's head to kill them and gain a score point for your overall score. Plan is to have static and moving enemies in game, but for now the enemy does not move.

Also added coins that the player can collect. These will be useful to buy (in-game) new skins and/or playable characters, as well as unlock other levels if the score requirement is not achieved.
Current 'Coin' Script (moves towards player if close)

    
​Obstacles/walls are now prefabs and a spawner object is attached to the main camera that instantiates obstacle prefabs at a set amount of seconds. This will be improved upon in the future, by creating an 'object pooler' script that instantiates a set amount of obstacles in the scene before game start and then by enabling and disabling them I won't have to keep creating and destroying objects.
​Right now I have coins, enemies and obstacles spawning by separate spawner scripts, I might have to make prefab 'sets' that include all in one prefab so I can spawn one prefab that was designed by me instead of randomly spawning each game object randomly. Right now, they spawn on their own timers, but sometimes an enemy is blocking the players way and the player has no choice but to lose. I could tell the enemy object to destroy itself if it's blocking the way, but on the other hand, by having predetermined placement, I can edit and improve the level layout if need be.
Picture
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    May 2022
    January 2022
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    November 2020
    October 2020
    March 2020
    February 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    October 2018
    September 2018

    Categories

    All
    Coding
    Development
    Games Life
    Game Studies
    Old Blog

    RSS Feed

© ​Stefan Dolidis