View RSS Feed

code_glitch

Project Prometheus Kicks off...

Rate this Entry
As a few will know, I am starting a new set of units for better user friendliness, called the Prometheus Project (thanks for the great name WILL). Just thought, I' get some opinions on how easy you would say this looks to understand as a newbie. Code below of the first demo program of getting an image up on the screen with transparency enabled:

Code:
program PromVTest;

uses
	Prometheus_Vid,
	sdl;

var
	Image: pSdl_Surface;
	
begin
	//init stuff
	sdl_init(sdl_init_everything);
	
	//the prometheus stuff
	CreateWindow(640, 480, 32, Sdl_HwSurface);
	Image := LoadImage('TestImage.png');
	DrawImage(0,0,Image);
	UpdateCanvas();
	
	//wait
	readln();
end.
Sorry if you dont like my coding style, but it looks great in PN.

cheers,
code_glitch.

Submit "Project Prometheus Kicks off..." to Digg Submit "Project Prometheus Kicks off..." to del.icio.us Submit "Project Prometheus Kicks off..." to StumbleUpon Submit "Project Prometheus Kicks off..." to Google

Tags: prometheus Add / Edit Tags
Categories
Uncategorized

Comments

  1. Carver413's Avatar
    can't say I like your coding style, never understood why the need to indent more then 2 char. I personally like to see all my code at once instead of scrolling back and forth across the screen. but thats just me. aside from that I would have to say job well done. keep up the good work.
  2. code_glitch's Avatar
    Thanks. I prefer to have clear blocks of 1 tab space... I used to indent 2-3 char but found it quite annoying when I was half asleep and added code into the wrong block or changed the code in the wrong block to fix a bug oO. Most annoying thing you could possibly do if you ask me.
  3. WILL's Avatar
    You know you're going to need a project logo and a website soon, right?