Dustbin::Games Four in a Row

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
Brainsaw
Posts: 1270
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Dustbin::Games Four in a Row

Post by Brainsaw »

Hello fellow Irrlicht users,

I have now taken a week and a half or so and created a first complete game with my framework (see other thread viewtopic.php?p=309352): Four in a Row

I have chosen this game because it is simple but gives a good overview on how the framework works. Before explaining how it works here I just post a link to the AI generated documentation (which is better than what I would have written manually): https://dustbin-online.de/FourInARow/.

Basically the game shows the flexibility of the command stack architecure I am using. For normal gameplay a "Game Logic" command is pushed first, then a "Game Scene" command which does all the rendering and sound, the next two commands are "User Input" commands, one for each user, and finally a "Game Recorder" command which records everything so that it can be played back later - just as a demonstration

If you replay a game only the "Game Scene" and a "Game Replay" command are pushed to the stack, the replay command takes the recorded data and sends the messages to the scene command further up in the stack which doesn't know that the messages do not come from a game logic command and just plays along

For network gaming it's also quite easy: on server side one of the player input commands is replaced by a network server command which takes all messages from the game logic and forwards them to a client, and all input messages from the client are sent down the stack to the game logic which reacts normally

For the network client there is a "Network Client" command instead of the game logic with a "Game Scene" command above and a "User Input" on top.

The commands do not know of each other, neither do they know which commands are on the stack nor do they know their purpose. This makes it quite easy to modify things, e.g. for a game against an AI player one or both of the user input commands are replaced by an "AI Input" command.

I hope you like it

You can download a version from http://dustbin-online.de/download/FourInARow.zip or have a look at the code at https://sourceforge.net/p/dustbinplaygr ... ourInARow/.

Some screenshots:

This is the main menu:
Image

During gameplay:
Image

When the game is over:
Image

And finally the main menu with german translation:
Image
Image
Dustbin::Games on the web: https://www.dustbin-online.de/
Brainsaw
Posts: 1270
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Dustbin::Games Four in a Row

Post by Brainsaw »

I just uploaded a first fix: the network game identifier was still the old name (which is a registered trademark as I know by now), so I changed that. This means that if you got a version before now it will not find game servers with the latest version
Image
Dustbin::Games on the web: https://www.dustbin-online.de/
CuteAlien
Admin
Posts: 10066
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Dustbin::Games Four in a Row

Post by CuteAlien »

Cool! So ... we can expect a new game from you now every 2 weeks? ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Brainsaw
Posts: 1270
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Dustbin::Games Four in a Row

Post by Brainsaw »

I'm afraid not that often, but I hope that my next big project won't take me like 6 years or so, and maybe I can start with some "remakes" that I've been thinking about for a long time
Image
Dustbin::Games on the web: https://www.dustbin-online.de/
CuteAlien
Admin
Posts: 10066
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Dustbin::Games Four in a Row

Post by CuteAlien »

Yeah, nice to have a good framework in place. Maybe I can check it out some day, as I'm actually a bit curious about your command system. But for now still have my long Irrlicht todo list to work on.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Brainsaw
Posts: 1270
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Dustbin::Games Four in a Row

Post by Brainsaw »

The best point for a first look into that system is the link I posted in the first post. AI is really good in explaining things, it makes sense and the description is way better and more detailed than what I could have written
Image
Dustbin::Games on the web: https://www.dustbin-online.de/
Post Reply