Skip to content
Advertisement

Tag: game-engine

Set elements of a java array from another class or file

I’m making a game right now and I’m trying to setup a CreatePlayer method. In the main class, I take the Player class as an object to get its variables, methods ect. The 3rd parameter of Player is the Position, which is an array. The problem I’m having is that I’m not sure how to set each element of the

Advertisement