pictures in dos
im making my second DOS text adventure.I want to have it like this:
You are attacked by a Dragon. 22HP 43EXP 12STR 18DEF
Fight Y or N
You chose Y (yes)
Then here i want a picture of the dragon.
----------|
|
|
|
|
__________|
How do i do this IN DOS!
50/50 Robotics and Software
November 27, 2002 11:17 AM
YOu can print a picture of a dragon using the ascii art form, using just characters to represent a dragon.
Sure you can use bmps in dos but not in text mode, you need to
switch to mode 13h (VGA 320x200x8) for example, but if you
do that you need to make a sprite engine, and a font system
for making the game console.
I don't know your programming experience in dos, but if you
want gfx read some old mode13h tutors, and make a sprite engine
if you have done that the rest will be a piece of cake
Of you don't have the knowledge and time to do this i suggest that you use a simple text dragon made up with ascii art
EDIT: Typo's :D
------
With kind regards,
Sander Aerts
[edited by - Sander Aerts on November 27, 2002 12:28:53 PM]
switch to mode 13h (VGA 320x200x8) for example, but if you
do that you need to make a sprite engine, and a font system
for making the game console.
I don't know your programming experience in dos, but if you
want gfx read some old mode13h tutors, and make a sprite engine
if you have done that the rest will be a piece of cake
Of you don't have the knowledge and time to do this i suggest that you use a simple text dragon made up with ascii art
EDIT: Typo's :D
------
With kind regards,
Sander Aerts
[edited by - Sander Aerts on November 27, 2002 12:28:53 PM]
------With kind regards,Sander Aerts aka DrSnugelsCrap :)---------------------------mov ax, 013h; int 10h; mov ax, 0xa000h;mov es, ax; mov di, 3360; mov al, 15;stosb; mov ax, 0002h; int 21h;mov ax, 03h; int 10h;
quote:
Sure you can use bmps in dos but not in text mode, you need to
switch to mode 13h (VGA 320x200x8) for example, but if you
do that you need to make a sprite engine, and a font system
for making the game console.
I don''t know your programming experience in dos, but if you
want gfx read some old mode13h tutors, and make a sprite engine
if you have done that the rest will be a piece of cake
can you suggest a tutorial
50/50 Robotics and Software
Hi,
Try the following url:
http://www3.telus.net/alexander_russell/course/introduction.htm
------
With kind regards,
Sander Aerts
Try the following url:
http://www3.telus.net/alexander_russell/course/introduction.htm
------
With kind regards,
Sander Aerts
------With kind regards,Sander Aerts aka DrSnugelsCrap :)---------------------------mov ax, 013h; int 10h; mov ax, 0xa000h;mov es, ax; mov di, 3360; mov al, 15;stosb; mov ax, 0002h; int 21h;mov ax, 03h; int 10h;
There''s only about a million tutorials out there about using dos vga graphics. Try google.
But I suggest that instead you visit www.Allegro.cc. "Allegro" is a programming library that will allow you do change graphical modes (vga and many more modes) and will load pictures for you (bmp''s and many more formats) it will also be able to play sounds and all kinds of cool stuff.
Since it seems like your fairly new at this I think it would be best to use this library. It''s meant for beginers and it''s very well documented.
But I suggest that instead you visit www.Allegro.cc. "Allegro" is a programming library that will allow you do change graphical modes (vga and many more modes) and will load pictures for you (bmp''s and many more formats) it will also be able to play sounds and all kinds of cool stuff.
Since it seems like your fairly new at this I think it would be best to use this library. It''s meant for beginers and it''s very well documented.
That's just my understanding; I could be wrong.
Allegro might be a good thing for you to try, displaying things like picutures is as simple as this:
There is no error checking in there, so be careful.
#include "allegro.h"int main(void) { allegro_init(); set_color_depth(16); set_gfx_mode(GFX_AUTODETECT, 320, 240, 0, 0); BITMAP *image = load_bitmap("pic.bmp", NULL); blit(image, screen, 0, 0, 0, 0, image->w, image->h); destroy_bitmap(image); allegro_exit(); return 0;} END_OF_MAIN();
There is no error checking in there, so be careful.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Nope, you have to download it.
Full source: (It''s fun to compile it yourself! I swear! It makes you feel all powerful and stuff. You also get the demos and examples this way.) Here
If you don''t want to compile it your self: MinGW or MSCV
All those links I stold from Allegro.CC
Full source: (It''s fun to compile it yourself! I swear! It makes you feel all powerful and stuff. You also get the demos and examples this way.) Here
If you don''t want to compile it your self: MinGW or MSCV
All those links I stold from Allegro.CC
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement