Recent

Author Topic: RaySokoban  (Read 3770 times)

Guva

  • Full Member
  • ***
  • Posts: 117
RaySokoban
« on: May 21, 2024, 03:03:30 am »
A small classic pascal game using the raylib library

https://github.com/GuvaCode/RaySokoban


Seenkao

  • Hero Member
  • *****
  • Posts: 613
    • New ZenGL.
Re: RaySokoban
« Reply #1 on: May 23, 2024, 11:45:53 am »
Это не просто для новичков и достаточно не сложно для людей кто уже умеет программировать в Паскале. Жаль, но большинство ищут более лёгкие способы  создания игр. И зачастую не находят.  :)
Вообще молодец что заморочился, даже несколько уровней сделал!

Я же как застреваю на меню, так дальше сдвинуться не могу. Хочу чтоб всё работало "идеально" - это моя проблема... Надо предоставить информацию людям чтоб было попроще, но при попытке заставить всё работать идеально код становится невыносим, его почти не сделать лёгким даже для восприятия.

Успехов! ;)

---------------------------------
Google translate:
This is not easy for beginners and not difficult enough for people who already know how to program in Pascal. It's a shame, but most people are looking for easier ways to create games. And often they don’t find it. :)
In general, well done for trying and even making several levels!

I get stuck on the menu and can’t move any further. I want everything to work “perfectly” - that’s my problem... I need to provide information to people to make it easier, but when I try to make everything work perfectly, the code becomes unbearable, it’s almost impossible to make it easy to even understand.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

fcu

  • Full Member
  • ***
  • Posts: 100
Re: RaySokoban
« Reply #2 on: May 23, 2024, 08:10:53 pm »
very nice but the game is a bit foggy , the player is not visible
this is a very old video card : nvidia gforce gt 610

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: RaySokoban
« Reply #3 on: May 23, 2024, 08:54:56 pm »
Tested binaries successful on a very old machine: (Latest compatible NVidia/DirectX/OpenGL drivers installed)
Quote
INFO:     > Vendor:   NVIDIA Corporation
INFO:     > Renderer: GeForce GTX 560/PCIe/SSE2
INFO:     > Version:  3.3.0 NVIDIA 391.35
INFO:     > GLSL:     3.30 NVIDIA via Cg compiler
Good job Guva!
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

Guva

  • Full Member
  • ***
  • Posts: 117
Re: RaySokoban
« Reply #4 on: May 24, 2024, 03:10:04 am »
very nice but the game is a bit foggy , the player is not visible
this is a very old video card : nvidia gforce gt 610
could you show the download log?
It looks like the light shader is not working.

Guva

  • Full Member
  • ***
  • Posts: 117
Re: RaySokoban
« Reply #5 on: May 24, 2024, 05:52:50 am »
Я же как застреваю на меню, так дальше сдвинуться не могу. Хочу чтоб всё работало "идеально" - это моя проблема... Надо предоставить информацию людям чтоб было попроще, но при попытке заставить всё работать идеально код становится невыносим, его почти не сделать лёгким даже для восприятия.
Ну это почти у многих так.
Я вот лет десять переписивываю игру мечты. Всё время что-то не устраивает.

Но по крайне мере ты взялся за ZenGl и не бросаешь его.

Yandex translate:

Well, this is almost the case for many.
I've been rewriting the dream game for ten years now. Something doesn't suit you all the time.

But at least you've taken up ZenGl and you're not abandoning it.

fcu

  • Full Member
  • ***
  • Posts: 100
