Advertisement

from c++ -> p-code

Started by February 29, 2000 12:32 PM
0 comments, last by Zombie 24 years, 6 months ago
Could someone translate these to pseudocode? I''m translating Direct3D Tile Grapics example to VB, currently in the last demo . I''ll post the finished code here when it''s ready.

for (y=2; y<62; y++) {
 for (x=2; x<62; x++) {
 DeltaX = 1-(y % 2); 
 Value = rand()%10;

 Percentage = (float)Value/10.0f;
 
maybe this will help you..maybe not..

for y = 2 to 61
for x = 2 to 61
DeltaX = 1-(y mod 2)
Value = int(rnd*10)
Percentage = Value / 10
next x
next y

maybe thats right - my basic is a lil rusty

This topic is closed to new replies.

Advertisement