Browser-based online text game with C#

Hello.

There are browser-based online text games.

In these games, the minimum amount of graphics and only text.

There are games with locations. For example, the information displayed on the page looks like this:

Sector: 54. Base free “Phoenix”. Room

You are in a small, minimalist room with no windows. A neatly made bed, a comfortable armchair in the corner under the lamp. A bedside table and a wardrobe complete the furniture component of your new home. You hear the sounds of a busy world outside the door, it smells like alcohol and cigarette smoke. And opposite the entrance hangs a huge mirror on the Transition floor floor. Its surface trembles slightly, the reflection in it is cloudy and vague.

And on this page there are links:

Exit the room

Personal locker

In addition, there are other components of this game. Registration of players, clans, combat system.

Interested in 2 questions.

  1. What do I need to know in C#/ASP.NET to develop such a game?

  2. How can I develop a combat system, which I will discuss below?

There is a Russian game “Laboratory” labwar.ru. There is a combat system in this game. About the battle system, here I’m copying from the help:

The battle is represented by a two-dimensional system in which you can move around (on the Y axis from 0 to 20), shoot from firearms and crossbows, converge in hand-to-hand combat, putting down blocks and applying various skills, throw grenades at enemies and use steampacks for treatment, call in the battle of animals and clan war droids.

Battle window. Two drop-down lists – enemies and movement. You can strike in hand-to-hand combat only in the same position as the enemy.

Battle pattern. The enemy bot starts the battle always from position 0, you are at position 20. You can make a move up the Y axis or down during a move. At the same time, the enemy will move from position 0 to position 2. In order to speed up the battle process, the “Move” button is introduced, by clicking on which the enemy will not wait 27 seconds while you make your move, and will immediately approach you.

Shooting is conducted at a distance specified in the description for a particular weapon, i.e. when shooting at a known long distance you will not get.

You can shoot and beat in the head, body and legs.

The hull is the best chance to hit, the lowest damage

Legs – less chance to hit, damage higher, 10% chance to make the enemy a 2-hour fracture (the speed in battle is halved)

The head is the smallest chance to hit, very serious damage

Critical hits, which are affected by skills in knives or firearms, luck and weapon modifiers, very noticeably increase damage up to several times.

Blocks extinguish both physical damage and allow care to pay off most of the fire damage.

Grenades act on two positions, on the one to which the previous one is also thrown. Damage from a grenade is received by all characters in these positions, both allies and opponents.

Also available to you is military equipment, which is limited to 4 things to choose from, be it 4 ammunition stores, or, for example, 3 grenades and a steampack.

Here are examples of the logs of two battles.

PVE battle:

00:42:33 The sectarian [n/a] (50/50) goes to position 2

00:42:33 The sectarian [n/a] (50/50) goes to position 2

00:42:33 The leader of the sectarians [n/a] (70/70) goes to position 2

00:42:34 The sectarian [n/a] (50/50) goes to position 4

00:42:34 The sectarian [n/a] (50/50) goes to position 4

00:42:34 The leader of the sectarians [n/a] (70/70) goes to position 4

00:42:35 The sectarian [n/a] (50/50) goes to position 6

00:42:35 The sectarian [n/a] (50/50) goes to position 6

00:42:35 The leader of the sectarians [n/a] (70/70) goes to position 6

00:42:35 Zhuk_v_muraveynike [23] (15/50) goes to position 19

00:42:37 The sectarian [n/a] (50/50) goes to position 8

00:42:37 The sectarian [n/a] (50/50) goes to position 8

00:42:37 The leader of the sectarians [n/a] (70/70) goes to position 8

00:42:41 The sectarian [n/a] (50/50) goes to position 10

00:42:41 The sectarian [n/a] (50/50) goes to position 10

00:42:41 The leader of the sectarians [n/a] (70/70) goes to position 10

00:42:42 The sectarian [n/a] (50/50) goes to position 12

00:42:42 The sectarian [n/a] (50/50) goes to position 12

00:42:42 The leader of the sectarians [n/a] (70/70) goes to position 12

00:42:44 The sectarian [n/a] (50/50) goes to position 14

00:42:44 The sectarian [n/a] (50/50) goes to position 14

00:42:44 The leader of the sectarians [n/a] (70/70) goes to position 14

00:42:48 The sectarian [n/a] (50/50) goes to position 16

00:42:48 The sectarian [n/a] (50/50) goes to position 16

00:42:48 The leader of the sectarians [n/a] (70/70) goes to position 16

00:42:51 Zhuk_v_muraveynike [23] (15/50) goes to position 17

00:42:52 The sectarian [n/a] (50/50) goes to position 17

00:42:52 The sectarian [n/a] (50/50) goes to position 17

00:42:52 The leader of the sectarians [n/a] (70/70) goes to position 17

00:43:00 Zhuk_v_muraveynike [23] (15/50) calls into battle Leopard Kotik (70/70)

00:43:01 Leopard Kotik [n/a] (70/70) deals damage to the legs of 18 Leader of sectarians [n/a] (52/70)

00:43:14 Zhuk_v_muraveynike [23] (15/50) misses the head Sectarian Leader [n/a] (52/70). P: 17

00:43:21 The sectarian [n/a] (50/50) misses the head of Zhuk_v_muraveynike [23] (15/50)

00:43:21 The sectarian [n/a] (50/50) misses the head of Zhuk_v_muraveynike [23] (15/50)

