Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Augmentile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Auglement
Augmentile
Commits
e1b42630
Verified
Commit
e1b42630
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Add types to Game class
parent
4d85bff2
No related branches found
No related tags found
No related merge requests found
Pipeline
#7436
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/frontend/game.ts
+8
-3
8 additions, 3 deletions
src/frontend/game.ts
with
8 additions
and
3 deletions
src/frontend/game.ts
+
8
−
3
View file @
e1b42630
...
...
@@ -13,21 +13,24 @@
* limitations under the License.
*/
import
Phaser
from
'
phaser
'
;
import
*
as
Phaser
from
'
phaser
'
;
import
SplashScene
from
'
./scenes/splash
'
;
import
LoginScene
from
'
./scenes/login
'
;
import
{
BaseBackend
}
from
'
../backends/base
'
import
'
./game.css
'
;
/** Main game class serving as frontend. */
class
Game
extends
Phaser
.
Game
{
backend
:
BaseBackend
;
/**
* Construct a game instance linked to an already initialised backend.
*
* @param {object} backend - Reference to the backend instance
*/
constructor
(
backend
)
{
constructor
(
backend
:
BaseBackend
)
{
// Phaser configuration
const
config
=
{
const
config
:
Phaser
.
Types
.
Core
.
GameConfig
=
{
title
:
'
Aug[m]entile
'
,
url
:
'
https://edugit.org/auglement/augmentile
'
,
backgroundColor
:
0xffb175
,
...
...
@@ -76,6 +79,8 @@ class Game extends Phaser.Game {
'
message
'
:
error
,
});
}
loadMap
(
mapData
)
{}
}
export
default
Game
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment