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).
## 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.
>
> **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):

View File

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

View File

@ -24,11 +24,11 @@ public class ConnectedProcessor extends ConnectionProcessor {
private final Long startTimestamp;
private ConnectedState state;
private List<Byte> message;
private final List<Byte> message;
private Integer expectedMessageLength;
private Integer lastStreamId;
private byte[] previousHeader;
private GameServer gameServer;
private final GameServer gameServer;
private Long playerId;
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) {
List<Field> privateFields = new ArrayList<Field>();
List<Field> privateFields = new ArrayList<>();
Field[] fields = theClass.getDeclaredFields();
for(Field field : fields){
if(Modifier.isPrivate(field.getModifiers())) {

View File

@ -5,19 +5,24 @@
<style>
body {
display: block;
margin: 0;
}
#main {
background-image: url('/img/game_bg.png');
background-image: url('/file/img/game_bg.jpg');
background-repeat: repeat-x;
background-size: contain;
max-width: 60vw;
max-height: 60vh;
width: 100%;
}
.ratio {
display: grid;
display: grid;
max-width: 84vw;
max-height: 84vw;
margin-left: auto;
margin-right: auto;
}
.ratio > * {
grid-area: 1/1;
}
@ -30,11 +35,12 @@
</style>
</head>
<body>
<div style="width: 100%;height: 2.5vh;background-color: #059ddc;"></div>
<div id="main">
<div class="ratio">
<svg viewBox="0 0 1.65 1"></svg>
<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>