playground:musicspacial
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | Dernière révisionLes deux révisions suivantes | ||
playground:musicspacial [2017/05/12 20:07] – falsam | playground:musicspacial [2018/01/11 02:03] – falsam | ||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
<file purebasic | <file purebasic | ||
+ | ; | ||
EnableExplicit | EnableExplicit | ||
Ligne 10: | Ligne 11: | ||
UseModule BJS | UseModule BJS | ||
- | Global Scene, Camera, Light, Sound1, Sound2, Ground, GroundMat, Pole1, Pole2 | + | Global Scene, Camera, Light, Sound1, Sound2, Ground, GroundTex, GroundMat, Pole1, Pole2 |
Declare LoadGame() | Declare LoadGame() | ||
Ligne 27: | Ligne 28: | ||
| | ||
;Camera | ;Camera | ||
- | Camera = CreateCamera(" | + | Camera = CreateCamera(" |
CameraBodySize(Camera, | CameraBodySize(Camera, | ||
CameraLookAt(Camera, | CameraLookAt(Camera, | ||
ClearScene(RGB(0, | ClearScene(RGB(0, | ||
- | Light = CreateLight(" | + | Light = CreateLight(" |
| | ||
;Ground | ;Ground | ||
Ground = CreateGround(" | Ground = CreateGround(" | ||
- | | + | |
+ | GroundMat = CreateMaterial(" | ||
+ | SetMaterialTexture(GroundMat, | ||
ScaleMaterial(GroundMat, | ScaleMaterial(GroundMat, | ||
- | | + | |
| | ||
;Music Pole | ;Music Pole | ||
Pole1 = CreateSphere(" | Pole1 = CreateSphere(" | ||
MoveMesh(Pole1, | MoveMesh(Pole1, | ||
- | MusicAttachToMesh(Sound1, | + | MusicAttachToMesh(Pole1, Sound1) |
Pole2 = CreateSphere(" | Pole2 = CreateSphere(" | ||
MoveMesh(Pole2, | MoveMesh(Pole2, | ||
- | MusicAttachToMesh(Sound2, | + | MusicAttachToMesh(Pole2, Sound2) |
RenderLoop(@RenderGame()) | RenderLoop(@RenderGame()) |
playground/musicspacial.txt · Dernière modification : 2023/03/15 15:49 de 127.0.0.1