Updated examples

This commit is contained in:
Ray
2025-10-02 13:04:34 +02:00
parent de20076d36
commit 5d9c11e165
8 changed files with 2390 additions and 5 deletions

View File

@@ -4,9 +4,9 @@
*
* Example complexity rating: [★☆☆☆] 1/4
*
* Example originally created with raylib 2.5, last time updated with raylib 5.6
* Example originally created with raylib 2.5, last time updated with raylib 2.5
*
* Example contributed by Jopestpe (@jopestpe)
* Example contributed by Ramon Santamaria (@raysan5), reviewed by Jopestpe (@jopestpe)
*
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [others] example - vector angle
* raylib [shapes] example - vector angle
*
* Example complexity rating: [] 2/4
*
@@ -15,7 +15,7 @@
#include "raylib.h"
#include "raymath.h"
#include "raymath.h" // Required for: Vector2LineAngle()
//------------------------------------------------------------------------------------
// Program main entry point
@@ -25,9 +25,10 @@ int main(void)
// Initialization
//--------------------------------------------------------------------------------------
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [others] example - vector angle");
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - vector angle");
Vector2 v0 = { screenWidth/2, screenHeight/2 };
Vector2 v1 = Vector2Add(v0, (Vector2){ 100.0f, 80.0f });

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB