DEV Community

Maciej Sawicki
Maciej Sawicki

Posted on

[Game of Purpose] Day 17

Today I created a new project called Sky Patrol. I added it to a Perforce repository, configured my user, set up stream depot, added Main stream and submitted initial commit.

I want to create a game, where you are a drone operator and drop granades on the enemy troops or vehicles. You could have different kind of drones with different mobilities. Each drone can have various upgradable accessories. They could be kamikaze drones, surveilance drones or drones dropping payload. They could also pick up some stuff left by enemy troops.

There could be missions, where you are deployed and need to fly low, to avoid radars or high, to avoid generating noise. You would need to prevent enemies from advancing. Each kill gains you reputation, for which you gain access to a better equipment.

I followed this tutorial, which allowed me to make my model fly. It was very straightforward and I learned about some Event Graph nodes:

  • Flop Flop - each trigger forwards to either A or B endpoint one after another. Image description

  • Retriggerable Delay - it looks like it's something similar to a debounce function, where event is retransmitted on after a certain period passes without it being interrupted by another event.
    Image description

  • Movement Mode - character behaves differently in different modes out of the box. Not sure how to change it for now.
    Image description

Triggering flying mode with double space bar:
Image description

Holding Space bar while flying makes the character go higher, whereas holding left Ctrl make it go lower:

Image description

Demo:

Top comments (0)