Kaynağa Gözat

Updated examples and makefile

pull/132/head
Ray 8 yıl önce
ebeveyn
işleme
f88c95ce2d
4 değiştirilmiş dosya ile 8 ekleme ve 4 silme
  1. +5
    -0
      examples/Makefile
  2. +2
    -2
      examples/core_2d_camera.c
  3. +1
    -1
      examples/core_oculus_rift.c
  4. +0
    -1
      examples/core_world_screen.c

+ 5
- 0
examples/Makefile Dosyayı Görüntüle

@ -173,6 +173,7 @@ EXAMPLES = \
core_3d_camera_free \
core_3d_camera_first_person \
core_2d_camera \
core_world_screen \
core_oculus_rift \
shapes_logo_raylib \
shapes_basic_shapes \
@ -288,6 +289,10 @@ core_3d_camera_first_person: core_3d_camera_first_person.c
# compile [core] example - 2d camera
core_2d_camera: core_2d_camera.c
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -D$(PLATFORM) $(WINFLAGS)
# compile [core] example - world screen
core_world_screen: core_world_screen.c
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -D$(PLATFORM) $(WINFLAGS)
# compile [core] example - oculus rift
core_oculus_rift: core_oculus_rift.c

+ 2
- 2
examples/core_2d_camera.c Dosyayı Görüntüle

@ -23,8 +23,8 @@ int main()
InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera");
Rectangle player = { 400, 280, 40, 40 };
Rectangle buildings[MAX_BUILDINGS] = { 0, 0, 0, 0 };
Color buildColors[MAX_BUILDINGS] = { 80, 80, 80, 255 };
Rectangle buildings[MAX_BUILDINGS];
Color buildColors[MAX_BUILDINGS];
int spacing = 0;

+ 1
- 1
examples/core_oculus_rift.c Dosyayı Görüntüle

@ -34,7 +34,7 @@ int main()
Vector3 cubePosition = { 0.0f, 0.0f, 0.0f };
o">//SetTargetFPS(90); // Set our game to run at 90 frames-per-second
SetTargetFPS(90); // Set our game to run at 90 frames-per-second
//--------------------------------------------------------------------------------------
// Main game loop

+ 0
- 1
examples/core_world_screen.c Dosyayı Görüntüle

@ -63,7 +63,6 @@ int main()
DrawText("Enemy: 100 / 100", cubeScreenPosition.x - MeasureText("Enemy: 100 / 100", 20) / 2, cubeScreenPosition.y, 20, BLACK);
DrawText("Text is always on top of the cube", (screenWidth - MeasureText("Text is always on top of the cube", 20)) / 2, 25, 20, GRAY);
EndDrawing();
//----------------------------------------------------------------------------------

Yükleniyor…
İptal
Kaydet