* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
Beginners / Re: looking for a string in an array of string
« Last post by Thaddy on Today at 07:09:47 pm »
Basically, that Python code can be easily translated by implementing a simple operator.
Here's an example, but notice this will only work in trunk.
You see the similarities?
Code: Pascal  [Select]
  1. program untitled;
  2. {$mode objfpc}
  3. // library
  4. operator in(const a:string;b:Array Of String):Boolean;inline;
  5. var i:integer;
  6. begin
  7.   Result := False;  
  8.   for i :=Low(b) to High(b) do
  9.     if a = b[i] then
  10.     begin
  11.       Result := True;
  12.       Break;
  13.     end;    
  14. end;
  15.  
  16. // main code
  17. var
  18.  TT:Array Of String;
  19.  T:String = 'trois';
  20. begin
  21.   TT:=['one', 'quatro', 'zwei'];
  22.   if T in TT then
  23.      writeln('Ok')
  24.   else
  25.     writeln('Nope');       
  26. end.
2
FV/Textmode IDE / Re: Resources for learning FV?
« Last post by marcov on Today at 07:09:36 pm »
The TP manual is the core one yes.

I have another TV book by "Chris Zandvoort". It is Dutch though.

There is also documentation (and code) for the open sourced C++ version of TV. IIRC the BSD licensed variant by Sergio Sigala had some docs (though they were more source code docs iirc)
3
Graphics / Re: What graphics engine could achieve this ?
« Last post by Handoko on Today at 07:07:16 pm »
Not really understood what you said.

Basically it shows a player composed of multiple bmps being looped like a flick book.

You're right, is not a real 3D. it just a 2D composed by multiple pre-rendered 3D images. Allegro is capable to do that, if you know how. For example, I ever tried to make walking character using Allegro.pas:
http://forum.lazarus.freepascal.org/index.php/topic,35313.msg236058.html#msg236058

Would it be a case of using multiple tiles like in the video or would the base/main picture be one large image ?

Did you mean using tiles to build a game world? Usually you need to use level/tile editor like DeleD or Tiled Map Editor.
4
General / Re: Superscripts and subscripts
« Last post by William Marshall on Today at 07:02:24 pm »
     Hey!  It works!  Thanks so much to everyone, especially wp.  This little sub-project turned out to be much more involved than I ever imagined.  Quite literally, I could never have done this on my own.  I don't suppose I've gotten anyone interested in chemistry?  My project has a long way to go, and I'm sure I'll be back with more questions before long.  Thanks again.  :D
6
Databases / Re: sqldb and threads
« Last post by Blestan on Today at 06:46:52 pm »
no idea about sdldb... why not use raw sqlite.dll? you can take a look at rqlite witch is a distribited sqlite and acess i rest based
7
Graphics / Re: What graphics engine could achieve this ?
« Last post by Zath on Today at 06:46:02 pm »
Thanks as always Handoko  :)
I was looking at the allegro.pas earlier. Seems very interesting.
Would it be a case of using multiple tiles like in the video or would the base/main picture be one large image ?
8
Beginners / Re: looking for a string in an array of string
« Last post by Windsurfer on Today at 06:43:35 pm »
9
Graphics / Re: What graphics engine could achieve this ?
« Last post by Handoko on Today at 06:39:47 pm »
Here is a list of graphics/game engines and libraries:
http://wiki.freepascal.org/Game_Engine

Castle Game Engine is actively developed and the author is nice and very helpful. GLScene is very powerful too, unfortunately it has texturing bug when running on Linux. SDL is much simple to start with, I saw a newbie - he managed to create a very simple 2D game just in weeks learning it. SDL is capable for 3D too. I ever learned Allegro, although I do not use it, but I should mention it is easy to learn and has 3D feature too. ZenGL is promising, unfortunately the development has stopped since some years ago.

All the mentioned names above should able to achieve the similar effects.
10
FV/Textmode IDE / Resources for learning FV?
« Last post by segfault on Today at 06:36:33 pm »
I would like to learn the FV framework and since it seems to be compatible with the old Turbovision, is it enough to work through the guide for TP 7.0?

Freely available here.

Does anyone know of any other resources for learning FV?

I've already successfully compiled the demo "testapp.pas" in the examples folder.

Thanks.
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus