flat assembler
Message board for the users of flat assembler.

Index > DOS > Some question regarding DOS and graphics under it.

Author
Thread Post new topic Reply to topic
Embrance



Joined: 14 Mar 2004
Posts: 116
Location: Greece
Embrance
I prefer programming DOS applications, and was thinking of making a very simple dungeon crawling game, where you walk in a dungeon and just kill enemies(get from point 1 to point 2,collect stuff etc,but for the time being just walking and killing enemies will be fine.I will work out the other stuff later.)

I was wondering these thing however:
1)Whats the max resolution a DOS program can have? Is it the same a the native OS's screen resolution?(If my Win can run up to 100x800,does the same apply to the DOS program?)
2)What kind of graphics does DOS support? I doubt it could load PNG or JPG files, so should I first convert my images to another file format?
3)How portable would the source of a DOS application would be? I want the program to run on both Win an Linux systems.

THanks in advance for the help.


Last edited by Embrance on 22 Jul 2007, 14:23; edited 1 time in total
Post 22 Jul 2007, 10:58
View user's profile Send private message MSN Messenger ICQ Number Reply with quote
DJ Mauretto



Joined: 14 Mar 2007
Posts: 464
Location: Rome,Italy
DJ Mauretto
Hello Very Happy
Quote:

Whats the max resolution a DOS program can have?

if you use Standard VGA max resolution = 640x480 4bit 16colors,
however usually dos game run in 320x200 8bit 256 colors.
If you use Vesa max resolution = 1280x1024 24/32 bit - Mode 011BH -
Quote:

What kind of graphics does DOS support? I doubt it could load PNG or JPG files,so should I first convert my images to another file format?

it depend from your program,it load and convert images to display on the screen,therefore you can load all format file.
Quote:

How portable would the source of a DOS application would be? I want the program to run on both Win an Linux systems.

if your program use C language is portable to linux with few change ,
if you use Assembly is more complicated , but if you use emulator
don't worry about nothing and it will run falsely on both Wink
Post 22 Jul 2007, 12:12
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
For Dos take a look "kelvar unREAL engine" in the examples.

You could also try DexOS as it is Dos like to program on, gives you 1280x1024 24/32 bit high res, libs for jpg or gif files and can be booted from its bootloader or run from MS-Dos and can be run from emulators.
It also designed to run like a console type OS, see here:
http://www.dex4u.com/

But remember the high the res the slower the FPS, if all other things remain the same.
Post 22 Jul 2007, 15:08
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
> prefer programming DOS applications

Smile

> 1)Whats the max resolution a DOS program can have?

No limits. Shocked See FAQ on top of thread. For compatibility, you should support lower and safe resolutions whenever possible: 1024x768, 800x600, 640x480, 640x480x4bpp (VGA). Idea

> Is it the same a the native OS's screen resolution?

NO. DOS has none Shocked

> 2)What kind of graphics does DOS support?

None. Shocked You have to do the work rather than rely on DOS, see FAQ Idea

> I doubt it could load PNG or JPG files

It can't. Shocked

> so should I first convert my images to another file format?

NO. There is no format natively supported by DOS. Shocked You have to include a JPG or PNG loader into your game. Idea

Dex4u wrote:

> You could also try DexOS as it is Dos like to program on

OK ... as usual Laughing

> 3)How portable would the source of a DOS application would be?

You could support both classical DOS AND DexOS Idea

> I want the program to run on both Win an Linux systems.

But you wrote about DOS just before ? Confused I assume you know what DOS is ? Confused

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 22 Jul 2007, 20:50
View user's profile Send private message Reply with quote
Embrance



Joined: 14 Mar 2004
Posts: 116
Location: Greece
Embrance
DOS=Disk Operating System? lol
By saying DOS, I mean commad line, blocky graphics etc,lol.But thanks for your help NTOSK. Really helpful reply.Thanks to all other as well.
Post 22 Jul 2007, 21:03
View user's profile Send private message MSN Messenger ICQ Number Reply with quote
zir_blazer



Joined: 05 Dec 2006
Posts: 66
zir_blazer
Dungeon crawling? Welcome to Moraff's Revenge, Moraff's World, and Moraff's Dungeon of the Unforgiven...

http://zer-un.zeroesunlimited.com/articles/moraff.htm
Post 23 Jul 2007, 17:31
View user's profile Send private message MSN Messenger Reply with quote
eek



Joined: 21 Oct 2006
Posts: 24
eek
The best fastest game I ever played was "THE DARKENING" for DOS, back around 1994/5.

You may still be able to get it on ebay.

I ran it on a P160 with a 1MB videocard and 16MB of memory and that sukkah never lagged for a second, no matter how many spaceships there were.
Chaos, total chaos, mass killing and zero lag. It was GREAT fun.
(It used a dos extender, Dos4GW.)

It only ever lagged when the CDvideo bits came on, and at the very end when you had to zap the leaders spaceship.

...then we moved onto crappy windows 95, where you needed a nuclear powered videocard to even get a semi decent game of anything...
Post 24 Jul 2007, 02:16
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
> best fastest game I ever played
> used a dos extender, Dos4GW

DOG/4GW is not very good. Could be even faster with DOS/32A Idea
Post 24 Jul 2007, 06:13
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
I've been curious about DOS roguelikes recently (see here for links to Linley's Dungeon Crawl).

Anyways, here's the ones you'll most want inspiration from (bold means open source):


  • Nethack (most popular roguelike, written in C, comes w/ gfx tiles)
  • Slash 'EM (newer improved Nethack, comes w/ "better" gfx but 3d didn't work for me on XP or DOSBox)
  • Linley's Dungeon Crawl (very cool, written in C++ / curses, tiles only in non-DOS OSes, doh)
  • ADOM (no src or gfx but supposedly very immersive)
  • Angband (levels regenerated upon every entry unlike some others)
  • Ragnarok (nice graphics, freeware w/o src but no longer updated)


http://en.wikipedia.org/wiki/Roguelike (has links to all of the above)

Okay, honestly, I've 99% only been playing Dungeon Crawl. Laughing

BTW, FreeBASIC (!!!) or DJGPP (C, C++, Ada) or GNU Pascal / FreePascal is probably your best bet for development via either Allegro or other gfx / sound libraries. All of those are portable.
Post 25 Jul 2007, 04:27
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.