I made a text based game that runs in your cmd

maelbrazil

Young Hero
Level 1
1%
Joined
Aug 8, 2025
Messages
26
Level up in
74 posts
Reaction score
79
Points
127
Location
Brazil
Good morning::pikachu-sleep

As you can see we have 3 files here, the prototype of the game [dark_night_v1], a one I created to test the inventory [inventory_test] and finally the "complete" version, which we'll be executing right now [dark_night_v2]:

1763637453324.png


To start things off we have the text describing the scene, a list of commands of what the character can do and an input for the player to type their actions based on the list.

1763637685763.png


> stay

1763637724704.png


When we reach an end in the game, the input name changes to "Restart" and if you type:
> restart
The terminal will be cleared and the game will reset.

> go

1763637914107.png


Now we have 3 more commands.
Whenever you use:
> inventory
It will display the items that you've currently collected:

Nothing ::peacemario

1763638163635.png


And also, when you use the inventory command the text and the available commands will be showed once again so the player doesn't lose track of what's happening in the scene if he uses too many > inventory s.

Now if you decide to > pick_up the shovel and then check your inventory again, you'll see that it is there now.

1763638381695.png


We're almost in the end here, because when you start > walk ing you'll be able to choose a direction to go:

1763638527338.png


And now, whatever direction you choose will lead to a restart:

1763638581336.png



I'm really enjoying studying programming by myself and this little project was definitely great for my learning process. I'd recommend beginners to give this little challenge a shot if there is some extra time.
Dunno if anybody will be interested on checking out the actual code, if so, i can send the .txt of the bat file.
Have a good day y'all
 

Users who are viewing this thread

Connect with us

Support this Site

RGT relies on you to stay afloat. Help covering the site costs and get some pretty Level 7 perks too.

Featured Video

Latest Threads

I made a text based game that runs in your cmd

Good morning::pikachu-sleep

As you can see we have 3 files here, the prototype of the...
Read more

The Decline of Original Live-Action Children’s Films in Modern Cinema.

From the 40s to 2000s, live-action children’s and family films like Matilda, Madeline, The...
Read more

Help finding a PS2 game "Murasaki no Honoo"

I've been searching for that ISO online and haven't been able to find it (Murasaki no Honoo)...
Read more

CYOA Megathread

I suppose this counts as forum game ?...anyhow
Lets all show and share your CYOA (Chose your own...
Read more

Waifus Wearing Glasses Appreciation Thread

If there's anything cuter than an anime girl, it's an anime girl wearing glasses; and I'm sure...
Read more

Online statistics

Members online
62
Guests online
428
Total visitors
490

Forum statistics

Threads
14,963
Messages
358,892
Members
895,798
Latest member
Rrhhaayy

Today's birthdays

Advertisers

Back
Top