Edited README.md

This commit is contained in:
Michael Wain 2025-01-24 03:28:55 +03:00
parent 06a76bc1c4
commit 411a4795dc
5 changed files with 17 additions and 11 deletions

View File

@ -4,14 +4,14 @@
An unofficial server for semi-famous game Rolypolyland (Shararam). Remake by alterwain. Original by cl0zzzy (also me, but in 2018). An unofficial server for semi-famous game Rolypolyland (Shararam). Remake by alterwain. Original by cl0zzzy (also me, but in 2018).
## Caution ## Caution
> Anything you will do with this software is completely your responsibility. We **do not** provide any technical support nor we don't responsible for consequences you will face due to hosting of this server (Malfunction of your computer, lawsuit, data corruption). > Anything you will do with this software is completely your responsibility. We **do not** provide any technical support, nor we don't responsible for consequences you will face due to hosting of this server (Malfunction of your computer, lawsuit, data corruption).
> >
> >
> To avoid nasty aftermath, consider sharing access to instance of this server only to people you trust. > To avoid nasty aftermath, consider sharing access to instance of this server only to people you trust.
> >
> **We also don't have any paid services.** > **We also don't have any paid services.**
> >
> We only distribute software on [Github](https://github.com/) and [Gitea](https://gitea.awain.net/alterwain/WhimsyWorld). > We only distribute software on [GitHub](https://github.com/) and [Gitea](https://gitea.awain.net/alterwain/WhimsyWorld).
> >
> If you would like to have a little chat with me, here's my IRC server (TOR): > If you would like to have a little chat with me, here's my IRC server (TOR):

View File

@ -34,7 +34,7 @@ public class GameServer {
@Autowired @Autowired
private LocationService locationService; private LocationService locationService;
private Map<Long, Player> players; private final Map<Long, Player> players;
public GameServer() { public GameServer() {
this.players = new HashMap<>(); this.players = new HashMap<>();

View File

@ -24,11 +24,11 @@ public class ConnectedProcessor extends ConnectionProcessor {
private final Long startTimestamp; private final Long startTimestamp;
private ConnectedState state; private ConnectedState state;
private List<Byte> message; private final List<Byte> message;
private Integer expectedMessageLength; private Integer expectedMessageLength;
private Integer lastStreamId; private Integer lastStreamId;
private byte[] previousHeader; private byte[] previousHeader;
private GameServer gameServer; private final GameServer gameServer;
private Long playerId; private Long playerId;
public ConnectedProcessor(InputStream inputStream, OutputStream outputStream, Socket sock, GameServer gameServer) { public ConnectedProcessor(InputStream inputStream, OutputStream outputStream, Socket sock, GameServer gameServer) {

View File

@ -32,7 +32,7 @@ public class SerializerUtils {
} }
public static List<Field> getPrivateFields(Class<?> theClass) { public static List<Field> getPrivateFields(Class<?> theClass) {
List<Field> privateFields = new ArrayList<Field>(); List<Field> privateFields = new ArrayList<>();
Field[] fields = theClass.getDeclaredFields(); Field[] fields = theClass.getDeclaredFields();
for(Field field : fields){ for(Field field : fields){
if(Modifier.isPrivate(field.getModifiers())) { if(Modifier.isPrivate(field.getModifiers())) {

View File

@ -5,19 +5,24 @@
<style> <style>
body { body {
display: block; display: block;
margin: 0;
} }
#main { #main {
background-image: url('/img/game_bg.png'); background-image: url('/file/img/game_bg.jpg');
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: contain; background-size: contain;
max-width: 60vw; width: 100%;
max-height: 60vh;
} }
.ratio { .ratio {
display: grid; display: grid;
max-width: 84vw;
max-height: 84vw;
margin-left: auto;
margin-right: auto;
} }
.ratio > * { .ratio > * {
grid-area: 1/1; grid-area: 1/1;
} }
@ -30,11 +35,12 @@
</style> </style>
</head> </head>
<body> <body>
<div style="width: 100%;height: 2.5vh;background-color: #059ddc;"></div>
<div id="main"> <div id="main">
<div class="ratio"> <div class="ratio">
<svg viewBox="0 0 1.65 1"></svg> <svg viewBox="0 0 1.65 1"></svg>
<div> <div>
<embed type="application/x-shockwave-flash" src="/file/swf/base.swf" flashvars="game_server=http%3A%2F%2Flocalhost%3A8082%2F&url_path_server=http%3A%2F%2Flocalhost%3A8082%2F&portal_url=http%3A%2F%2Flocalhost%2F&manual_server_selection=1&start_step=0"> <embed wmode="transparent" type="application/x-shockwave-flash" src="/file/swf/base.swf" flashvars="game_server=http%3A%2F%2Flocalhost%3A8082%2F&url_path_server=http%3A%2F%2Flocalhost%3A8082%2F&portal_url=http%3A%2F%2Flocalhost%2F&manual_server_selection=1&start_step=0">
</div> </div>
</div> </div>
</div> </div>