I am wondering what is the best practice for gamedevelopment for actioncript 3. I am currently creating a tile-based game, but I already have problems with individual classes.
This is the current situation:
Main class
An interface class contains all interface elements. For example, it is possible to call an object into the game. This object can be placed on the selected plate.
Now the problem is the following: the generated object is placed in the interface class, how should the generated object be able to communicate with tiles? The same problem occurs with several other parts in the game. How should a player be able to interact with a generated object? Everything in different classes makes communication between these things difficult.
Is there any standard game development routine that addresses this issue? I was thinking of creating a "world" class, where each object must be somehow placed. But it’s hard for me to actually do this with little knowledge of the kind of structure that I consider. For me this is all new, so I would appreciate it if the explanation was as possible proof of noob. Thanks in advance!
, , - , , ,
, Robotlegs, , .http://www.robotlegs.org/
Robotlegs.
. -, World, , Map, Unit . Map, Tile, . , Unit , . Game, World, , Player, Game World, . , , World Map, Tile, , .
World
Map
Unit
Tile
Game
Player
, - . , Model-View-Controller, , , , , , .
. Singlepat Dispatcher , .
, , , .
Source: https://habr.com/ru/post/1771107/More articles:UIDatePicker mode UIDatePickerModeCountDownTimer cannot select zero minutes - objective-cHABTM Association Record Deletion - cakephpAlternative color in ListView C # (.Net 3.5)? - background-colorpl / pgsql array as input for an aggregate function - plpgsqlпередача из отрасли в производство - gitVisual Studio C # projects: how to place conditional links in .csproj? - c #Facebook “Like” creates “An internal error occurred while refreshing the page.” - phpHow to create an object via RESTful PUT with NHibernate? - c #Deny controller permissions in CakePHP - authenticationCharacter Encoding Problem - c ++All Articles