Преглед изворни кода

Refactored randomdefault to random.

Brucey пре 3 година
родитељ
комит
e538d8e39a

+ 2 - 6
samples/aaronkoolen/AStar/astar_demo.bmx

@@ -4,12 +4,8 @@ Strict
 ' The GUI is pretty crappy
 ' There are quite a few comments in the areas of importance. Sometimes this makes
 ' the code a little harder to read, but this was done for instructional purposes foremost
-?win32
-Framework SDL.d3d9sdlmax2d
-?Not win32
-Framework SDL.gl2sdlmax2d
-?
-Import brl.RandomDefault
+Framework SDL.SDLRenderMax2d
+Import brl.Random
 Import brl.pngloader
 
 Import "astar_graph_walker.bmx"

+ 1 - 1
samples/birdie/games/tempest/tempest.bmx

@@ -7,7 +7,7 @@ Framework SDL.d3d9sdlmax2d
 ?Not win32
 Framework SDL.gl2sdlmax2d
 ?
-Import brl.RandomDefault
+Import brl.Random
 
 Const CWidth#=640
 Const CHeight#=480

+ 1 - 1
samples/birdie/games/tiledrop/tiledrop.bmx

@@ -5,7 +5,7 @@ Framework SDL.d3d9sdlmax2d
 ?Not win32
 Framework SDL.gl2sdlmax2d
 ?
-Import brl.RandomDefault
+Import brl.Random
 Import brl.ramstream
 Import brl.pngloader
 

+ 1 - 1
samples/birdie/games/zombieblast/game.bmx

@@ -7,7 +7,7 @@ Framework SDL.gl2sdlmax2d
 ?
 Import brl.ramstream
 Import brl.pngloader
-Import brl.RandomDefault
+Import brl.Random
 
 '
 ' Game Demo Coded By David Bird (Birdie)

+ 1 - 1
samples/birdie/misc/filmclip/main.bmx

@@ -5,7 +5,7 @@ Framework SDL.d3d9sdlmax2d
 ?Not win32
 Framework SDL.gl2sdlmax2d
 ?
-Import brl.RandomDefault
+Import brl.Random
 Import brl.pngloader
 
 Graphics 640,480,0

+ 1 - 1
samples/breakout/breakout.bmx

@@ -3,7 +3,7 @@ Strict
 
 Framework SDL.SDLRenderMax2d
 Import brl.pngloader
-Import brl.RandomDefault
+Import brl.Random
 
 Const WIDTH = 640,HEIGHT = 480, DEPTH = 0
 Const ShadowOn   = 1

+ 1 - 1
samples/digesteroids/digesteroids.bmx

@@ -26,7 +26,7 @@ Framework SDL.gl2sdlmax2d
 Import brl.pngloader
 Import brl.wavloader
 Import brl.oggloader
-Import brl.RandomDefault
+Import brl.Random
 Import sdl.sdlfreeaudio
 
 ' Import various utilities.

+ 1 - 1
samples/firepaint/firepaint.bmx

@@ -13,7 +13,7 @@ Import sdl.SDLFreeAudio
 Import brl.ramstream
 Import brl.pngloader
 Import brl.wavloader
-Import brl.RandomDefault
+Import brl.Random
 
 Import "color.bmx"
 

+ 1 - 1
samples/flameduck/circlemania/cmania.bmx

@@ -8,7 +8,7 @@ Strict
 
 Framework SDL.SDLRenderMax2d
 Import brl.pngloader
-Import brl.RandomDefault
+Import brl.Random
 
 Type rasterBar
 	Field angle:Double,angleadd:Double,color[],freq:Double

+ 1 - 1
samples/flameduck/oldskool2/oldskool2.bmx

@@ -12,7 +12,7 @@ Framework SDL.SDLRenderMax2d
 Import brl.pngloader
 Import brl.ramstream
 Import brl.oggloader
-Import brl.RandomDefault
+Import brl.Random
 Import sdl.sdlfreeaudio
 
 Incbin "circlefont.png"

+ 1 - 1
samples/hitoro/fireworks.bmx

@@ -5,7 +5,7 @@ Framework SDL.d3d9sdlmax2d
 ?Not win32
 Framework SDL.gl2sdlmax2d
 ?
-Import brl.RandomDefault
+Import brl.Random
 
 ' Global variables tracking number of Firework objects and
 ' number of Particle objects. These are increased and decreased

+ 1 - 1
samples/hitoro/shadowimage.bmx

@@ -6,7 +6,7 @@ Framework SDL.d3d9sdlmax2d
 Framework SDL.gl2sdlmax2d
 ?
 Import brl.pngloader
-Import brl.RandomDefault
+Import brl.Random
 
 ' Rockets rotating and casting alpha-blended, pseudo light-sourced shadows on each other...
 

+ 1 - 1
samples/hitoro/singlelist.bmx

@@ -6,7 +6,7 @@ Framework SDL.d3d9sdlmax2d
 Framework SDL.gl2sdlmax2d
 ?
 Import brl.linkedlist
-Import brl.RandomDefault
+Import brl.Random
 
 ' Adding objects to an object-specific list...
 

+ 1 - 1
samples/hitoro/throwrockets.bmx

@@ -8,7 +8,7 @@ Framework SDL.gl2sdlmax2d
 Import brl.pngloader
 Import brl.ramstream
 Import brl.linkedlist
-Import brl.RandomDefault
+Import brl.Random
 
 Const PARTICLE_GRAVITY# = 0.05
 

+ 1 - 1
samples/hitoro/tilerocket.bmx

@@ -6,7 +6,7 @@ Framework SDL.d3d9sdlmax2d
 Framework SDL.gl2sdlmax2d
 ?
 Import brl.pngloader
-Import brl.RandomDefault
+Import brl.Random
 
 ' Ugly -- just playing around!
 

+ 1 - 1
samples/simonh/fireworks/fireworks.bmx

@@ -8,7 +8,7 @@ Framework SDL.d3d9sdlmax2d
 Framework SDL.gl2sdlmax2d
 ?
 Import brl.pngloader
-Import brl.RandomDefault
+Import brl.Random
 
 Global width:Int=800
 Global height:Int=600

+ 1 - 1
samples/simonh/snow/snowfall.bmx

@@ -8,7 +8,7 @@ Framework SDL.d3d9sdlmax2d
 Framework SDL.gl2sdlmax2d
 ?
 Import brl.pngloader
-Import brl.RandomDefault
+Import brl.Random
 
 Global width:Int=800
 Global height:Int=600

+ 1 - 1
samples/starfieldpong/starfieldpong.bmx

@@ -1,7 +1,7 @@
 SuperStrict
 
 Framework SDL.SDLRenderMax2d
-Import brl.RandomDefault
+Import brl.Random
 
 Const WIDTH:Int=640,HEIGHT:Int=480,DEPTH:Int=0
 Const Star_Count:Int 	= 1000	       ' Stars Count