Search found 12 matches

by Krumpet
Sat Dec 12, 2020 3:09 am
Forum: General
Topic: Advice on moving groups of instances
Replies: 5
Views: 3040

Re: Advice on moving groups of instances

Thanks again. My mind was drifting toward the question of, "Hmmm...how does this impact my ability to still interact directly with enemy instances?" Appreciate you mentioning it.
by Krumpet
Fri Dec 11, 2020 5:50 pm
Forum: General
Topic: Advice on moving groups of instances
Replies: 5
Views: 3040

Re: Advice on moving groups of instances

These recommendations are exactly what I was hoping for. Greatly appreciated! zorg - For something like Space Invaders where all enemies move an equivalent amount simultaneously (no independent movement), drawing to the canvas object and then moving said object seems ideal. Thanks for the input! pgi...
by Krumpet
Fri Dec 11, 2020 1:40 am
Forum: General
Topic: Advice on moving groups of instances
Replies: 5
Views: 3040

Advice on moving groups of instances

Note: Jump to the final paragraph for the questions if you don't want to read the back story. Thanks. When I started building my Space Invaders clone, I considered the movement of the grid of enemies and thought, "Well, it sure seems inefficient to loop through this table of enemy objects, upd...
by Krumpet
Mon Dec 07, 2020 1:34 am
Forum: Support and Development
Topic: Managing multiple class objects at same time
Replies: 9
Views: 2162

Re: Managing multiple class objects at same time

Funny! I was aiming to trim my PlayState file down to the absolute bare minimum in favor of everything living in deeper object relationships. In my head, I'm drawn to such relationships. They seem simpler and more logical to me. However, as I've gone further down this path, I've begun to run into th...
by Krumpet
Sun Dec 06, 2020 9:05 pm
Forum: Support and Development
Topic: Managing multiple class objects at same time
Replies: 9
Views: 2162

Re: Managing multiple class objects at same time

I think what you're saying is either approach (a single class or a class with a manager class) is acceptable. The issue I noticed with this Shelter approach is updating the Shelters (for example when they take damage from the Enemy objects) will be much harder when they aren't individual instances. ...
by Krumpet
Sun Dec 06, 2020 4:42 pm
Forum: Support and Development
Topic: Advice on getting two unrelated class objects to interact
Replies: 4
Views: 1627

Re: Advice on getting two unrelated class objects to interact

Agreed, passing the object vs. the parameters would be better. If I remember correctly, that is how I originally set it up, but I changed it for a reason I can't remember now. Thanks for the feedback!
by Krumpet
Sun Dec 06, 2020 5:08 am
Forum: Support and Development
Topic: Advice on getting two unrelated class objects to interact
Replies: 4
Views: 1627

Re: Advice on getting two unrelated class objects to interact

Thanks so much for your perspective on this. It doesn't sound like there are any techniques I'm missing here due to my inexperience (or, if there are, they aren't critical to where I'm at and I'll get to them later).
by Krumpet
Sun Dec 06, 2020 4:58 am
Forum: Support and Development
Topic: Managing multiple class objects at same time
Replies: 9
Views: 2162

Re: Managing multiple class objects at same time

What you are suggesting sounds like what I did for my Shelter class. I wanted to have four shelters the player can hide behind. This put me in the exact same situation of having to manage multiple instances. As I mentioned, I wanted to avoid using two classes to do this. I ended up putting the x-, y...
by Krumpet
Sun Dec 06, 2020 3:00 am
Forum: Support and Development
Topic: Managing multiple class objects at same time
Replies: 9
Views: 2162

Re: Managing multiple class objects at same time

The issue is I would prefer to manage the enemies with a single class. I worry that using two classes is amateur hour and that I'm not seeing an obvious way to accomplish the same results with one class. It isn't that what I have doesn't work. It works. I'm trying to understand if my approach could ...
by Krumpet
Thu Dec 03, 2020 9:32 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1729
Views: 800927

Re: What's everyone working on? (tigsource inspired)

I'm new here so, hello! I'm working on a collection of retro clones. The usual suspects, Breakout, Space Invaders, Mario, Zelda, etc. as a way to learn LOVE and better understand techniques, tricks and best practices. I started out with this course from edx.org which, speaking as a novice, is really...