Increase range of star field a bit more
This commit is contained in:
parent
a66a2fc879
commit
fc4d2559fa
|
@ -153,15 +153,15 @@
|
||||||
|
|
||||||
(defun populate-world ()
|
(defun populate-world ()
|
||||||
(setf *world*
|
(setf *world*
|
||||||
(make-array 101 :initial-contents
|
(make-array 201 :initial-contents
|
||||||
(loop for i from 0 to 100 collecting
|
(loop for i from 0 to 200 collecting
|
||||||
(let ((e (make-instance 'game-object
|
(let ((e (make-instance 'game-object
|
||||||
:model (make-instance 'model
|
:model (make-instance 'model
|
||||||
:vertices (vertices *diamond-model*)
|
:vertices (vertices *diamond-model*)
|
||||||
:faces (faces *diamond-model*))
|
:faces (faces *diamond-model*))
|
||||||
|
|
||||||
:body (make-instance 'body
|
:body (make-instance 'body
|
||||||
:coords (vector (- (random 75) 37) (- (random 75) 37) (- (random 200) ))
|
:coords (vector (- (random 75) 37) (- (random 75) 37) (- (random 400) ))
|
||||||
:angles (vector (random 360) (random 360) (random 360))))))
|
:angles (vector (random 360) (random 360) (random 360))))))
|
||||||
(setf (colors (model e)) (make-2d-array 3 3 `((,(random 255) ,(random 255) ,(random 255)) (,(random 255) ,(random 255) ,(random 255)) (,(random 255) ,(random 255) ,(random 255)))))
|
(setf (colors (model e)) (make-2d-array 3 3 `((,(random 255) ,(random 255) ,(random 255)) (,(random 255) ,(random 255) ,(random 255)) (,(random 255) ,(random 255) ,(random 255)))))
|
||||||
(setf (face-colors (model e)) (make-2d-array 8 3 '((0 1 1) (0 1 1) (0 1 1) (0 1 1) (1 2 1) (1 2 1) (1 2 1) (1 2 1))))
|
(setf (face-colors (model e)) (make-2d-array 8 3 '((0 1 1) (0 1 1) (0 1 1) (0 1 1) (1 2 1) (1 2 1) (1 2 1) (1 2 1))))
|
||||||
|
@ -229,4 +229,4 @@
|
||||||
#+(and sbcl (not sb-thread)) (restartable
|
#+(and sbcl (not sb-thread)) (restartable
|
||||||
(sb-sys:serve-all-events 0))
|
(sb-sys:serve-all-events 0))
|
||||||
(restartable (sim-step))))))
|
(restartable (sim-step))))))
|
||||||
;(draw)))))
|
;(draw)))))
|
||||||
|
|
Loading…
Reference in New Issue