Re: RaySokoban
« Reply #6 on: May 24, 2024, 11:34:40 am »
this is the loading log
Code: Text  [Select][+][-]
  1. INFO: Initializing raylib 5.1-dev
  2. INFO: Platform backend: DESKTOP (GLFW)
  3. INFO: Supported raylib modules:
  4. INFO:     > rcore:..... loaded (mandatory)
  5. INFO:     > rlgl:...... loaded (mandatory)
  6. INFO:     > rshapes:... loaded (optional)
  7. INFO:     > rtextures:. loaded (optional)
  8. INFO:     > rtext:..... loaded (optional)
  9. INFO:     > rmodels:... loaded (optional)
  10. INFO:     > raudio:.... loaded (optional)
  11. INFO: wantWindowed: 0, size: 800x600
  12. INFO: DISPLAY: Device initialized successfully
  13. INFO:     > Display size: 1366 x 768
  14. INFO:     > Screen size:  800 x 600
  15. INFO:     > Render size:  800 x 600
  16. INFO:     > Viewport offsets: 0, 0
  17. INFO: GLAD: OpenGL extensions loaded successfully
  18. INFO: GL: Supported extensions count: 299
  19. INFO: GL: OpenGL device information:
  20. INFO:     > Vendor:   NVIDIA Corporation
  21. INFO:     > Renderer: GeForce GT 610/PCIe/SSE2
  22. INFO:     > Version:  3.3.0
  23. INFO:     > GLSL:     3.30 NVIDIA via Cg compiler
  24. INFO: GL: VAO extension detected, VAO functions loaded successfully
  25. INFO: GL: NPOT textures extension detected, full NPOT textures supported
  26. INFO: GL: DXT compressed textures supported
  27. INFO: GL: ETC2/EAC compressed textures supported
  28. INFO: GLFW platform: Win32
  29. INFO: PLATFORM: DESKTOP (GLFW): Initialized successfully
  30. INFO: TEXTURE: [ID 1] Texture loaded successfully (1x1 | R8G8B8A8 | 1 mipmaps)
  31. INFO: TEXTURE: [ID 1] Default texture loaded successfully
  32. INFO: SHADER: [ID 1] Vertex shader compiled successfully
  33. INFO: SHADER: [ID 2] Fragment shader compiled successfully
  34. INFO: SHADER: [ID 3] Program shader loaded successfully
  35. INFO: SHADER: [ID 3] Default shader loaded successfully
  36. INFO: RLGL: Render batch vertex buffers loaded successfully in RAM (CPU)
  37. INFO: RLGL: Render batch vertex buffers loaded successfully in VRAM (GPU)
  38. INFO: RLGL: Default OpenGL state initialized successfully
  39. INFO: TEXTURE: [ID 2] Texture loaded successfully (128x128 | GRAY_ALPHA | 1 mipmaps)
  40. INFO: FONT: Default font loaded successfully (224 glyphs)
  41. INFO: SYSTEM: Decompress data: Comp. size: 2286 -> Original size: 262144
  42. INFO: TEXTURE: [ID 3] Texture loaded successfully (512x256 | GRAY_ALPHA | 1 mipmaps)
  43. INFO: SYSTEM: Decompress data: Comp. size: 754 -> Original size: 3024
  44. INFO: SYSTEM: Decompress data: Comp. size: 606 -> Original size: 3024
  45. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] File loaded successfully
  46. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Model basic data (glb) loaded successfully
  47. INFO:     > Meshes count: 14
  48. INFO:     > Materials count: 3 (+1 default)
  49. INFO: VAO: [ID 2] Mesh uploaded successfully to VRAM (GPU)
  50. INFO: VAO: [ID 3] Mesh uploaded successfully to VRAM (GPU)
  51. INFO: VAO: [ID 4] Mesh uploaded successfully to VRAM (GPU)
  52. INFO: VAO: [ID 5] Mesh uploaded successfully to VRAM (GPU)
  53. INFO: VAO: [ID 6] Mesh uploaded successfully to VRAM (GPU)
  54. INFO: VAO: [ID 7] Mesh uploaded successfully to VRAM (GPU)
  55. INFO: VAO: [ID 8] Mesh uploaded successfully to VRAM (GPU)
  56. INFO: VAO: [ID 9] Mesh uploaded successfully to VRAM (GPU)
  57. INFO: VAO: [ID 10] Mesh uploaded successfully to VRAM (GPU)
  58. INFO: VAO: [ID 11] Mesh uploaded successfully to VRAM (GPU)
  59. INFO: VAO: [ID 12] Mesh uploaded successfully to VRAM (GPU)
  60. INFO: VAO: [ID 13] Mesh uploaded successfully to VRAM (GPU)
  61. INFO: VAO: [ID 14] Mesh uploaded successfully to VRAM (GPU)
  62. INFO: VAO: [ID 15] Mesh uploaded successfully to VRAM (GPU)
  63. INFO: VAO: [ID 16] Mesh uploaded successfully to VRAM (GPU)
  64. INFO: VAO: [ID 17] Mesh uploaded successfully to VRAM (GPU)
  65. INFO: VAO: [ID 18] Mesh uploaded successfully to VRAM (GPU)
  66. INFO: VAO: [ID 19] Mesh uploaded successfully to VRAM (GPU)
  67. INFO: VAO: [ID 20] Mesh uploaded successfully to VRAM (GPU)
  68. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Block_Dirt.gltf] File loaded successfully
  69. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Block_Dirt.gltf] Model basic data (glTF) loaded successfully
  70. INFO:     > Meshes count: 1
  71. INFO:     > Materials count: 1 (+1 default)
  72. INFO: IMAGE: Data loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  73. INFO: TEXTURE: [ID 4] Texture loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  74. INFO: VAO: [ID 21] Mesh uploaded successfully to VRAM (GPU)
  75. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Block_Diamond.gltf] File loaded successfully
  76. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Block_Diamond.gltf] Model basic data (glTF) loaded successfully
  77. INFO:     > Meshes count: 1
  78. INFO:     > Materials count: 1 (+1 default)
  79. INFO: IMAGE: Data loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  80. INFO: TEXTURE: [ID 5] Texture loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  81. INFO: VAO: [ID 22] Mesh uploaded successfully to VRAM (GPU)
  82. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Cube_Crate.gltf] File loaded successfully
  83. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Cube_Crate.gltf] Model basic data (glTF) loaded successfully
  84. INFO:     > Meshes count: 1
  85. INFO:     > Materials count: 2 (+1 default)
  86. INFO: VAO: [ID 23] Mesh uploaded successfully to VRAM (GPU)
  87. INFO: VAO: [ID 24] Mesh uploaded successfully to VRAM (GPU)
  88. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Cube_Question.gltf] File loaded successfully
  89. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Cube_Question.gltf] Model basic data (glTF) loaded successfully
  90. INFO:     > Meshes count: 1
  91. INFO:     > Materials count: 3 (+1 default)
  92. INFO: VAO: [ID 25] Mesh uploaded successfully to VRAM (GPU)
  93. INFO: VAO: [ID 26] Mesh uploaded successfully to VRAM (GPU)
  94. INFO: VAO: [ID 27] Mesh uploaded successfully to VRAM (GPU)
  95. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Cube_Exclamation.gltf] File loaded successfully
  96. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Cube_Exclamation.gltf] Model basic data (glTF) loaded successfully
  97. INFO:     > Meshes count: 1
  98. INFO:     > Materials count: 3 (+1 default)
  99. INFO: VAO: [ID 28] Mesh uploaded successfully to VRAM (GPU)
  100. INFO: VAO: [ID 29] Mesh uploaded successfully to VRAM (GPU)
  101. INFO: VAO: [ID 30] Mesh uploaded successfully to VRAM (GPU)
  102. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/DeadTree_1.gltf] File loaded successfully
  103. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/DeadTree_1.gltf] Model basic data (glTF) loaded successfully
  104. INFO:     > Meshes count: 1
  105. INFO:     > Materials count: 1 (+1 default)
  106. INFO: IMAGE: Data loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  107. INFO: TEXTURE: [ID 6] Texture loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  108. INFO: VAO: [ID 31] Mesh uploaded successfully to VRAM (GPU)
  109. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/DeadTree_2.gltf] File loaded successfully
  110. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/DeadTree_2.gltf] Model basic data (glTF) loaded successfully
  111. INFO:     > Meshes count: 1
  112. INFO:     > Materials count: 1 (+1 default)
  113. INFO: IMAGE: Data loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  114. INFO: TEXTURE: [ID 7] Texture loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  115. INFO: VAO: [ID 32] Mesh uploaded successfully to VRAM (GPU)
  116. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Mushroom.gltf] File loaded successfully
  117. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Mushroom.gltf] Model basic data (glTF) loaded successfully
  118. INFO:     > Meshes count: 1
  119. INFO:     > Materials count: 1 (+1 default)
  120. INFO: IMAGE: Data loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  121. INFO: TEXTURE: [ID 8] Texture loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  122. INFO: VAO: [ID 33] Mesh uploaded successfully to VRAM (GPU)
  123. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Crystal_Small.gltf] File loaded successfully
  124. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/Crystal_Small.gltf] Model basic data (glTF) loaded successfully
  125. INFO:     > Meshes count: 1
  126. INFO:     > Materials count: 1 (+1 default)
  127. INFO: IMAGE: Data loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  128. INFO: TEXTURE: [ID 9] Texture loaded successfully (32x32 | R8G8B8 | 1 mipmaps)
  129. INFO: VAO: [ID 34] Mesh uploaded successfully to VRAM (GPU)
  130. INFO: FILEIO: [data/shaders/lighting.vs] Text file loaded successfully
  131. INFO: FILEIO: [data/shaders/fog.fs] Text file loaded successfully
  132. INFO: SHADER: [ID 4] Vertex shader compiled successfully
  133. INFO: SHADER: [ID 5] Fragment shader compiled successfully
  134. INFO: SHADER: [ID 6] Program shader loaded successfully
  135. INFO: FILEIO: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] File loaded successfully
  136. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Dance (197 frames, 3.333333s)
  137. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Death (57 frames, 0.958333s)
  138. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Idle (197 frames, 3.333333s)
  139. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Jump (42 frames, 0.708333s)
  140. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_No (99 frames, 1.666667s)
  141. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Punch (50 frames, 0.833333s)
  142. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Running (57 frames, 0.958333s)
  143. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Sitting (25 frames, 0.416667s)
  144. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Standing (25 frames, 0.416667s)
  145. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_ThumbsUp (94 frames, 1.583333s)
  146. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Walking (57 frames, 0.958333s)
  147. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_WalkJump (50 frames, 0.833333s)
  148. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Wave (108 frames, 1.833333s)
  149. INFO: MODEL: [C:\Users\fcu\Desktop\RaySokoban-main\binary\data/models/robot.glb] Loaded animation: Robot_Yes (99 frames, 1.666667s)
  150.  
  151.  

fcu

  • Full Member
  • ***
  • Posts: 100
Re: RaySokoban
« Reply #7 on: May 30, 2024, 09:25:17 am »
ok  , i find that when i enable the optimization > 1 then the game becomes fogy but with optimization <=1 it looks fine

to be precised the guilty optimization switch is -OoREGVAR
i don't know if this is FPC bug or something else  ! 

 

TinyPortal © 2005-2018