Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TDT4240-group23
SpaceCheckers
Commits
c84afdb2
Commit
c84afdb2
authored
Apr 25, 2021
by
Anders H. Rebner
Browse files
Renamed Client and Server-file to SpaceCheckers
parent
5fb4be88
Changes
6
Show whitespace changes
Inline
Side-by-side
CheckersClient/android/src/com/mygdx/game/AndroidLauncher.java
View file @
c84afdb2
...
...
@@ -10,6 +10,6 @@ public class AndroidLauncher extends AndroidApplication {
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
AndroidApplicationConfiguration
config
=
new
AndroidApplicationConfiguration
();
initialize
(
new
Uni
CheckersClient
(),
config
);
initialize
(
new
Space
CheckersClient
(),
config
);
}
}
CheckersClient/core/src/com/mygdx/game/
Uni
CheckersClient.java
→
CheckersClient/core/src/com/mygdx/game/
Space
CheckersClient.java
View file @
c84afdb2
...
...
@@ -16,27 +16,18 @@ import com.mygdx.game.views.GameViewManager;
import
com.mygdx.game.views.LoadingView
;
import
java.util.ArrayList
;
public
class
Uni
CheckersClient
extends
ApplicationAdapter
{
public
class
Space
CheckersClient
extends
ApplicationAdapter
{
PlayerController
playerController
;
private
GameViewManager
gvm
;
private
SpriteBatch
sb
;
private
AssetManager
assetManager
;
private
Stage
stage
;
private
Viewport
viewport
;
private
Skin
skin
;
ArrayList
<
PlayerController
>
playerControllers
=
new
ArrayList
<>();
NetworkController
networkController
;
@Override
public
void
create
()
{
Gdx
.
gl
.
glClearColor
(
0
,
0
,
1
,
1
);
viewport
=
new
FitViewport
(
Gdx
.
graphics
.
getWidth
(),
Gdx
.
graphics
.
getHeight
());
stage
=
new
Stage
(
viewport
);
Viewport
viewport
=
new
FitViewport
(
Gdx
.
graphics
.
getWidth
(),
Gdx
.
graphics
.
getHeight
());
Stage
stage
=
new
Stage
(
viewport
);
Gdx
.
input
.
setInputProcessor
(
stage
);
// Initialize controllers..
...
...
@@ -44,10 +35,10 @@ public class UniCheckersClient extends ApplicationAdapter {
playerController
=
new
PlayerController
(
networkController
);
// Initialize Views..
sb
=
new
SpriteBatch
();
assetManager
=
new
AssetManager
(
new
InternalFileHandleResolver
());
SpriteBatch
sb
=
new
SpriteBatch
();
AssetManager
assetManager
=
new
AssetManager
(
new
InternalFileHandleResolver
());
skin
=
new
Skin
(
Gdx
.
files
.
internal
(
"UISkins/glassy/skin/glassy-ui.json"
));
Skin
skin
=
new
Skin
(
Gdx
.
files
.
internal
(
"UISkins/glassy/skin/glassy-ui.json"
));
skin
.
getFont
(
"font"
).
getData
().
setScale
(
1.4
F
);
gvm
=
new
GameViewManager
();
...
...
CheckersClient/desktop/src/com/mygdx/game/desktop/DesktopLauncher.java
View file @
c84afdb2
...
...
@@ -2,7 +2,7 @@ package com.mygdx.game.desktop;
import
com.badlogic.gdx.backends.lwjgl.LwjglApplication
;
import
com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
;
import
com.mygdx.game.
Uni
CheckersClient
;
import
com.mygdx.game.
Space
CheckersClient
;
import
java.io.IOException
;
...
...
@@ -11,7 +11,7 @@ public class DesktopLauncher {
LwjglApplicationConfiguration
config
=
new
LwjglApplicationConfiguration
();
config
.
width
=
2160
;
config
.
height
=
1080
;
new
LwjglApplication
(
new
Uni
CheckersClient
(),
config
);
new
LwjglApplication
(
new
Space
CheckersClient
(),
config
);
}
...
...
CheckersServer/android/src/com/mygdx/game/AndroidLauncher.java
View file @
c84afdb2
...
...
@@ -10,6 +10,6 @@ public class AndroidLauncher extends AndroidApplication {
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
AndroidApplicationConfiguration
config
=
new
AndroidApplicationConfiguration
();
initialize
(
new
Uni
CheckersServer
(),
config
);
initialize
(
new
Space
CheckersServer
(),
config
);
}
}
CheckersServer/core/src/com/mygdx/game/
Uni
CheckersServer.java
→
CheckersServer/core/src/com/mygdx/game/
Space
CheckersServer.java
View file @
c84afdb2
...
...
@@ -7,7 +7,7 @@ import com.badlogic.gdx.graphics.Texture;
import
com.badlogic.gdx.graphics.g2d.SpriteBatch
;
import
com.mygdx.game.controller.ServerController
;
public
class
Uni
CheckersServer
extends
ApplicationAdapter
{
public
class
Space
CheckersServer
extends
ApplicationAdapter
{
SpriteBatch
batch
;
Texture
img
;
...
...
CheckersServer/desktop/src/com/mygdx/game/desktop/DesktopLauncher.java
View file @
c84afdb2
...
...
@@ -2,13 +2,13 @@ package com.mygdx.game.desktop;
import
com.badlogic.gdx.backends.lwjgl.LwjglApplication
;
import
com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
;
import
com.mygdx.game.
Uni
CheckersServer
;
import
com.mygdx.game.
Space
CheckersServer
;
import
java.io.IOException
;
public
class
DesktopLauncher
{
public
static
void
main
(
String
[]
arg
)
throws
IOException
{
LwjglApplicationConfiguration
config
=
new
LwjglApplicationConfiguration
();
new
LwjglApplication
(
new
Uni
CheckersServer
(),
config
);
new
LwjglApplication
(
new
Space
CheckersServer
(),
config
);
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment