General > Off Topic

Free Pascal

<< < (2/2)

Igor Savin:
/Kornel, what do you use to write graphics to the screen in your roguelike projects? Is there something like curses available for Free Pascal?/

Carefully written, hand-crafted output library, which rocks. It's part of Valkyrie - give it a shot; input-processing libraries are good too.

The only bad thing: current Valkyrie is not compatible with recent FPC 2.2.2, and I wonder if Kornel has plans for update at all.

Rabiat:

--- Quote from: Jim9137 on August 27, 2008, 07:43 ---When people say "pascal is a toy" they usual refer to Turbo Pascal and other such relics from 80s.
--- End quote ---

Just 'cause Turbo Pascal is old doesn't make it a toy. But I guess many programmers were introduced to programming through Pascal, and all they remember is the toy programs they wrote in it when they were noobs. Then again, Turbo Pascal never did have a standard library to speak of, which made it extremely time-consuming to create anything non-trivial in it. I don't know anything about compiler construction, but as far as I remember Borland's implementation was supposed to be decent enough in its day (as well as their C/C++ compilers).


--- Quote ---Damn stoned junkie programmers, I DO NOT WANT.
--- End quote ---

You don't want... what, exactly? The hallucinogenics must be blocking my ability to read your mind. ;)


--- Quote from: Igor Savin on August 28, 2008, 03:31 ---Carefully written, hand-crafted output library, which rocks. It's part of Valkyrie - give it a shot; input-processing libraries are good too.
--- End quote ---

FreePascal still implements the good old CRT unit, but I've been browsing parts of Valkyrie and it has a lot to offer. I think using Valkyrie could cut a roguelike's development time in half. Unfortunately, half the fun of writing a roguelike is creating my own field of view code, input processing, and display routines, and then abandoning the project for two years, because I can't come up with solid content for the life of me. ;)

Igor Savin:
/FreePascal still implements the good old CRT unit/

With a difference. Default CRT output refreshes screen on every possible output done, which is awfully inefficient, slow and flickery-prone.

Valkyrie ouput is more Curses-like in this sense, as you can control, when to update the screen - which is mostly unneeded, since latest (SVN) Valkyrie uses progressive aproach to this problem - screen is updated every time player is expected to press a key, which is a rational thing to do; and should you need updates in between, you can call these easily.

Navigation

[0] Message Index

[*] Previous page

Go to full version