Project Icon

godot_experiments

Godot引擎多维度游戏开发实验集

这是一个包含多个Godot游戏引擎实验的开源项目,涵盖2D、3D和VR领域。项目展示了物理模拟、程序动画、着色器效果等游戏机制的实现。开发者可以通过这些实例学习Godot引擎的功能,探索其在游戏开发中的应用可能。所有实验代码均可查看和修改,为Godot学习者提供了实用的参考资源。

Godot experiments

⚠️ Important: All the new experiments starting from march 2023 will target Godot 4.0. If you want to checkout 3.x project, head to the 3.x branch.

Some of my 2D/3D/VR/UI experiments in Godot. You can find some of my tutorials and experiments on my YouTube channel.

If you want shader specific experiments, head to my Shaders experiments repo

🦺 Projects & descriptions

IconTypeTittleDescriptionStatus
2Ddamped_oscillatorusing damped oscillators to move and rotate thingsDONE ✔
2Djuicy_bouncy_ballmaking a simple bouncing ball JUICYDONE ✔
2Dpolygon_toolHow to use Polygon2D, CollisionPolygon2D, Line2D and Path2D to create obstacles, levels and moreDONE ✔
Godot 3.x projects
IconTypeTittleDescriptionStatus
2D7 tips 2D lookshowing 7 tips to make better 2D visualsDONE ✔
2Daccelerometer_gamepad_gamesimple game with websocket server to be controlled by a smartphone's accelerometer. See MISC/accelerometer_gamepadDONE ✔
2Dandroid_accelerometertrying to use the accelerometer to set the gravityDONE ✔
2Dconnected_dotsdots moving around making connectionsDONE ✔
2Ddestructible_terrainsimple worms like destructible terrain using the Geometry classDONE ✔
2Dflag_shader2D & 3D simple flag shaderDONE ✔
2Dgeometry_classshowcase of what the geomtry class can offer in 2DDONE ✔
2Dloading_shadersimple loading shader effects, from black and white to rgbDONE ✔
2Dmobile_uitrying the Godot's UI node on mobileDONE ✔
2Dquick_prototypea small scene with a script to allow quick prototyping. You draw a shape with the line2D, and it automatically add a physics body and a background to your shape.DONE ✔
2Drewind_mechanictime rewind mechanic for all objects, 2D & 3DDONE ✔
2Dscratch_shaderscratch effect done with by drawing on a viewport and using the texture in a shaderDONE ✔
2Dtrajectory_linetrajectory line using maths & a Line2D. Supports collisions!DONE ✔
3Dandroid_maze_accelerometercontrol a maze's orientation with the phone's acceleromterDONE ✔
3Darea_gravitya simple test using the gravity of an areaDONE ✔
3Dballoon_deployrecreating just cause balloon deploy mechanic with physicsDONE ✔
3Dcamera_wallwall hiding to reveal player to the cameraDONE ✔
3Dcara test with godot vehicle body physics and trial-like terrainDONE ✔
3Dcontrol_remedymechanic re-creation from control remedy: grabbing and throwing object through telekinesisDONE ✔
3Dfish_tank_shaderleaky fish tank shader. You shoot somewhere and the water level drops until it reaches the holeDONE ✔
3Dgreenscreen_cameraa greenscreen effect to a camera. The camera only sees an object, allowing you to put something in the background, like an image.DONE ✔
3Dhoverboarda physics based hoverboard, inspired by Codeer.DONE ✔
3Dinverted_penduluma test with bullet's physics. An inverted pendulm with an inertia wheelDONE ✔
3Dmirrorstwo ways of faking mirrorsDONE ✔
3Dplaneplane controllerWIP 🛠
3Dprocedural_animationprodecural animation of a spider-like (or robot) model, with inverse kinematicsWIP 🛠
3Drobotic_armcomputer vision + IK test with a robotic pick and place armWIP 🛠
3Dspectrum_analyzersimple spectrum analyzer moving 3d objectsDONE ✔
3Dtvdisplaying a video or frames on a crt tvDONE ✔
3Dvalheim_tree_choprecreating the Valheim tree chop mechanicDONE ✔
3DwheelBota robot rolling on one wheelDONE ✔
3Dxray_visionstting up materials to simulate an Xray/see through effectDONE ✔
VRquest_playgrounda project testing various things in VR for the Oculus Quest: handtracking, handtrackings physicsWIP 🛠
VRtable_tennistrying to use Godot's physic to recreate a table tennis gameWIP 🛠
VRbow_and_arrowbow and arrow mechanicWIP 🛠
VRcontrol_like_interactiontrying to recreate CONTROL like movement, and messing with area's gravityDONE ✔
MISCaccelerometer_gamepaduse the phone's accelerometer and websockets to control a game. See 2D/accelerometer_gamepad_gameDONE ✔
MISCaccessibilitya few examples of relatively easy things to make your game more accessible. See: https://youtu.be/YVGL3IifhLcDONE ✔
MISCaudio_visualizerrepresent the audio magnitude against time both left and right channel. Drawn as the song playsDONE ✔
MISCcamera_transitionsmoothly transition between two cameras. Works both for 2D & 3DDONE ✔
MISCcard_gametest using cards to make a UIDONE ✔
MISCinstagram_uirecreating some of Instagram's UIDONE ✔
MISCeverything_particlesturn anything into particles using viewportsDONE ✔
MISCrandomall kinds of usage of randomDONE ✔
MISCslow_down_timetwo ways of slowing down timeDONE ✔
MISCtinder_uirecreating some of Tinder's UIDONE ✔

