Most active commenters
  • discoinverno(15)
  • huhtenberg(3)
  • neomantra(3)
  • emmelaich(3)

242 points discoinverno | 69 comments | | HN request time: 1.555s | source | bottom

Rebels in the sky is a P2P multiplayer game about crews of space pirates roaming the galaxy to play basketball against each other. It's basically a basketball managerial game with some pirate-y stuff. It's a P2P game with no central server, built on top of libp2p. Players interaction are limited to playing games against each other and trading pirates.

The game runs as a terminal application, meaning that you just need to run it from your terminal.

You can try the game over ssh without installing: `ssh frittura.org -p 3788`

My server is not very powerful and there is a limit to the number of concurrent players, so if you like it I would appreciate it if you could install it (https://github.com/ricott1/rebels-in-the-sky?tab=readme-ov-f...) and run it locally :)

Here is a trailer (not of the last version, so some little things are different): https://github.com/user-attachments/assets/aaa02f04-06db-4da...

1. thianvan ◴[] No.42212218[source]
I tried it! Really cool concept and great pixel art!
2. balbo321 ◴[] No.42212432[source]
Just curious, how are the results of the match decided? How much player agency is there?
replies(1): >>42213517 #
3. dortmunddance ◴[] No.42212438[source]
Interesting idea to have a completely p2p game! What cross-user interaction do you have in your game?
replies(1): >>42213507 #
4. muon-bath ◴[] No.42212456[source]
thanks for this beautiful game! cheers
5. discoinverno ◴[] No.42213507[source]
Thanks:)

Basically users can interact by playing basketball games against each other or by trading players. This sort of interactions are handled with something similar to a TCP handshake, since we must ensure that we end up with a consistent state at the end (e.g. players are traded consistently).

Because of this, it is not easy to have 'real-time' interactions: for example, when challenging each other, players only agree on the initial conditions of the game, which then is simulated independently (and deterministically) on both clients.

replies(1): >>42214125 #
6. discoinverno ◴[] No.42213517[source]
At the beginning of the match, a match ID is created. Randomness is then seeded from this ID and every random event is determined consistently. If you want, a game could be completely simulated just based on the initial ID.
7. discoinverno ◴[] No.42213570[source]
In case the trailer link doesn't work, here's another: https://rebels.frittura.org/demo_v1.0.18.mp4
replies(7): >>42213871 #>>42214175 #>>42214468 #>>42214503 #>>42214535 #>>42215541 #>>42221587 #
8. davidjfelix ◴[] No.42213871[source]
This link also did not work for me.
replies(1): >>42213881 #
9. discoinverno ◴[] No.42213881{3}[source]
Weird, can you see it on the github page tho?
replies(1): >>42214185 #
10. dortmunddance ◴[] No.42214125{3}[source]
Cool!

Makes me think of blockchain: it is also a tool to ensure "consistent" state changes. Have you thought of moving your game on some blockchain?

For example, XAI is a blockchain specifically designed for games, you should check it out

replies(3): >>42214183 #>>42215048 #>>42219229 #
11. riffraff ◴[] No.42214175[source]
this works for me while the readme one didn't.

Also, the "thug boy" song threw me back to Fist of the North Start so hard I got wiplash, excellent choice.

12. pizzafeelsright ◴[] No.42214183{4}[source]
this thread makes me want to build a platform

I tend to lean toward the raft protocol vs blockchain due to storage

replies(1): >>42221857 #
13. tofof ◴[] No.42214185{4}[source]
I see what seems like it's supposed to be the trailer (labeled demo_v1.0.18.mp4), but MIME busted:

https://i.imgur.com/U7N2WUs.png

The link in OP in this thread works.

replies(1): >>42214540 #
14. bartzokas ◴[] No.42214261[source]
One question out of curiosity: Which library did u use for the graphics?
replies(1): >>42214320 #
15. riffraff ◴[] No.42214274[source]
As an Italian, some of the player names are hilarious.

The game seems really cool and honestly really impressive, but it's hard to understand what you're supposed to do at any moment.

You have a typo here https://github.com/ricott1/rebels-in-the-sky/blob/17f3e2a21e...

Also, the Italian-food sounding names are hilarious, well played :)

replies(1): >>42214356 #
16. discoinverno ◴[] No.42214320[source]
Proudly built with Ratatui: https://github.com/ratatui/ratatui :)

The graphics themselves are basically handmade pixel-by-pixel, you can take a look in the assets folders to get an idea.

For example, pirate images are generated by combining the different parts and then applying a color mapping for the different skin tones.

Planet gifs are adapted starting from https://deep-fold.itch.io/pixel-planet-generator

17. discoinverno ◴[] No.42214356[source]
Thanks! I agree, I really need to write a wiki or something. The problem is that this game started as a basketball managerial game and then got completely derailed as I kept implementing whatever I thought was cool at the moment.

I think there are mainly 3 themes to play for:

