Creating other spells

By playing around with particle systems, you can create a variety of different spells that do different effects.

The fire spell

You can easily create a fire variant of our blizzard spell by changing the color of the particle system to red:

The fire spell

The out val of the color changed to red

Exercises

Try the following exercises:

  1. Lightning spell: Create a lightning spell by using the beam particle. Follow Zak's tutorial for an example of how beams are created and shot in a direction, at https://www.youtube.com/watch?v=ywd3lFOuMV8&list=PLZlv_N0_O1gYDLyB3LVfjYIcbBe8NqR8t&index=7.
  2. Forcefield spell: A forcefield will deflect attacks. It is essential for any player. Suggested implementation: Derive a subclass of ASpell called ASpellForceField. Add a bounding sphere to the class, and use that in the ASpellForceField::Tick() function to push the monsters out.

What's next? I would highly recommend that you expand on our little game here. Here are some ideas for expansion:

  • Create more environments, expand the terrain, add in more houses and buildings
  • Add quests that come from NPCs
  • Define more melee weapons such as, swords
  • Define armor for the player, such as shields
  • Add shops that sell weapons to the player
  • Add more monster types
  • Implement loot drops for monsters

You have literally thousands of hours of work ahead of you. If you happen to be a solo programmer, form working relationships with other souls. You cannot survive in the game marketplace on your own.

It's dangerous to go alone—Take a friend.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.178.9