📹 Videos & GIFs

Accelerometer android maze 3D

Accelerometer android 2D

Inverted_pendulum

Area_gravity

Camera_walls

Audio_visualizer

Car

Greenscreen_camera

Balloon_deploy

Control_remedy

Loading_shader

Connected_dots

Destructible

Geometry class

Rewind mechanic

X-Ray Shader

UI card test

👍 Useful

  • [3D/android_maze_acceloremeter]:

    • GLES2 was buggy for me, some texture were not shown
    • Bullet physics has a bug when you change the gravity vector at runtime -> use Godot physics instead
  • [3D/robotic_arm]:

    • GLES2 doesn't work correctly with IK, part of the mesh is not moved
    • Bullet physics' constant velocity for static body doesn't work -> use Godot physics instead
    • The IK target must be high in the tree than the SkeletonIK node, otherwise Godot freaks out

Icon background color: #022C4D

http://www.mazegenerator.net/

💁‍♂️ About me

Software engineer & gamedev. 3D, 2D & VR.

If you enjoyed this project and want to support me:

Get exlusive content and access to my game's source code

Patreon link

One time donations

Buy Me a Coffee at ko-fi.com

📔 LICENSE & Credits

This project is distributed under the MIT license, which it's free to use, modify and redistribute, for both personal and commercial projects. For more information see LICENSE.md.

  • 2D/accelerometer_gamepad_game! (spaceships) Kenney
  • 2D/android_accelerometer: (texture + balls) Kenney
  • 3D/android_accelerometer: (Ball + flag)
项目侧边栏1项目侧边栏2
推荐项目
Project Cover

豆包MarsCode

豆包 MarsCode 是一款革命性的编程助手,通过AI技术提供代码补全、单测生成、代码解释和智能问答等功能,支持100+编程语言,与主流编辑器无缝集成,显著提升开发效率和代码质量。

Project Cover

问小白

问小白是一个基于 DeepSeek R1 模型的智能对话平台,专为用户提供高效、贴心的对话体验。实时在线,支持深度思考和联网搜索。免费不限次数,帮用户写作、创作、分析和规划,各种任务随时完成!

Project Cover

白日梦AI

白日梦AI提供专注于AI视频生成的多样化功能,包括文生视频、动态画面和形象生成等,帮助用户快速上手,创造专业级内容。

Project Cover

有言AI

有言平台提供一站式AIGC视频创作解决方案,通过智能技术简化视频制作流程。无论是企业宣传还是个人分享,有言都能帮助用户快速、轻松地制作出专业级别的视频内容。

Project Cover

讯飞绘镜

讯飞绘镜是一个支持从创意到完整视频创作的智能平台,用户可以快速生成视频素材并创作独特的音乐视频和故事。平台提供多样化的主题和精选作品,帮助用户探索创意灵感。

Project Cover

讯飞文书

讯飞文书依托讯飞星火大模型,为文书写作者提供从素材筹备到稿件撰写及审稿的全程支持。通过录音智记和以稿写稿等功能,满足事务性工作的高频需求,帮助撰稿人节省精力,提高效率,优化工作与生活。

Project Cover

阿里绘蛙

绘蛙是阿里巴巴集团推出的革命性AI电商营销平台。利用尖端人工智能技术,为商家提供一键生成商品图和营销文案的服务,显著提升内容创作效率和营销效果。适用于淘宝、天猫等电商平台,让商品第一时间被种草。

Project Cover

Trae

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

Project Cover

AIWritePaper论文写作

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI·鲁ICP备2024100362号-6·鲁公网安备37021002001498号