- Basketball: assemble the best possible team. Basically try to acquire as much money as possible to hire the best free agents;

- Money: just try to get as rich as possible, using the market and in the future your asteroids;

- Space adventure: get the best possible spaceship (more options will be available in future releases) and have fun in the spaceshooter game you can access from your team pane (button 'Space adventure').

I tried to combine and summarize these 3 themes by having a reputation score assigned to your team, which can increase based on all 3 conditions. In the Swarm pane there is a Top Ranking window where the best crews are listed.

replies(1): >>42215273 #
18. Kiro ◴[] No.42214468[source]
None of these work for me. Put it on YouTube or something.
replies(1): >>42214502 #
19. discoinverno ◴[] No.42214502{3}[source]
My server got hug'd to dead, probably the ssh server won't work now either :(

Hopefully this one works: https://streamable.com/huxiwr

replies(2): >>42214544 #>>42219171 #
20. kouru225 ◴[] No.42214503[source]
This link just takes forever to load for me
21. ◴[] No.42214519[source]
22. huhtenberg ◴[] No.42214535[source]
Video URL on the GH page is 404.

https://github.com/user-attachments/assets/aaa02f04-06db-4da...

replies(1): >>42217346 #
23. huhtenberg ◴[] No.42214540{5}[source]
It's 404, not busted.
24. huhtenberg ◴[] No.42214544{4}[source]
This one works! Hey-hey-hey.
25. discoinverno ◴[] No.42214552[source]
My server can't handle all the traffic, guess it's an opportunity to show that the game doesn't need a central authority to keep working.

I created another relayer and ssh node on 85.214.130.204, you can either ssh to this machine `ssh 85.214.130.204 -p 3788` (but the relaying won't work as it tries to connect to the old server), or start your local client with the flag `rebels -i 85.214.130.204` to specify the alternative relayer node ip address.

26. kataklasm ◴[] No.42214576[source]
Those planet/satellite animations are absolutely gorgeous!
replies(1): >>42217167 #
27. x0n ◴[] No.42215029[source]
So much fun! Works fine on windows terminal too! mouse, keyb, colours -- all good.
replies(1): >>42215075 #
28. nnx ◴[] No.42215042[source]
- Space pirates?? - You know, pirates! but in space!!
29. x0n ◴[] No.42215048{4}[source]
blockchain is too slow and completely inappropriate.
30. discoinverno ◴[] No.42215075[source]
Ahh nice to know! Never managed to test it
31. bensmoif ◴[] No.42215226[source]
Please tell a story about the music ya'll chose for this, it's incredible.
replies(1): >>42215246 #
32. discoinverno ◴[] No.42215246[source]
You mean the song in the trailer? It's the japanese OST for Kenshiro: https://en.wikipedia.org/wiki/Kenshiro

The story is quite simple, I just loved the anime when I was a kid :)

The italian version is also incredible: https://www.youtube.com/watch?v=YPIcdhjPG5I

33. UomoNeroNero ◴[] No.42215273{3}[source]
Figata spaziale!!!! Sono qui a mascella spalancata
34. postepowanieadm ◴[] No.42215541[source]
403 :(
35. 20after4 ◴[] No.42215742[source]
This is really cool. Like a mix between TradeWars 2002 and sportsball management.

Well played sir.

36. hinkley ◴[] No.42216417[source]
I have a friend who played FTL and I kept thinking that was just a fancy terminal game.
replies(1): >>42216430 #
37. discoinverno ◴[] No.42216430[source]
Love FTL, would be sick to port it to terminal graphics
38. neomantra ◴[] No.42216514[source]
This is very cool. Thank you for sharing your creativity with this game and its source! I love that it is accessed via ssh and is multiplayer.

A screenshot or animated gif in the README might be helpful. Like others I can’t see the movie. Check out charm’s vhs tool to make these.

replies(3): >>42216584 #>>42216648 #>>42216696 #
39. discoinverno ◴[] No.42216584[source]
Thanks a lot, really appreciate it. Have you tried this link: https://streamable.com/huxiwr ?

I know VHS, only problem is that that demo is a bit involved to properly script it..

replies(1): >>42218414 #
40. yoavm ◴[] No.42216648[source]
Please not an animated gif. These easily end up weighing more than 10MB, while a similar mp4 can be 500KB. You just need to use an encoding all browsers support.
replies(1): >>42216781 #
41. ◴[] No.42216696[source]
42. _flux ◴[] No.42216781{3}[source]
I doubt in this case they'd weigh 10 MB, or have you experienced "terminal movies" growing that large?

In fact, I wonder if in this case the gifs would be smaller, while lossless.

replies(1): >>42217879 #
43. legohead ◴[] No.42217167[source]
from the readme: https://deep-fold.itch.io/pixel-planet-generator
replies(1): >>42220059 #
44. omoikane ◴[] No.42217346{3}[source]
There is a demo video here:

https://github.com/ricott1/rebels-in-the-sky/tree/main/demo

replies(1): >>42220597 #
45. smaudet ◴[] No.42217879{4}[source]
I suppose it depends on how full color the terminal output is, and how well the GIF is encoded.

I think you're probably correct for this case you can get something smaller.

Nevertheless, the movie has sound, which a GIF (AFAIK) can only do if part of a e.g. an html page...and now you have non-standard browsers to deal with vs just using an mp4.

46. neomantra ◴[] No.42218414{3}[source]
That link works, thanks :) I had tried a couple links earlier and they hadn't. Does that song say "dogboy"?

But seeing your video makes me realize the colors are messed up in my terminal and don't look near as nice as your video. Maybe a theme or something I have is messing it up... will muck more.

I just built rebels and tried "vhs record" and played the tape and the results weren't good. Even just a couple curated screenshots could communicate a lot there on the README, especially for a game.

replies(1): >>42229894 #
47. emmelaich ◴[] No.42218629[source]
Reminder that ssh'ing to some random server is not without some privacy concern.
replies(1): >>42220210 #
48. TheRealPomax ◴[] No.42218636[source]
Looks like the video in the readme doesn't work in all browsers (in my case, firefox).
49. willjp ◴[] No.42218781[source]
This is incredible!!! I love it so much, thanks for making this.
50. kibwen ◴[] No.42219171{4}[source]
The graphics are way better than the description "terminal game" would suggest, I recommend putting some images in your README to better demonstrate the amount of effort you put into them (don't rely on having a video, it won't render for me).
replies(1): >>42220452 #
51. drdrey ◴[] No.42219229{4}[source]
in case nobody told you, you’re not allowed to say blockchain on HN
replies(1): >>42221320 #
52. pacifika ◴[] No.42219876[source]
Looks very original although I’m a bit daunted by getting to grips with it. Plan to give it a go later. Feedback: The mashup of themes make it difficult to assess what the gameplay is like, even with the video. For example when are you taking action versus navigating away from screens
53. w4ffl35 ◴[] No.42220057[source]
Is your game made with godot? It looks like you used this pixel planet generator asset from itch

https://deep-fold.itch.io/pixel-planet-generator

replies(1): >>42220204 #
54. w4ffl35 ◴[] No.42220059{3}[source]
Ah so it is... I just asked if he had used that asset, I discovered it a few days ago myself and thought it was an interesting asset.
55. discoinverno ◴[] No.42220204[source]
I used the pixel planet generator to generate low resolution gifs, which I then combine together to get the galaxy gifs
56. discoinverno ◴[] No.42220210[source]
True, I can see your public key, username, and IP I guess. I only log the username and hash of the public key/password that I use for storing save files (the logs are for debugging, but I swear I don't sell them to google). You can see what I do in the source, of course you have to trust me on that :)
replies(1): >>42220480 #
57. pelasaco ◴[] No.42220452{5}[source]
I was surprised by the great graphics too. I agree that some screenshots would be useful.. I was expecting something totally different, than great pixel art :)
58. emmelaich ◴[] No.42220480{3}[source]
Yes, sorry should've said I never doubted you!

My comment more addressed to the clients, who can mitigate the issue with appropriate ssh_config.

replies(1): >>42221875 #
59. iaresee ◴[] No.42220597{4}[source]
Github is rate limiting viewing that right now. :D
60. nickdothutton ◴[] No.42220828[source]
Planet animations remind me of Captain Blood. Congratulations. The terminal, from constraint comes creativity.
61. littlestymaar ◴[] No.42221320{5}[source]
Talking about blockchains is fine, pretending they are somewhat apt at solving a problem that isn't money laundering is what will get you frowned upon.
62. linsomniac ◴[] No.42221587[source]
Here's a Youtube copy of it: https://youtu.be/5Lu9MSgmTBc
63. withinboredom ◴[] No.42221857{5}[source]
raft is too non-deterministic. Something like paxos is probably more appropriate; the write-once property is exactly what you want here, and it is deterministic.
64. withinboredom ◴[] No.42221875{4}[source]
More specifically, make sure that you aren't forwarding your ssh keys; otherwise the game can impersonate you on any server the keys work on.
replies(1): >>42225241 #
65. emmelaich ◴[] No.42225241{5}[source]
Ah, that's worse than a mere privacy issue! Good point.

I was thinking merely about anonymity.

Both can be largely eliminated by having per host or per organization Identities and using IdentitiesOnly.

66. ldellant ◴[] No.42229193[source]
Ma sei un pollo
67. neomantra ◴[] No.42229894{4}[source]
I explored this more. Does Rebels require TrueColor? I think that's what the problem is, Apple Terminal doesn't support it (https://github.com/termstandard/colors?tab=readme-ov-file#no...). It works fine in Kitty.
68. bcooney_info ◴[] No.42252402[source]
first game i've played for an hour straight in years. well done!