🖼️ Godot Image Sharing Network

Godot Engine ile geliştirilmiş gerçek zamanlı resim paylaşım uygulaması. Kullanıcılar oturum başlatabilir veya katılabilir ve PNG/JPG resimlerini anında paylaşabilir.

September 28, 2025 · 4 min · Emrullah Enis Çetinkaya

🌐 Godot Multiplayer Chat System

🌐 Godot Multiplayer Chat System A simple but powerful real-time chat application built with Godot Engine using ENetMultiplayerPeer for network communication. 🚀 Features Host & Join: Create or join multiplayer sessions Real-time Messaging: Send messages instantly across all connected clients User Management: Automatic user detection and connection handling Simple UI: Clean and intuitive user interface Cross-platform: Works on all platforms supported by Godot 📋 Requirements Godot Engine 4.x Basic understanding of GDScript Network connection for multiplayer functionality 🎮 How to Use For Server (Host): Click the Host button to create a server on port 1300 Wait for players to connect Start chatting! For Client (Join): Click the Join button to connect to localhost:1300 Wait for connection confirmation Start chatting with other players! Sending Messages: Type your message in the text field Click the Message button or press Enter Your message will be broadcast to all connected players 🔧 Code Structure Main Functions: _on_host_button_pressed() - Creates and starts a multiplayer server _on_join_button_pressed() - Connects to an existing server _on_message_button_pressed() - Sends messages to all connected peers add_user(id) - Handles new user connections send_message(text, sender_name) - RPC function for message broadcasting server_opened() - Sets up user identification after connection Key Variables: peer - ENetMultiplayerPeer instance for network communication message - String variable for message storage my_name - Exported string for player identification 🛠️ Setup Instructions Create a new Godot project Add a Node2D as your main scene Add the required UI elements: Host button Join button Message button MessageText (TextEdit/LineEdit) MessageLabel (Label) Attach this script to your Node2D Connect the button signals to their respective functions Set the my_name variable in the inspector (optional) 🌐 Network Configuration Default Port: 1300 Default Address: localhost (127.0.0.1) Protocol: ENet (UDP-based) Max Connections: Unlimited (ENet default) 🔮 Future Enhancements Custom server IP input User list display Message history Private messaging Chat rooms/channels User authentication Message timestamps Emoji support 🐛 Troubleshooting Connection Issues: ...

September 28, 2025 · 4 min · Emrullah Enis Çetinkaya