Search found 1317 matches

by dafhi
Mar 31, 2012 12:09
Forum: General
Topic: Squares
Replies: 7677
Views: 469617

Re: Squares

'----------------------------------------------------------------------- ' Marvin Minsky invented this circle algorithm by mistake ' MIT, AI Lab, AIM 239. Feb 1972, HAKMEM, Item 149, page 73. '----------------------------------------------------------------------- ' NEW X = OLD X - e * OLD Y ' NEW ...
by dafhi
Mar 30, 2012 15:01
Forum: General
Topic: Squares
Replies: 7677
Views: 469617

Re: Squares

adding rather than averaging [edit 4] '----------------------------------------------------------------------- ' Marvin Minsky invented this circle algorithm by mistake ' MIT, AI Lab, AIM 239. Feb 1972, HAKMEM, Item 149, page 73. '---------------------------------------------------------------------...
by dafhi
Mar 30, 2012 13:19
Forum: General
Topic: Squares
Replies: 7677
Views: 469617

Re: Squares

Richard, I remember one of your posts about filling circles using octants. I thought it was the bomb. Anyway, what I did here was use the Minsky loop to fill a vertex array. Then I used a 90 degree offset and created an average: offset = vertex count / 4 average = v(0) + flipXY(v(offset)) '---------...
by dafhi
Mar 26, 2012 11:23
Forum: Projects
Topic: PacMan2: Network Edition + 2 Different Worlds
Replies: 24
Views: 9359

Re: PacMan2: Network Edition + 2 Different Worlds

Sounds good. Be sure to check out the Beginner's sub-forum when you get a chance
by dafhi
Mar 26, 2012 4:06
Forum: Projects
Topic: PacMan2: Network Edition + 2 Different Worlds
Replies: 24
Views: 9359

Re: PacMan2: Network Edition + 2 Different Worlds

Lachie if you wanted to form a basic gaming coder's group I would be more than happy to join. But it could be a still many years before I begin to think of making a game myself.
by dafhi
Mar 25, 2012 15:27
Forum: General
Topic: dynamic parms
Replies: 4
Views: 353

Re: dynamic parms

@fxm - I tried -exx with fbc -s console and other settings in FBEdit, but everything ran fine. Of course, your analysis is correct. [Edit:] Now I understand this -exx thing. Fixed 2 potential problems. UDT helps to avoid bad arrays, which is why the program runs without -exx: For N = 0 to -1 #Macro ...
by dafhi
Mar 25, 2012 13:01
Forum: Projects
Topic: Frogger revisited
Replies: 30
Views: 8281

Re: Frogger revisited

top quality animation. I think i might steal that sub
by dafhi
Mar 25, 2012 12:20
Forum: General
Topic: dynamic parms
Replies: 4
Views: 353

Re: [solved] dynamic parms

An update: implicit overloading no worky with arrays :( Here is my vision #ifndef FALSE Const as integer FALSE = 0 Const as integer TRUE = not FALSE #endif /' ---------------------- Line Manager ----------------------------------- Concept: 1. Text stored as array: strLine() or strVert() or something...
by dafhi
Mar 25, 2012 4:13
Forum: General
Topic: dynamic parms
Replies: 4
Views: 353

dynamic parms

I'm creating a text editor. My preferred methodology involves storing text data like so: Type MyType as string Line() As MyType I've written UDT for that 'vertical' orientation, complete with lines Insert and Delete functionality. Consequently, these subs would also work well in a horizontal fashion...
by dafhi
Mar 25, 2012 2:36
Forum: Beginners
Topic: Basic Dim Question
Replies: 4
Views: 351

Re: Basic Dim Question

Code: Select all

For N as Integer = 5 to 9
  If A(1) > b(N) Then
   
  End If
Next
or

Code: Select all

Dim as Integer N
For N = 5 to 9
  If A(1) > b(N) Then
   
  End If
Next
by dafhi
Mar 17, 2012 4:59
Forum: General
Topic: Squares
Replies: 7677
Views: 469617

Re: Squares

I like your coding style. Time will tell if it settles aye?
by dafhi
Mar 15, 2012 2:33
Forum: General
Topic: Squares
Replies: 7677
Views: 469617

Re: Squares

I've eaten a carton of whoppers. dodicat that will suffice for your St. Patrick's day creation
by dafhi
Mar 14, 2012 23:42
Forum: General
Topic: Advice wanted re sort routines & histogram analysis
Replies: 12
Views: 1164

Re: Advice wanted ref sort routines & spectrum analysis

Here's an update. demo shows a sorted histogram of rand values [update 3] - updated comment on Usage Information ' --------------------------------------------------------------------- ' ' histogram sort information ' ' ' Type my_data_type as UByte '<-- change to match input type '' the following 2 ...
by dafhi
Mar 14, 2012 3:47
Forum: Tips and Tricks
Topic: new KEYWORD for layzee people who like tidy print statements
Replies: 1
Views: 441

Re: new KEYWORD for layzee people who like tidy print statem

make optional: SUB oo (printfont AS STRING, colfont AS INTEGER = -1, xfont AS INTEGER=1, yfont AS INTEGER=1) static colfont_ as integer if colfont > -1 then colfont_ = colfont if colfont = -1 then colfont = colfont_ COLOR colfont : locate yfont,xfont : PRINT printfont ' swap x,y if u wish , i always...
by dafhi
Mar 13, 2012 4:03
Forum: General
Topic: Squares
Replies: 7677
Views: 469617

Re: Squares

@dodicat - that's mega-mega-cool. when i get done with my current project, i'd like to match that up with relsoft's easygl2d [Edit:] - Think ima wait on that, until I make some head-way on my New current project! :D @albert - "I'm a pentium, not a GPU cluster!" Even with optimizations it s...

Go to advanced search