Search found 12 matches
- Sat Dec 12, 2020 3:09 am
- Forum: General
- Topic: Advice on moving groups of instances
- Replies: 5
- Views: 5528
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.
- Fri Dec 11, 2020 5:50 pm
- Forum: General
- Topic: Advice on moving groups of instances
- Replies: 5
- Views: 5528
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...
- Fri Dec 11, 2020 1:40 am
- Forum: General
- Topic: Advice on moving groups of instances
- Replies: 5
- Views: 5528
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...
- Mon Dec 07, 2020 1:34 am
- Forum: Support and Development
- Topic: Managing multiple class objects at same time
- Replies: 9
- Views: 6106
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...
- Sun Dec 06, 2020 9:05 pm
- Forum: Support and Development
- Topic: Managing multiple class objects at same time
- Replies: 9
- Views: 6106
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. ...
- Sun Dec 06, 2020 4:42 pm
- Forum: Support and Development
- Topic: Advice on getting two unrelated class objects to interact
- Replies: 4
- Views: 3322
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!
- Sun Dec 06, 2020 5:08 am
- Forum: Support and Development
- Topic: Advice on getting two unrelated class objects to interact
- Replies: 4
- Views: 3322
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).
- Sun Dec 06, 2020 4:58 am
- Forum: Support and Development
- Topic: Managing multiple class objects at same time
- Replies: 9
- Views: 6106
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...
- Sun Dec 06, 2020 3:00 am
- Forum: Support and Development
- Topic: Managing multiple class objects at same time
- Replies: 9
- Views: 6106
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 ...
- Thu Dec 03, 2020 9:32 pm
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1814
- Views: 1798577
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...