Search found 1171 matches

by paul doe
Apr 04, 2018 3:32
Forum: Tips and Tricks
Topic: Playing around with cards
Replies: 22
Views: 1687

Re: Playing around with cards

lizard wrote:It whispers " make a game out of me..."

Hahaha nice resource, thanks.

Do you Iike card games? I'm actually coding one (from scratch, since my HDD blew up last week and I lost almost all of my stuff) using my own card design, based on this very same resource, so who knows =D
by paul doe
Apr 03, 2018 5:02
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 36394

Re: create program to create bitmap

Great Paul Doe. I changed your code to work on a buffer. It works with my card spritesheet, but the resulting program is to long to post here. With Joshys version it will become long, too. Glad to help. Yep, if you want to preserve all the information, the code generated is too long, unfortunately....
by paul doe
Apr 03, 2018 3:02
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 36394

Re: create program to create bitmap

D.J.Peters wrote:@paul it's better to include compressed *.png or *.jpg images as source code !

Joshy

Only if you can somehow pack any image, at any resolution, without exceding the 60.000 char limit of the forum ;)
by paul doe
Apr 03, 2018 2:51
Forum: Game Dev
Topic: create program to create bitmap
Replies: 329
Views: 36394

Re: create program to create bitmap

Thanks, Joshy! That seems reasonable. I am asking because i haven`t found a perfect datamaker until now even here: https://www.freebasic-portal.de/code-beispiele/ where are mostly solutions for common problems. Coding one is trivial: #define toString( s ) trim( str( s ) ) screenRes( 800, 600, 32 ) ...
by paul doe
Apr 02, 2018 5:10
Forum: Projects
Topic: Eschecs 1.2.1 (UCI chess GUI)
Replies: 381
Views: 59207

Re: Eschecs

Slightly retouched the code and edited my previous post. Yo Roland, nice work! The AI is, however, very naive I'm afraid. I beat it in about 12 moves =D Can I make a suggestion? Implement movement recording, so you can reproduce the game later; for studying, share games with others, and of course a...
by paul doe
Mar 30, 2018 7:30
Forum: Beginners
Topic: Type and Scope Confusion - Beginner
Replies: 20
Views: 1561

Re: Type and Scope Confusion - Beginner

fxm wrote:The only bug could be that the parser accepts "UDT" as a shortcut of "UDT()" ("UDT()" being the right syntax):

Code: Select all

With UDT()
.....
End With
is fully legitimate.

Mmm... I don't know. What would be the point of that construct?
by paul doe
Mar 30, 2018 2:47
Forum: Beginners
Topic: Type and Scope Confusion - Beginner
Replies: 20
Views: 1561

Re: Type and Scope Confusion - Beginner

D.J.Peters wrote:...
"WITH RequiredFiles" should not compile at all
RequiredFiles are a TYPE/STRUCT descriptor
but not a reference to any memory.

And indeed it doesn't, at least in the latest versions (1.05 and 1.06).

@Red2: what compiler version are you using? Perhaps yours is an old one...
by paul doe
Mar 29, 2018 12:47
Forum: Beginners
Topic: Desperately in need of help coding for High School computer science project
Replies: 27
Views: 2209

Re: Desperately in need of help coding for High School computer science project

Was given the task for completing a Black jack game on free basic but I do not understand how to make a randomized card loop so that every time I want to be given another card the dealer would give me another random card until I go passed 21. This is what I have so far; any help would be appreciate...
by paul doe
Feb 17, 2018 12:58
Forum: Game Dev
Topic: What is good cross platform gameloop?
Replies: 47
Views: 8241

Re: What is good cross platform gameloop?

The question is: Has anyone found, even if it is conditional, a game-loop, that works well on all platforms and fbgfx/opengl modes? I typically only test on win32, so if anyone has some experience across all platforms, I'd really like your advice. Thanks. Check here: https://www.freebasic.net/forum...
by paul doe
Jan 18, 2018 2:18
Forum: Game Dev
Topic: readability checker board
Replies: 19
Views: 2118

Re: readability

Readability is programmer dependent. Generally, yes. But you'd have to admit that the checker example is not one of your best codes =D When I make the effort to do a proper job I think you don't have to be an advanced programmer to read most of my code. That also depends heavily on the algorithm yo...
by paul doe
Jan 15, 2018 23:17
Forum: Tips and Tricks
Topic: Simple Flame Simulation build 2018-01-22 [Windows and 32-bit only]
Replies: 2
Views: 698

Re: Simple Flame Simulation [Windows only] build 2018-01-15

UEZ wrote:Compile it with -gen gcc -O 3 to get max. fps.

And 32-bit only. Nice one!!
by paul doe
Jan 15, 2018 23:13
Forum: Tips and Tricks
Topic: Routines to write syntax highlighted code
Replies: 46
Views: 25442

Re: Routines to write syntax highlighted code

jj2007 wrote:According to my tests, reading an array from a textfile takes about ONE millisecond. Per 30,000 strings, that is. The whole debate is a bit strange ;-)

And irrelevant for being boilerplate code, indeed =D
by paul doe
Jan 15, 2018 19:52
Forum: Tips and Tricks
Topic: Routines to write syntax highlighted code
Replies: 46
Views: 25442

Re: Routines to write syntax highlighted code

Its not faster. Perhaps. It's about 1.6 times slower to populate the array, according to my tests. But it's faster and simpler to 'set up' than the restore-read crap (it's also more elegant, but that's just my preference). However, be aware that you aren't really doing fair comparisons. You're also...
by paul doe
Jan 15, 2018 14:23
Forum: Tips and Tricks
Topic: Routines to write syntax highlighted code
Replies: 46
Views: 25442

Re: Routines to write syntax highlighted code

Faster still: dim as string tokens( ... ) = _ { _ "abs","access","acos","alias","allocate","alpha","andalso","and","any","append","asc","as","asin","asm","...
by paul doe
Jan 15, 2018 12:02
Forum: Tips and Tricks
Topic: Routines to write syntax highlighted code
Replies: 46
Views: 25442

Re: Routines to write syntax highlighted code

Thats 10x slower for the instr method. With a more optimized implementation the difference is about 3x: function tokenizeString( _ byref inputString as string, _ byref delimiters as string, _ tokens() as string, _ byval returnDelimiters as boolean = true ) as uinteger /' Tokenizes a string based on...

Go to advanced search