Compare commits
6
Commits
8eda1730bf
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
220daae156 | ||
|
|
f759b70029 | ||
|
|
526bfc7f5c | ||
|
|
87e190dfd6 | ||
|
|
a3849ffde9 | ||
|
|
9ce6f05ba7 |
No files matched your search
+3
-1
@@ -24,7 +24,9 @@ set(INCLUDE_DIRS
|
||||
)
|
||||
|
||||
# Create the executable target
|
||||
add_executable(${PROJECT_NAME} ${SRC_FILES})
|
||||
add_executable(${PROJECT_NAME} ${SRC_FILES}
|
||||
raylib/menu.h
|
||||
src/menu.cpp)
|
||||
|
||||
# Add include directories to the target
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${INCLUDE_DIRS})
|
||||
|
||||
+6
-4
@@ -26,16 +26,18 @@ int main()
|
||||
camera.fovy = 45.0f;
|
||||
camera.projection = CAMERA_PERSPECTIVE;
|
||||
|
||||
// cubePairs = {};
|
||||
// Nur 3 Farben für 3 Paare
|
||||
Color colors[] = { RED, GREEN, BLUE };
|
||||
Color colors[] = { RED, GREEN, BLUE, YELLOW, PINK };
|
||||
|
||||
|
||||
// 6 Karten-Positionen im 3x2 Raster
|
||||
std::vector<Vec3> positions = {{-2, 0, -2}, {0, 0, -2}, {2, 0, -2},{-2, 0, 0}, {0, 0, 0}, {2, 0, 0}};
|
||||
std::vector<Vec3> positions = {{-2, 0, -2}, {0, 0, -2}, {2, 0, -2},{-2, 0, 0}, {0, 0, 0},
|
||||
{2, 0, 0},{2,0,-4},{0,0,-4},{-2,0,-4},{-4,0,-2}};
|
||||
|
||||
// Farben doppelt in einen Pool legen und mischen
|
||||
std::vector<Color> colorPool;
|
||||
for (int i = 0; i < 3; i++)
|
||||
for (int i = 0; i <5; i++)
|
||||
{
|
||||
colorPool.push_back(colors[i]);
|
||||
colorPool.push_back(colors[i]);
|
||||
@@ -50,7 +52,7 @@ int main()
|
||||
|
||||
// Karten/Würfel erstellen
|
||||
std::vector<gamecube> cubes;
|
||||
for (int i = 0; i < 6; i++)
|
||||
for (int i = 0; i < 10; i++)
|
||||
cubes.emplace_back(positions[i], colorPool[i]);
|
||||
|
||||
gamecube* first = nullptr;
|
||||
|
||||
Reference in new issue
Block a user