Skip to content

Commit

Permalink
Merge branch 'server-side' of https://github.com/Lost-Fly/PackAndGo-A…
Browse files Browse the repository at this point in the history
…ndroidMultiplayerGame into server-side
  • Loading branch information
LizaVeprova301 committed May 5, 2024
2 parents 087412f + 8aae7a9 commit 04e0354
Show file tree
Hide file tree
Showing 17 changed files with 175 additions and 1,062 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private WebSocketListener getWebsocketListener(EventListenerCallback callback) {
WebSocketListener webSocketListener = new WebSocketListener() {
@Override
public void onMessageReceived(String message) {
Gdx.app.log("MESSAGE RECEIVED", "MESSAGE: " + message);
// Gdx.app.log("MESSAGE RECEIVED", "MESSAGE: " + message);
WsEvent wsEvent = new WsEvent();
wsEvent.setData(message);
callback.onEvent(wsEvent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public MessageProcessor(Main main) {

public void processEvent(WsEvent event) {
String data = event.getData();
Gdx.app.log("PROCESSED EVENT", data);
// Gdx.app.log("PROCESSED EVENT", data);
if (data != null) {

JsonReader jsonReader = new JsonReader();
Expand Down Expand Up @@ -65,7 +65,6 @@ private void processObject(JsonValue object) {
String id = object.getString("id");
float x = object.getFloat("x");
float y = object.getFloat("y");
Gdx.app.log("CASE PLAYER MSGPROC", "id " + id + " x " +x + " y " + y );

main.renderer.getGameScreen().updatePlayerArray(id, x, y);
break;
Expand Down
18 changes: 14 additions & 4 deletions assets/Map.tmx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,21 @@
<tileset firstgid="11991" source="hero.tsx"/>
<layer id="1" name="background" width="48" height="48">
<data encoding="base64" compression="zlib">
eJztmVlsVFUYxz+S0lJpCy6Jxg4z05Z2KLglaiguD+IuSNIWWXyagi8u4BYB8cm6RMFXoLhO4gJlirGFoPiksmgMLl1mphSNCyq4vKiJ+4O/6703cz1zOnPPnUtsEx9++b77nTPn+8+535x7v3Zoqrw1CMMwNIl811ocqZbk1diFcBVMBh/N4nyPFLHUH5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6KXe9Yu8/up5pJGT95a7n1g/fQY5U//N3UStmfS8J03dRnwXesSDrozllabcYdhj0XIflu6j6h0PKO79CpK3CzJrQNs46D/A8WgcP8l6wEfp5fgzAHtjbmo+X0vMuvGdog+hX18mgPQtH0TgGp+OfAWfCWZ54KT1B9n8i2SD7P5Hsf71/fm17s0hH8+Td/360DzRP3v3/v/4npu2qDM4qWK34h+tFLq4VuQQurTX33683y/9jGfwEPyu+pf8AOg7CoVpz39Jvkv/hquB0W39jsP5HHOFsg86Irb+zTmQp3FJn7lv6TfJ/w2dOwMm64P4X6P4SjkfCqR+T3OtmiKyHDTOC+/fOErkP7p8VTv2Y5K6cKVIF02aG44dRPyb5wqgfr7+MGloOK2BlAP/WiFm+vwFEpZ5j
</data>
</layer>
<objectgroup id="7" name="floor">
<layer id="2" name="graphics" width="48" height="48">
<data encoding="base64" compression="zlib">
</data>
</layer>
<objectgroup id="3" name="lightObject">
<object id="102" type="flowers" gid="11721" x="337.995" y="544.009" width="32" height="32"/>
<object id="103" type="flowers" gid="11721" x="254.468" y="543.015" width="32" height="32"/>
<object id="110" name="tabouret" type="tabouret" gid="11567" x="469.333" y="745.333" width="32" height="32"/>
</objectgroup>
<objectgroup id="6" name="hero">
<object id="111" name="hero" gid="11991" x="444.667" y="721.333" width="16" height="16"/>
</objectgroup>
<objectgroup id="5" name="ground">
<object id="34" type="floor" x="31.3333" y="92.6667" width="287.333" height="211.333"/>
<object id="35" type="floor" x="336.667" y="94.6667" width="142.667" height="208.667"/>
<object id="36" type="floor" x="496.667" y="95.3333" width="238.667" height="207.333"/>
Expand All @@ -43,7 +54,6 @@
</objectgroup>
<layer id="2" name="graphics" width="48" height="48">
<data encoding="base64" compression="zlib">
eJztl0lOw0AQRStKAiwY9sACRUoOQhg2EO7AeBBYAScBEiTGezDeBVjwLWzRarpdXbJD3FY96UnVrXT5x3JiFZFSBT6miD7hV6q59tWuPbtXwnaHaNAJy3HTJLqFd/AePsDHJn/udJroDJ6nmmtf7dqzeyUMkX0UmH+1RdSHa3AdbsDNFn9ucYZoCS6nmmtf7dqze211cf/hAO50+RxPyPoMX+ArfIPvAfkvcK1LeJVqrn21a+9PL2QewhG8Dsi/2ybag/vwAB7CozZ/LuO48avks+YZs57tEc3BebjQc/c5afyY19d1naoQe34J0vyxf2/NX16GImf/K3/Zv9lJ58/2yuw3Tur2f6koCo90rgqpJdcs2ls6V4XUHNJ+eb2lc1VIzSHtl9dbOleF1BzSfnm9sxnCnCPstU3Z70lfj1jewUXmLu5ejxtulq57/qoQS9b+yqQTKDGTPD8hVpXY8ytxEfvzFHt+RVEURakT3zUj56E=
</data>
</layer>
<objectgroup id="3" name="lightObject">
Expand Down Expand Up @@ -76,7 +86,7 @@
<object id="135" name="wall" type="wall" x="0" y="655" width="321" height="52"/>
<object id="136" name="wall" type="wall" x="320" y="653" width="15" height="115"/>
<object id="137" name="wall" type="wall" x="321" y="751" width="271" height="16"/>
<object id="139" name="wall" type="wall" x="577" y="656" width="19" height="114"/>
<object id="139" name="wall" type="wall" x="575.5" y="656" width="20.5" height="114"/>
<object id="140" name="wall" type="wall" x="383" y="32" width="67" height="82"/>
</objectgroup>
<objectgroup id="4" name="heavyObjects"/>
Expand Down
32 changes: 0 additions & 32 deletions core/src/com/aqwsxlostfly/packandgo/Heroes/Bullet.java

This file was deleted.

69 changes: 0 additions & 69 deletions core/src/com/aqwsxlostfly/packandgo/Heroes/Enemy.java

This file was deleted.

Loading

0 comments on commit 04e0354

Please sign in to comment.