Is there a game in linux?

10-30-2023

Linux has games, such as: 1. Bastet, which is a Linux version of Tetris, can be installed by using the sudo apt install bastet command; 2. Ninvaders (Space Invaders) is a Linux version of arcade game; 3, nSnake, is the Linux version of the snake game; 4, 2048 and so on. By installing Wine software on Linux, users can play most Windows games on the Linux platform.

Linux has games.

Games are one of the traditional weaknesses of Linux, but thanks to Steam, GOG and other game developers who transplanted commercial games to multiple operating systems, this weakness of Linux has changed in recent years. For example:

1、 Bastet

Bastet is the Linux version of Tetris.

Use the following command to get the Bastet:

sudo apt install bastet

Run the following command to start the game on the terminal:

bastet

Use the space bar to rotate the box, and the arrow keys control the movement of the box.

2、Ninvaders

Space Invaders (space invaders) I still remember in this game, I competed with my brother for the highest score. This is one of the best arcade game.

Copy and paste this code to install Ninvaders.

sudo apt-get install ninvaders

Use the following command to start the game:

ninvaders

Key to move the spaceship. Space bar shooting aliens.

3、Pacman4console

Yes, this is the king of arcade. The terminal version of Pacman (Pacman4console) game is the most popular.

Use the following command to get the pacman4console:

sudo apt-get install pacman4console

Open the terminal, it is recommended to use the largest terminal interface. Type the following command to start the game:

pacman4console

Use the arrow keys to control movement.

4、nSnake

Remember the snake game played in the old Nokia mobile phone?

This game has fascinated me with mobile phones for a long time. I have designed various postures to get a longer snake body.

Use the following command to install it:

sudo apt-get install nsnake

Type the following command to start the game:

nsnake

Use the arrow keys to control the snake and feed it.

5、Greed

Greed is a bit like Tron, but it's slower and less exciting.

Your current position is indicated by the flashing' @'. You are surrounded by numbers, and you can move freely in four directions.

The number marked in the moving direction you choose is the number of steps you can move. You will repeat this step. You can't go any further. If you have no choice, the game is over.

It seems that I made it sound more complicated.

Get Greed by the following command:

sudo apt-get install greed

Start the game through the following commands, and use the arrow keys to control the game.

greed

6、Air Traffic Controller

What is more interesting than being a pilot? That's the air traffic controller. In your terminal, you can simulate an air traffic system. To be honest, it's interesting to manage air traffic in the terminal.

Use the following command to install the game:

sudo apt-get install bsdgames

Type the following command to start the game:

atc

ATC is not a game for children. It is recommended to check the official documents.

7. Backgammon (Backgammon)

Whether you have played backgammon before, you should see this. Its instruction manual and control manual are very friendly. You can challenge your computer or your friends if you like.

Use the following command to install Backgammon:

sudo apt-get install bsdgames

Type the following command to start the game:

backgammon

When you are prompted about the rules of the game, just reply' y'.

8、Moon Buggy

Jump and fire. Needless to say, happy hour.

Use the following command to install the game:

sudo apt-get install moon-buggy

Use the following command to start the game:

moon-buggy

Space jump,' a' or' l' shooting. Enjoy it.

9、2048

2048 can activate your brain. 2048 is a strategy game, which is very addictive. To get 2048 points as the target.

Copy and paste the following command to install the game:

wget https://raw.githubusercontent.com/mevdschee/2048.c/master/2048.cgcc -o 2048 2048.c

Type the following command to start the game:

./2048

10、Tron

How can this list end without action games?

Yes, Linux terminals can realize this energetic game Tron. Prepare for the quick response. No need to be bothered by downloading and installing. A command can start the game, and you only need a network connection:

ssh sshtron.zachlatta.com

Expand knowledge:

In addition to native games that support Linux, Linux can also play most Windows games.

There is a software called Wine on Linux. By providing a compatibility layer, Linux can install and run Windows programs.

By developing Proton on the basis of Wine, Steam greatly improves the multithreading performance of the game. Enable the Steam Play option. In the Steam settings, you can play Windows games. After two years of iteration, almost all mainstream Windows games on Steam can be installed and run on Linux, and most of them have no difference in frame numbers, at least on my Ubuntu18.04. Not only that, the localization patch in exe format can also be played normally. You can check whether the game is supported here: https://www.protondb.com/, but the actual running status is also related to the hardware configuration and system environment.

After my personal test, at present, only Biochemical 3 under DirectX 12 can't run, and it can still run after switching to DirectX 11. By querying the dxvk of Proton, it can be inferred that the highest version of Proton 5.0 can support dx9~11 games, but not dx12 games.

Screenshot of running a Chinese game:

Note: The game can be run in full screen. To show the system, use the window to run.

Copyright Description:No reproduction without permission。

Knowledge sharing community for developers。

Let more developers benefit from it。

Help developers share knowledge through the Internet。

Follow us