As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [adventure-game]

An adventure game is a video game in which the player assumes the role of protagonist in an interactive story driven by exploration and puzzle-solving.

Filter by
Sorted by
Tagged with
13 votes
6 answers
2k views

One of my first Python projects - an adventure game

This is a simple text-based adventure game I made. I'm a beginner and I want to know if the code is optimal or if it can be improved. The story is not very complex, but I made it more for practicing ...
truejesusTTV's user avatar
5 votes
1 answer
754 views

Text-based adventure game where you fight two enemies per round

This is a text based adventure game, where you need to fight against 2 enemy in every round. The damage dealt and potion heal is a random number. How can I improve? Game class: ...
Ferenc's user avatar
  • 53
2 votes
1 answer
409 views

a text-based Role-Playing Game with java

The Character class is the base class, which is the superclass of Enemy and Hero. Here is ...
AlbertJ's user avatar
  • 199
17 votes
10 answers
5k views

A small GOTO text adventure game

EDIT_START: I want to thank all people for giving me such good answers! It's hard for me to choose any answer over another, because I see that all of your answers are valid and good in their own ...
paladin's user avatar
  • 416
8 votes
2 answers
212 views

Procedural Dungeon Generator

I've started working on a text-based adventure game that has procedurally-generated levels. I am unfamiliar with the more popular methods so I just decided to generate the dungeon using a recursive ...
NoobGuy2222's user avatar
9 votes
2 answers
228 views

Text-adventure game cleanup

I'm working on a text adventure game for a while now, learning more about user input etc. I have a feeling there is something fundamentally wrong about my code, it seems too repetitive. The use of ...
zumie's user avatar
  • 93
24 votes
2 answers
6k views

Zork-like text adventure w/ Python

I've been using Python for around 3 months and decided to make a simple text adventure game for fun and to exercise a lot of ideas I've been learning about. I've just recently learned about classes ...
digital_drako's user avatar
4 votes
1 answer
386 views

Dungeon and Dragons Text Based Game

I've created a text based game based on D&D as part of exercise No.45 Learning Python the Hard Way v3.0 I've implemented a few features from the game: Character Selection, Fight Scene, Rolling. ...
leban ali's user avatar
3 votes
1 answer
150 views

Revised text adventure game with a war theme

The actual code layout of a text adventure. This text adventure is a much-improved sequel to the first code. It is three times as long but three times more efficient. The setting is based on the ...
notak's user avatar
  • 605
5 votes
1 answer
158 views

Zork look-a-like written in TypeScript

I've been working on a a text based game with a very simple battling system. There are way to many questions I can ask to get reviewed about this project, but I'll take small steps at a time (this is ...
Federlizer's user avatar
3 votes
1 answer
201 views

An adventure game

So as you will soon be able to tell, I am very new to this programming. But I thought that the best way to learn would be to just jump on in and create my own game. Was wondering what things I should ...
Alexander Babichuk's user avatar
8 votes
3 answers
502 views

Story-based adventure with functions and relationships

This is a story-based adventure program I coded by myself (forgive the length). It took a long time but it was fun. It includes loading times, changes in relationships, relationship levels, storyline ...
notak's user avatar
  • 605
2 votes
2 answers
357 views

Beginner text adventure game

I am new to Python and I have not yet done any OOP. I wrote this text adventure as a first project and I would like to know if there is a better and more efficient way to write my code within its ...
Elijah's user avatar
  • 21
2 votes
1 answer
574 views

Simple dungeon game [closed]

Curious on how I can consolidate or generally streamline my code here: ...
sneauxpod's user avatar
9 votes
3 answers
400 views

Python - Text Adventure

I need help simplifying this Python code. I'm new, this adventure game is one of my first projects. I have tried simplifying my code already and this was the best result I could get. ...
myang0630's user avatar
  • 564
8 votes
2 answers
3k views

Text adventure game code

I'm just looking for someone to review this and see if it all works, here you go. I must mention that once you start this code adventure, all answers to questions must be in single quotes (i.e. ...
Some School Kid's user avatar
13 votes
3 answers
7k views

Adventure Game (text based) in C++

I'm working on a simple text based adventure game. I've just finished working on the character creation portion. The code works perfectly fine when run, but I would just like to get some feedback to ...
Justin's user avatar
  • 131
2 votes
0 answers
65 views

The Lost Forest: The Beginning (text based choose your own adventure)

I'm currently making a text based choose your own adventure game with possible RPG elements. I'm somewhat new at programming. My father is very good ad QB64, but isn't always able to help me with my ...
Patrick Coots's user avatar
5 votes
3 answers
7k views

Simple text escape room game

I recently started coding and after learning a bit about functions and basics I tried to make a simple text escape room game. My code is working and the game functions as intended but I now there are ...
Leo Gortz's user avatar
5 votes
2 answers
616 views

Beginner Rust text adventure

I've been trying to pick up some Rust experience and decided to try and make a text adventure game. I'd like some feedback on potential bad practice and non-Rust-style code I may have used. I'm moving ...
user avatar
4 votes
1 answer
1k views

Text-based adventure and combat game

I'm new to coding and this is a text based adventure game with combat. Sleep and choice functions based on idea from https://codereview.stackexchange.com/a/52292/179642. Map idea from Codecademy ...
Ben's user avatar
  • 43
5 votes
2 answers
565 views

Short text-based adventure game

I'm totally new to coding and tried myself on a short text based adventure game. I got the feeling that the functions are the same ones all the time and the whole game is a bit monotonous... I'd be ...
Maxine's user avatar
  • 53
2 votes
1 answer
693 views

Python 3 adventure game in modules

I have been learning Python 3 for about a year now. I have been looking for a project to do instead of just going through tutorials and completing some Code Wars challenges. One website suggested that ...
user avatar
3 votes
1 answer
524 views

Python 2.7 text adventure map and movement

I have been writing a python text adventure and the map module i wrote is very clunky. It is a list with compass dirs as the navigation. The problem with this is, i refer to each room by index number, ...
Stone Cold Games's user avatar
4 votes
1 answer
85 views

A little "explore" type of game in Python [closed]

I have another little text based game, this time, you're exploring a little castle. I have wanted to do this type of game for a while, and I finally got to do it! You are exploring a little castle, ...
Colea's user avatar
  • 349
7 votes
2 answers
22k views

Java text-based adventure game

I'm trying to make a text-based game and I think I've got a good start. However, this code seems a little clunky and I'm pretty sure there is a better way of doing most things in the code. I am very ...
Liam's user avatar
  • 73
8 votes
1 answer
4k views

Python text adventure

I am creating a prototype for a text-adventure to get into game development, and i wanted to take the opportunity to also try to use OOP concepts, since i have been struggling to understand the OOP ...
ManuAlvarado22's user avatar
4 votes
1 answer
781 views

Text adventure game - text input processing

As a fun project with my wife, I decided to make a small text adventure game à la Zork. Instead of using available engines, I decided to roll my own. It won't be that hard since there are no graphics. ...
snowfrogdev's user avatar
8 votes
2 answers
951 views

Creating branched narratives

Recently, I was asked to develop a way to easily create a branched narrative, where the user can select options to progress the story in their own path. After a couple hours of fiddling around with ...
kingdom5500's user avatar
0 votes
1 answer
100 views

Adventure game for Android

Features Abstract class World.java which works for basically any game Game engine class Simulation.java which steps forward time and introduces random events Walking persons, places and connections ...
Niklas Rosencrantz's user avatar
5 votes
1 answer
5k views

Choose your own story text game that executes with loop using choices supplied by player

I am creating a choose your own story type of game in Java. I am new to object oriented design and Java, and a text adventure game sounded like a fun way to try to implement some of the programming ...
Jacobra's user avatar
  • 53
6 votes
2 answers
3k views

Zork-style text-based game engine in Python 3

I've been working on a text-based Zork-style game project for the last couple of months to teach myself Python. I have barely any experience coding prior to this project, but thanks to Stack Exchange ...
Schrodinger'sStat's user avatar
8 votes
1 answer
6k views

Zork-style text-based game engine Python3

Over the last couple of months I've been working on a zork-style text based adventure game to kind of crash-course teach myself Python. I've gotten to the point in it where I'm fairly proud of what I'...
Schrodinger'sStat's user avatar
3 votes
2 answers
7k views

Text based survival game

I have recently made a text based survival game. I hope that I can improve the game but I am not sure where I can improve it. It is NOT EASY, don't expect to get over it the first time. ...
rcw's user avatar
  • 33
13 votes
4 answers
5k views

Text Adventure Game in Python

I'm currently working on a text adventure game for my first project. I am a beginner so I am seeking help with my code. Please comment any tips and general help regarding with making my code better, ...
Enrique's user avatar
  • 131
1 vote
3 answers
664 views

Beginning of text-based RPG

I've only been programming for about 2 weeks. I've been following a lot of tutorials and decided that the best way to learn would be to do it myself Looking to properly structure my code as well as a ...
Linux4Life's user avatar
4 votes
1 answer
381 views

Small text-based fight

I plan to flesh this out into a hopefully full 2-3 minute text adventure game, and the most fun part to start with is the combat. The fight function down at the bottom repeats itself quite a bit, ...
Adam Burros's user avatar
7 votes
1 answer
1k views

Haskell Text-Adventure Game

I just started making a text adventure game in Haskell. Because this is the largest project I have done in Haskell, I wanted to ask about it here before I got too far on it. I am still pretty new to ...
addison's user avatar
  • 715
6 votes
2 answers
6k views

Text adventure game

I just downloaded Python for the first time today, and I had a lot of fun playing around with it for like five hours. I watched one YouTube video on how to make a text adventure, and then I decided ...
Aaron Cox's user avatar
5 votes
1 answer
137 views

Text-based game - first OOP project

I'm learning Python as my first language and this is my first OOP project. What improvements can I make on my code for style, best practices, better logic, and to make it more efficient? ...
tre's user avatar
  • 51
8 votes
1 answer
875 views

Text-based adventure game using classes and XML

I am studying software engineering and we just started learning about object oriented programing. I wanted to be a bit ahead of all others, so I decided to write a little text-adventure using classes. ...
FirstZer0's user avatar
8 votes
5 answers
11k views

Adventure text game

I'm making a text based java game to help me learn java. I would like to know if I am doing things ok and if there is a better way to do the things I'm doing thanks. I have two separate files. ...
Sam Head's user avatar
5 votes
1 answer
789 views

Text-based Adventure-Game Engine

I wanted to create some kind of generic text-based adventure-game engine to see if I could build an interesting puzzle out of it. The idea was to define a mini-language to be able to define the ...
301_Moved_Permanently's user avatar
6 votes
2 answers
232 views

Implementation of a Location object, to be used in building a text-based adventure game

Based on responses to my question posted here, I've built a full implementation of a Location object. Such an object can be used to build a map for a text-based adventure game. Feel free to review ...
Rock Anthony Johnson's user avatar
2 votes
2 answers
627 views

Update on text based adventure game in C++

A few days ago I asked this question. So far I have made many changes in the code, as well as added some on and I was wondering if you see any way the code could be obviously optimized, as well as any ...
Alice The Hatter's user avatar
2 votes
2 answers
1k views

My implementation of item objects in a text adventure

I'm looking for feedback on my implementation of Item() objects in my beginner project (work in progress) or indeed any other feedback you feel is appropriate. I'm sure what I've managed is very ...
Michael Johnson's user avatar
4 votes
1 answer
333 views

Simple text based game (LPTHW)

For Learn Python The Hard Way exercise 45 I made a small text game, that took a few hours. Since classes were used and classes were a recently brought up concept in the book, I was wondering how this ...
user21398's user avatar
  • 141
3 votes
1 answer
193 views

Beginner attempt at a text adventure v2

Based upon feedback received in this post I've amended my game and would very much appreciate further feedback on it's current state(work in progress) and any suggestions on what I could implement in ...
Michael Johnson's user avatar
4 votes
2 answers
822 views

My beginner attempt at a text adventure

I'm a beginner working on a text adventure. It's quite bare-bones at this point but I would appreciate feedback before I continue and the flaws in my code become further ingrained. I plan to add an ...
Michael Johnson's user avatar
6 votes
1 answer
1k views

Character inventory in C#

Here are the relevant parts of a project I'm working on that's working perfectly. I was wondering what I should change to improve it (to respect SOLID principle for example), especially regarding my ...
Belterius's user avatar
  • 171