Dark Basic
Re:Dark Basic
yah i tried that thing. i never fooled around with it, because i cant make maps. ill learn once i get into making games with c++.
Re:Dark Basic
When you say "DOS" you mean the Windows Console right? Because if you use the windows console (which is what C/C++ is all about, mostly that is ) You should use Allegro, have you even tried allegro?
Here is a simple program in allegro that you can use with MSVC++ (But you MUST have the Allegro librarys installed, get them pre compiled from the allegro.cc files section )
Ok, What this code does is Change the Graphics Mode to 800x600x32 and hang the system until a key is pressed. It is VERY simple code, this is the basis of a computer game. You MUST put END_OF_MAIN(); at the end, this is allegro specific, i am not sure why it has to go there, but it just does
Well, I don't like the Names of the functions so i change the names, and put them into classes ;D
This code isn't commented, but you can get lots of good tutorials elsewhere, so i won't bother ;D
Here is a simple program in allegro that you can use with MSVC++ (But you MUST have the Allegro librarys installed, get them pre compiled from the allegro.cc files section )
Code: Select all
#define USE_CONSOLE
#include <allegro.h>
#include <winalleg.h>
#pragma comment (lib, "alleg.lib")
int main(int arg, char* args[])
{
allegro_init();
install_keyboard();
set_color_depth(32);
set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0);
while(!key[KEY_ESC]);
}
END_OF_MAIN();
Well, I don't like the Names of the functions so i change the names, and put them into classes ;D
This code isn't commented, but you can get lots of good tutorials elsewhere, so i won't bother ;D