Search found 204 matches

by ReFreezed
Thu Dec 10, 2020 1:43 am
Forum: Support and Development
Topic: Error after trying to package game distribution
Replies: 2
Views: 772

Re: Error after trying to package game distribution

Filenames in zip files are case sensitive. The file "Inception.mp3" has an uppercase I, but you're trying to load "inception.mp3".
by ReFreezed
Sun Dec 06, 2020 10:27 pm
Forum: Support and Development
Topic: Managing multiple class objects at same time
Replies: 9
Views: 1149

Re: Managing multiple class objects at same time

I would advice minimizing the usage of manager classes as I think they're usually not very useful - they often just spread out the code. But the "state of things" has to be controlled somewhere, whether it's in a manager class or e.g. directly in PlayState (in reference to your other thread). I'm no...
by ReFreezed
Sun Dec 06, 2020 9:34 pm
Forum: Games and Creations
Topic: Spikes Are the Enemy
Replies: 2
Views: 825

Re: Spikes Are the Enemy

Pretty nice for a first game. Those are some floaty controls! I like the music a lot. Here are some thoughs I had while playing: The game needs a different jump button, like z. Since the game is controlled with the keyboard, the menus should also have keyboard controls. The camera is too far to the ...
by ReFreezed
Sun Dec 06, 2020 8:51 pm
Forum: Support and Development
Topic: Managing multiple class objects at same time
Replies: 9
Views: 1149

Re: Managing multiple class objects at same time

Yeah, that Shelter situation does look similar, though I have to ask why a Shelter consists of multiple actual shelters? If there's no relation between the individual shelters then just have each Shelter represent one thing (i.e. have four separate Shelter objects instead of that self.shelters array...
by ReFreezed
Sun Dec 06, 2020 4:12 am
Forum: Support and Development
Topic: Managing multiple class objects at same time
Replies: 9
Views: 1149

Re: Managing multiple class objects at same time

Well, you can always get rid of the Enemy class and just have the enemies be represented by "plain old tables" (i.e. basically move the Enemy methods/functionality to the EnemyFormation class, and think of the enemies as just data instead of individual "objects"). It's a good idea in general to keep...
by ReFreezed
Sun Dec 06, 2020 3:41 am
Forum: Support and Development
Topic: Advice on getting two unrelated class objects to interact
Replies: 4
Views: 859

Re: Advice on getting two unrelated class objects to interact

I do think you're thinking too hard about encapsulation. For things to interact at all there has to be a connection somewhere, as you're indicating. Either the lasers have to know about the player, or the player has to know about the lasers, or the PlayState/some outside code has to either handle th...
by ReFreezed
Sun Dec 06, 2020 2:51 am
Forum: Support and Development
Topic: Managing multiple class objects at same time
Replies: 9
Views: 1149

Re: Managing multiple class objects at same time

Is there an issue with how you're currently handling the situation? As I understand it, EnemyFormation represents a group of enemies and thus is a different "thing" from what Enemy represents, i.e. an enemy. That separation into two classes seem logical. I'm not sure what you mean by combining these...
by ReFreezed
Sun Dec 06, 2020 2:15 am
Forum: Support and Development
Topic: Queueable sources don't always free buffers
Replies: 3
Views: 789

Re: Queueable sources don't always free buffers

I'm just guessing here, but I think this is just an effect caused by multiple audio-related things simply not being in sync. Your code always prints either 7, 8 or none for me. Disabling vsync or increasing 'buffers' doesn't make any difference - it seems that the buffers in the source get "freed" i...
by ReFreezed
Thu Dec 03, 2020 10:14 pm
Forum: General
Topic: Looking for advice
Replies: 9
Views: 5309

Re: Looking for advice

My advice is to not listen to any advice. :) (Seriously though, everyone's got their own programming style and there's no right or wrong. While one "practice" works well for some, it doesn't work well for others. My actual advice is to look for your own style by doing programming instead of asking r...