In your blog, describe the steps needed to create an Allegro game window in 3-5 COMPLETE sentences.
I first opened a file and set up the basic code, including setting up the allegro library and the al_init. Before I do all of this I have to download allegro, and to do that you right click on the project name and click on manage NuGet Packages, then download allegro. After it is finished downloading type ALLEGRO_DISPLAY *gameWindow = NULL;, that is the variable you need to set up for the window. Then you type ALLEGRO_DISPLAY *display = al_create_display(500, 500); to acutally create your game window and if you want to add al_set_window_position(gameWindow, 200, 200); to set the position og the game window on the screen. If you want to add a title to the screen you just add this code al_set_window_title(gameWindow, ""); You also have to add these at the end
al_flip_display(); :write whatever is in memory to the screen
al_rest(100.0); :pauses game
al_destroy_display(gameWindow); :clear memory
No comments:
Post a Comment