adamflentz/Game-Design-Group-7

Create PlayerView Class and Character Class

Closed this issue · 1 comments

The Rando class is what currently renders the view for the player and has the camera follow the player through the use of an sf::View.

If we make the Rando class a more general PlayerView class then we can use it to render our four separate views for our four players. This player view class should also render the more general UI elements for each player as well as the selected character.
Simply renaming Rando to PlayerView and then updating all the references should be sufficient.

However, currently the Rando class also handles the changing of animation as well as the keyboard input for our character, so we might want to move that functionality into a new Character class.
This Character class will be what our four main characters will be created from. This will simply do things like handle the joystick input and update the position of the character as well as the animation of the character. It might also hold attributes such as the type of character, health of the player, etc.

Separated the classes and showed proof of concept by creating 2 player screens. Still need to tie these views to separate characters and controllers.