TimWhiting / game_scaffold

3 stars 0 forks source link

interesting! #1

Open xiongdi9456 opened 3 years ago

xiongdi9456 commented 3 years ago

better to have a small demo

TimWhiting commented 3 years ago

I know. Currently it is only being used by myself for a personal game site, and a game platform for some research that I'm doing in grad school. I'm in the process of transitioning both systems to use this package. If you are interested you are free to look into it, and create a small demo of your own (PRs welcome!). But I can't promise that I have time right now to create a demo. (If you look in the game_scaffold_dart) there should be a small demo of a command-line tic-tac-toe. (dart bin/no_server_example.dart). It runs the game in the same process as the clients. However, the package also includes an socket-io server implementation of the backend, which I use personally. Eventually I'd like to add a Firebase implementation. Note that this package is more meant to work with slow moving multiplayer games (card games / board games), and not high performance video-games. I can't guarantee I'll ever focus on performance, though of course I have performance in mind when coding this. Eventually I had planned on creating a small example / demo app in the flutter package for showcasing how to access the clients in flutter. (Probably just building on the tic-tac-toe example)

TimWhiting commented 3 years ago

It's also pretty opinionated in that it makes a lot of use of the freezed, riverpod, and flutter_hooks packages. So if you are interested in this I'd get familiar with those libraries first maybe.

TimWhiting commented 3 years ago

Found some time today & just added a basic flutter example in the flutter directory. It's not quite fully functioning but it gives the general idea.

example link

xiongdi9456 commented 3 years ago

thank you so much