00:43:21 the leader of the sectarians [n/a] (52/70) misses the corps Zhuk_v_muraveynike [23] (15/50)

00:43:21 Leopard Kotik [n/a] (70/70) misses the head Sectarian leader [n/a] (52/70)

00:43:31 Zhuk_v_muraveynike [23] (15/50) misses the legs Sectarian Leader [n/a] (52/70). P: 17

00:43:39 Sectarian [n/a] (50/50) misses the corps Zhuk_v_muraveynike [23] (15/50)

00:43:39 Sectarian [n/a] (50/50) misses the corps Zhuk_v_muraveynike [23] (15/50)

00:43:39 The leader of the sectarians [n/a] (52/70) deals damage to the corps on 2 Zhuk_v_muraveynike [23] (13/50)

00:43:39 Leopard Kotik [n/a] (70/70) misses the corps Leader of the sectarians [n/a] (52/70)

00:43:51 Zhuk_v_muraveynike [23] (13/50) deals damage to the head at 67 Sectarian Leader [n/a] (-15/70) The sectarian leader is out of action. Zhuk_v_muraveynike: Nooooo smoked trainsaaaaaa. P: 17

00:43:58 Sectarian [n/a] (50/50) misses the legs Zhuk_v_muraveynike [23] (13/50)

00:43:58 The sectarian [n/a] (50/50) misses the corps of Zhuk_v_muraveynike [23] (13/50)

00:43:58 Leopard Kotik [n/a] (70/70) deals damage to the corps on 13 Sectarian [n/a] (37/50)

00:44:06 Zhuk_v_muraveynike [23] (13/50) deals damage to the head at 53 Sectarian [n/a] (-3/50) The sectarian is out of order. Zhuk_v_muraveynike: Nooooo smoked trainsaaaaaa. P: 17

00:44:14 The sectarian [n/a] (37/50) misses the head of Zhuk_v_muraveynike [23] (13/50)

00:44:14 Leopard Kotik [n/a] (70/70) misses the corps of the Sectarian [n/a] (37/50)

00:44:26 The sectarian [n/a] (37/50) misses the legs of Leopard Kotik [n/a] (70/70)

00:44:26 Leopard Kotik [n/a] (70/70) misses the head Sectarian [n/a] (37/50)

00:44:33 Zhuk_v_muraveynike [23] (13/50) deals damage to the head on 60 Sectarian [n/a] (-23/50) The sectarian is out of action. Zhuk_v_muraveynike: Nooooo smoked trainsaaaaaa. P: 17

00:44:41 Sectarian leader [n/a] (-15/70: 2) Sectarian [n/a] (-23/50: 0) Sectarian [n/a] (-3/50: 0) vs Zhuk_v_muraveynike [23] (13/50: 180) Leopard Kotik [n/a] (70/70: 33)

Zhuk_v_muraveynike – 0 experience

PVP battle:

13:41:36 Drug_89 [15] (50/50) goes to position 2

13:41:38 Drug_89 [15] (50/50) goes to position 5

13:41:50 6LATHAYA_6 [17] (50/50) goes to position 17

13:42:53 6LATHAYA_6 [17] (50/50) goes to position 14

13:43:24 6LATHAYA_6 [17] (50/50) goes to position 11

13:44:00 6LATHAYA_6 [17] (50/50) goes to position 8

13:45:42 6LATHAYA_6 [17] (50/50) goes to position 7

13:45:51 Drug_89 [15] (50/50) goes to position 4

13:46:21 6LATHAYA_6 [17] (50/50) goes to position 5, the tank

13:46:32 Drug_89 [15] (50/50) goes to position 2

13:46:53 6LATHAYA_6 [17] (50/50) is resting. P. 5

13:47:00 Drug_89 [15] (50/50) is resting. P. 2

13:47:24 6LATHAYA_6 [17] (50/50) is resting. P. 5

13:47:29 Drug_89 [15] (50/50) is resting. P. 2

13:47:54 6LATHAYA_6 [17] (50/50) is resting. P. 5

13:48:01 Drug_89 [15] (50/50) is resting. P. 2

13:48:24 6LATHAYA_6 [17] (50/50) goes to position 4, the tank

13:49:13 6LATHAYA_6 attacks in a jump!

13:49:13 6LATHAYA_6 [17] (50/50) deals damage to the corps at 41 Drug_89 [15] (9/50). P: 2

13:49:22 Drug_89 [15] (9/50) deals damage to the corps at 28 6LATHAYA_6 [17] (22/50). P: 2

13:49:29 Drug_89 [15] (9/50) misses the corps 6LATHAYA_6 [17] (22/50). P: 2

13:49:35 6LATHAYA_6 [17] (22/50) deals damage to the head at 54 Drug_89 [15] (-45/50) Drug_89 goes out of order .. P: 2

13:49:35 Drug_89 [15] (-45/50: 28) vs 6LATHAYA_6 [17] (22/50: 95)

6LATHAYA_6 – 1230 experience

In PVE combat, as in PVP, after a player completes an action, he has 27 seconds until his next move. When you click on the move button, if the battle is PVE, the timer will disappear, and the bot will go. If not pressed, he will walk every 27 seconds accordingly.

How can I implement this? What should I know for this? What libraries, frameworks should I use?

Thanks in advance!

submitted by /u/Jonikster
[link] [comments]

Leave a Reply