Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPCs #44

Closed
romman8 opened this issue Sep 15, 2017 · 0 comments
Closed

NPCs #44

romman8 opened this issue Sep 15, 2017 · 0 comments

Comments

@romman8
Copy link
Collaborator

romman8 commented Sep 15, 2017

Unser Spiel basiert auf einer Story. Man schreitet in dieser Story über die Interaktion mit anderen Charakteren voran.
Wir brauchen also diese "anderen Charaktere". Sie sollen vom Programm und nicht vom Spieler gesteuert werden. Es sollen also "Non-player charakter"s sein.
Diese gilt es als Spielobjekte zu implementieren.

Auf dem Weg dorthin:

  • soll die Klasse "NPC" als Unterklasse von "SDL_GameObject" implementiert werden,
  • soll die Interaktion des Spielers mit "NPC" ermöglicht werden.

Die Implementierung dieser Klasse wird ähnlich wie die von Player (natürlich ohne das Inputhandling).

Die Schwierigkeit in diesem Ticket besteht darin die Interaktion mit anderen Objekten zu implementieren. Beim Druck einer Interaktionstaste (eventuell Leertaste), soll gecheckt werden, ob sich direkt vor dem Playerobjekt (Blickrichtung beachten) ein weiteres Objekt befindet (kann u.a. mit collision detection mit einem neuen collisionRect umgesetzt werden).
Falls ja, soll die Interaktionsmethode (Signatur: interact(Player* pPlayer)) aufgerufen werden, welche jedoch noch nicht befüllt werden soll.

@romman8 romman8 added this to the Story milestone Sep 15, 2017
@romman8 romman8 mentioned this issue Sep 15, 2017
@ariogato ariogato added this to TODO in Koramu Oct 20, 2017
@ariogato ariogato self-assigned this Oct 21, 2017
@ariogato ariogato moved this from TODO to In progress in Koramu Oct 21, 2017
@ariogato ariogato moved this from In progress to Review in Koramu Oct 22, 2017
@romman8 romman8 closed this as completed Oct 27, 2017
@romman8 romman8 moved this from Review to Done in Koramu Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants