Coder Social home page Coder Social logo

boyquotes / sample-godot-sub-viewport-and-input-events Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeroenheijmans/sample-godot-sub-viewport-and-input-events

0.0 0.0 0.0 2.13 MB

Shows Godot 4 having Pickable bodies inside a SubViewport, with InputEvents.

GDScript 100.00%

sample-godot-sub-viewport-and-input-events's Introduction

Sample for Godot SubViewport with Input Events

Demonstrates how you can have pickable bodies inside a SubViewport based world with Godot 4.x. Even if those components are created with instantiate().

Disclaimer: this was created while learning Godot programming. I'm a web developer by trade, not a game developer. Take this sample with a grain of salt.

About the sample

Running this sample allows you to:

  • See input_event at work for the Static Body's (those with the Godot icon sprite) by clicking them
  • Add fresh instances of that component through code by pushing the button, and see they're also connected
  • Drop some RigidBody2D balls on top of it all to ensure physics is working for the stuff inside the SubViewport

And that's about it!

Demo

Here's what things operate like when running:

demo-001.gif

sample-godot-sub-viewport-and-input-events's People

Contributors

jeroenheijmans avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.