diff options
| author | arngo <[email protected]> | 2021-12-26 22:33:19 -0500 |
|---|---|---|
| committer | arngo <[email protected]> | 2021-12-26 22:33:19 -0500 |
| commit | 73d33929c11307f2589413a3901b574ccdc2a449 (patch) | |
| tree | 6799567bd7281abf0b87799bdd1bda2080908c17 /app/systems/start_game.rb | |
| parent | 09fe8467d670a9eace7c0c60e21e5aa81fc0b8e9 (diff) | |
| parent | 930802e49e33c87ef0fd2f102b9205a4098878d3 (diff) | |
| download | SteelWings-73d33929c11307f2589413a3901b574ccdc2a449.tar.gz SteelWings-73d33929c11307f2589413a3901b574ccdc2a449.zip | |
Merge branch 'score-dev' into development
Diffstat (limited to 'app/systems/start_game.rb')
| -rw-r--r-- | app/systems/start_game.rb | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/app/systems/start_game.rb b/app/systems/start_game.rb index a936c21..e2e5501 100644 --- a/app/systems/start_game.rb +++ b/app/systems/start_game.rb @@ -57,14 +57,38 @@ FF::Sys.new('StartGame', priority: 50 ) do FF::Cmp::Hitcircle.new(r: 16), ) - + score_label_shadow = FF::Cmp::Label.new + score_label_shadow.props.merge!({ + x: 50, + y: 667, + text: '0', + size_enum: 8, + r: 100, + g: 100, + b: 100, + font: 'fonts/kenvector_future_thin.ttf', + }) + score_label = FF::Cmp::Label.new + score_label.props.merge!({ + x: 50, + y: 670, + text: '0', + size_enum: 8, + font: 'fonts/kenvector_future_thin.ttf', + }) + score = FF::Cmp::SingletonScore[0] + score.score = 0 + FF::Ent.new( + score_label, + score_label_shadow, + score, + ) FF::Stg.add( FF::Scn::BoidRules, FF::Scn::Camera, FF::Scn::Cleanup, ) - FF::Scn::Debug.add(FF::Sys::DebugRenderVectorArrow) @pause = false #FF::Stg.remove FF::Scn::BoidRules |
