This might sound stupid, but I was thinking about risking the part of creating a demo in the near future. But, I don't exactly know what I can, and cannot include in the demo to make it worth getting a full game.
What are your advices in that matter?
Sorry, but this reply begins with that most irritating of comments - "it all depends".
One option is to do a demo which is the first hour or so of game play (depends on the expected length of the final game) so that the player can experience what the game is like, how the mechanics play out, at least an opening indication of story, characters etc. This approach allows for a wide range of feedback, including whether or not the opening of the game is engaging, and will often mean that the player can keep their save file to continue with a fuller version/final version of the game.
Another option is a demo which is more focused on one particular aspect of the game - battles, scavenging system, whatever. This would presumably be much shorter, so giving the player less of an overview, but would allow the dev to showcase their central game play. This can provide detailed feedback on that aspect. It might not, though, give the player enough to know if they want to try out the full game. Some players distrust this approach as there have been instances where the demo looks great, but the full game is mediocre because that single aspect doesn't reveal the lacklustre writing, or the number of bugs, or.... You get the picture.
In my own case, I have not released demos during development for any of my games so far. I do, however, provide a free demo on release of the beginning of the game, lasting about 1.5 hours, so that players have the chance to gauge if they want to buy the full version.
As a player, I prefer beginning of the game demos because it gives me a taste of the actual game and how the story goes (I play normally for the story) and normally it means I can continue my demo file to the full game.
That's why I said "normally", most demos that goes first part of game that I played are at least on that behavior especially on RM games. Since the demo is the actual first part of the game, you'd practically just be loading a save file that you made on the demo once you get the full game.
But ofc its not "required".
The demo should be a raw demonstration of the capabilities of the system: will it or will it not have animations? then include the craziest one (which is not necessarily the prettiest one, just the craziest, more complex one). Will it or will it not have complex sequences? then make the most complex sequence in as many variations as potentially expected.
if you can condense all those points into a single short story, all the better. Just make sure you publish a piece of a work that does what the full work is expected to do, hopefully at the same level, with the potential to be much more.
basically: *don't be "No Man's Sky"* lol