Snayff / nqp3

1 stars 2 forks source link

Very basic Commander #34

Closed eh-jogos closed 1 year ago

eh-jogos commented 1 year ago

This partially solves #8. I hadn't seen that sprites were added to the issue, so I ended up using Godot's icon.

Run the scene res://scenes/stages/commander_test/comander_test.tscn with F6 to see it working.

You can move your commander with wasd only for now, but you can't attack, so you'll take a beating from the AI Commander.

After you die, the game stops and prints "Game Over".

I created a player_actor scene that inherits from the actor scene, and uses a script that inherits from the Actor Script, so that I could override the "state machine" related functions and make it player controlled.

I also had to change some things in factory.gd:

I think this way we have some examples of using Inherited Scenes and not using them, though they're both really simple.

Let me know what you think of these changes, or if you want, we can go on a call and share screen to go over them in more detail, or even do some pair programming.