Continuing to work on the spell system

Todo (won’t do everything today):

  1. Make spell slots for QWER,ASD
    1. Save spells in those slots (prolly by passing SOs)
    2. Make it so that players can cast the spell in that slot
  2. Figure out how to aim spells
  3. Set up the conversion from number to physics

Let’s focus on… spell slots and making players cast spells

Today’s work:

  1. Got a basic spell done. When pressing Q, player can cast a spell towards the mouse
  2. There’s a basic spell slot system (an array of 7 elements, QWERASD respectively)

I’m a little lazy on touching the number to physics. I’m thinking that when spellcasting gets more fleshed out (and I have more spells), I can figure it out

The code is somewhat of a mess but I should be able to clean it up later. Really, all I have to do is separate the logic to different classes — right now they all just live in Player

I just realized that a player cannot see other players’ spells. This is prolly because I didn’t use commands and RPCs and stuff.

More work: