Sign in to follow this  

Pictures?

This topic is 4271 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, I am making a text base RPG where you press 1 and you go to the forest! :D. I was curious, is there anyway to add pictures to the game? Like say you are traveling to a forest, then below it, it will show a picture of a forest? My dad told me to make one because he has always been wanting to make text-based RPG and I just told him today I knew how to.

Share this post


Link to post
Share on other sites
If you're using a dos box, then no. But, if you want to create a window yourself, you can always have a box in the window for a picture, and then have the lower half of the window dedicated to text.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
How do I create a window?

Share this post


Link to post
Share on other sites
It is time for you to move on to using 2D libraries to aid you in displaying 2d graphics on screen. They will handle all the work of creating a window, displaying/loading 2d images for you. They also provide many advanced features which you might need later on. The 2 most popular are

1) SDL
2) Allegro

Google them to find out more.

Share this post


Link to post
Share on other sites
If you are good with ASCII art then you could try that.. Although that might be a bit hard.

Share this post


Link to post
Share on other sites
I'm still a noob :D
I don't even know how to install libraries /cry. I am using Bloodshed Dev C++. Thank you all for the posts!!

Share this post


Link to post
Share on other sites
Quote:
Original post by Endar
If you're using a dos box, then no. But, if you want to create a window yourself, you can always have a box in the window for a picture, and then have the lower half of the window dedicated to text.


what?

int 13h (just an example).

dont want to be rude or something but maybe you should not say youre not sure about, or at least add an "afaik"

Share this post


Link to post
Share on other sites
Quote:
Original post by philipptr
Quote:
Original post by Endar
If you're using a dos box, then no. But, if you want to create a window yourself, you can always have a box in the window for a picture, and then have the lower half of the window dedicated to text.


what?

int 13h (just an example).

dont want to be rude or something but maybe you should not say youre not sure about, or at least add an "afaik"


What?

What you quoted was fully correct...

@OP:
You can have umm.... dos graphics in a dos window :). It works like this:
You change the color of the next character... Print a space with that color representing a square or pixel.
You make a sequence of these until you have a somewhat OK picture.
Although, you'll have to implement some bitmap loaders, etc.

So in a short sentence, no, you can't. Once you get to atleast pointers and some structs/classes you can move onto someting 2d like SDL.

Share this post


Link to post
Share on other sites
Quote:

So in a short sentence, no, you can't.

Not very hard, considering that you have GDI at your disposal...
Then again, it's not the "neatest" way of displaying images, but it works.

Share this post


Link to post
Share on other sites
Quote:
Original post by raz0r
Quote:

So in a short sentence, no, you can't.

Not very hard, considering that you have GDI at your disposal...
Then again, it's not the "neatest" way of displaying images, but it works.


GDI can draw to a console window?

Share this post


Link to post
Share on other sites
Quote:
Original post by agi_shi
Quote:
Original post by raz0r
Quote:

So in a short sentence, no, you can't.

Not very hard, considering that you have GDI at your disposal...
Then again, it's not the "neatest" way of displaying images, but it works.


GDI can draw to a console window?

As you can see from the screenshot, yes...
To get a handle to your console you just call GetConsoleWindow.

Share this post


Link to post
Share on other sites
Quote:
Original post by agi_shi

You can have umm.... dos graphics in a dos window :).


what you describe isn't "dos graphics" but ASCII/ANSI stuff. int 13h is an interrupt used to open a vga mode for grafics, works in real or in virtual mode (dos under windows).

Share this post


Link to post
Share on other sites

This topic is 4271 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this