agnacore / Spaceship

1 stars 1 forks source link

Get graphics basics set up #3

Closed agnacore closed 10 months ago

agnacore commented 11 months ago

Basically the frame, stage, that stuff

agnacore commented 11 months ago

the connection to logic needs to be done somewhere, ideally the logic controls the graphics

c-m-green commented 11 months ago

So what I'm thinking is we have the model class (Player, Enemy, etc.) have a sprite or kind of image object. The controller class would then be in charge of updating the ship's position.

We could create or get images to use for each ship type. For now, I gave them JavaFX rectangles. (See the associated PR.)

Ultimately, we may want to look into JavaFX animations, which I know nothing about at the moment.

c-m-green commented 11 months ago

@agnacore I think what I'll actually do is keep my assignment here and assign you to the pull request instead.