Post by scalion on Apr 10, 2020 9:10:22 GMT 1
Hi all,
This project is a test for future others projects, but's a game.
External link on my dedicated blog : gfabasic32.free.fr/gobmaze.zip (3.9kb)
What i learned with it :
- It's not a good way to perform a moving without origine/target vector, that's the case here, that's why the gober is sometime too slow or too speed even i attempt to compute a moderator with FPS. FPS is not a constant and variations cause fail. Ghosts use a system origine/target vector then they correctly always move at the same speed.
In detail : an object is at a point P1 at time T1 and must go the point P2 at time T2.That give the position of this object in rendering is P1+(P2-P1)*min(T2,Timer-T1). Next when Timer>T2 the object can take new target. That's the best way.
- My collision algorythm is not good. i must search other solution and i must completely rethink the position-environment interaction.
- I Must use the opengl shaders next time. A lot of vertex/face etc... too much opengl call in the gobershow() function even that's work.
- I still haven't figured out exactly how the lights work in opengl. I do it all at random and I watch what it looks like.
- You must always attach the includes files we don't all have the same. Dont forget ressources like skybox textures for example
- Positive side :
- Improving ManagePicturePng function.
- DirectSound library easy to include and use.
Actually i search to implement FX effect. It's going well (see my Thread about Direct Sound Library).
- I create a skybox generator (see my thread about) for this that i can reuse in future time.
- glchoose() function perfom a good interaction easy to use in opengl for menu.
- 2D Text dinamic creating she work fully that i can ameliorate again.
- I learned how pick a polygon with the mouse using FeedBack buffer, now i know (see this post).
- Sharing my results always improves my knowledge, there are always enthusiasts to give me a serious helping hand. Thank you all !