R
R
Roman2020-01-03 05:05:27
JavaScript
Roman, 2020-01-03 05:05:27

The internal architecture of the game. Before I go further, do you need some good advice on existing jambs?



The question is actually this, I don’t quite understand how to correctly / beautifully make tracking collisions (collisions) of game objects and where to place the logic for handling emerging collisions? Now all this is included in the Ball class, but it turns out to be a wild hodgepodge, and I don’t see another acceptable option. Maybe it's just time for bed. I will be glad to any good detailed answer/comment on the subject matter.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor P., 2021-01-12
@lastuniverse

I can recommend the book Graphics in javascript by Raffaello Cecco - there, in one chapter, the space invaders game is made and your question is sorted out, among other things

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question