Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

which flame starting point (game or base_game) for point and click 2D static type adventure game?

Looking for points/advice re using Flame (Flutter library) for a point & click 2D adventure game. So mainly different rooms with images, tap listeners, some minimal animations. So no physics or "real time" stuff.

Q1 - Which of the flame starting points would be recommended re "game.dart" vs "base_game.dart"?

Q2 - Any other tips/guidance for this? (e.g. dont' bother using flame just use flutter?)

question from:https://stackoverflow.com/questions/65894317/which-flame-starting-point-game-or-base-game-for-point-and-click-2d-static-typ

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This is a very wide question for the StackOverflow format, but since I'm one of the developers of Flame I'll try to respond as well as I can.

Q1:

  • Definitely go with BaseGame, if you are using Game you get locked out of a lot of the features of the engine. Game is used if you pretty much only need the game loop.

  • Make use of the components, they will make your development process a lot simpler. For examples use SpriteComponent instead of Sprite directly etc.

  • There is also a package built on top of Flame that is called Bonfire (not built by the flame-engine team) that you could use too, but that is a more opinionated way for writing an RPG game.

Q2:

  • You can join our Discord chat and we'll try to answer any questions you have.
  • Use v1.0.0-rcX, even though it is still rc it is the definitely the way to go if you are starting a new project now, so that you don't have to migrate it later. In a couple of months the final v1.0.0 should be released.
  • Have a look in the examples directory in the repository, you can get inspiration for how to use most features available in the engine there.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...