diff --git a/posts.json b/posts.json
index e49460a..03978ae 100644
--- a/posts.json
+++ b/posts.json
@@ -8,11 +8,11 @@
"topics": ["Introduction", "Technology", "Personal"]
},
{
- "slug": "second-post-title",
- "title": "Another Exciting Post",
- "content": "This is the content of the second post. Here, I share some thoughts on a variety of topics.",
+ "slug": "platformer-game-developement-in-godot",
+ "title": "Platformer game in Godot 4",
+ "content": "The content of thi spost is generated, and its only purpose is to test the site.",
"date": "2025-01-13",
- "image_location": "images/post2.jpg",
+ "image_location": "images/posts/godot_wide_logo.png",
"topics": ["Technology", "Science"]
},
{
diff --git a/static/images/posts/export_game.png b/static/images/posts/export_game.png
new file mode 100644
index 0000000..cf02608
Binary files /dev/null and b/static/images/posts/export_game.png differ
diff --git a/static/images/posts/game_mechanics.png b/static/images/posts/game_mechanics.png
new file mode 100644
index 0000000..ecfa568
Binary files /dev/null and b/static/images/posts/game_mechanics.png differ
diff --git a/static/images/posts/godot_logo.png b/static/images/posts/godot_logo.png
new file mode 100644
index 0000000..5f02267
Binary files /dev/null and b/static/images/posts/godot_logo.png differ
diff --git a/static/images/posts/godot_wide_logo.png b/static/images/posts/godot_wide_logo.png
new file mode 100644
index 0000000..1397095
Binary files /dev/null and b/static/images/posts/godot_wide_logo.png differ
diff --git a/static/images/posts/player_character.png b/static/images/posts/player_character.png
new file mode 100644
index 0000000..98cb3f5
Binary files /dev/null and b/static/images/posts/player_character.png differ
diff --git a/templates/home/home.html b/templates/home/home.html
index f9d18eb..687c453 100644
--- a/templates/home/home.html
+++ b/templates/home/home.html
@@ -31,7 +31,7 @@
{{ post['title'] }}
{{ post['date'] }}
- {{ post['description'] }}
+ {{ post['content'] }}
{% for topic in post['topics'] %}
{{ topic }}
diff --git a/templates/posts/platformer-game-developement-in-godot.html b/templates/posts/platformer-game-developement-in-godot.html
new file mode 100644
index 0000000..eeb3330
--- /dev/null
+++ b/templates/posts/platformer-game-developement-in-godot.html
@@ -0,0 +1,262 @@
+{% extends "main.html" %}
+
+{% block content %}
+
+
+
+
+ Game Development from Scratch: A Comprehensive Guide
+
+ Welcome to the ultimate guide for game development! Whether you’re a beginner or an advanced developer, this page walks you through the entire process of creating a game from scratch using Godot 4. Explore every step, tool, and resource needed to bring your dream game to life.
+
+
+ Game development combines creativity, logic, and technical skills. With this guide, you’ll master the art of building games while enjoying the journey. Let’s get started!
+
+
+
+
+ Why Choose Godot 4?
+
+
 }})
+
+
+ - Open Source: Completely free to use with no royalties.
+ - Versatile: Supports 2D and 3D game development.
+ - Lightweight: Optimized for performance and fast workflows.
+ - Community-Driven: Backed by a passionate global community.
+
+
+
+
+
+
+ Step-by-Step Game Development Process
+
+
+
+
+
Step 1: Plan Your Game
+
+ Every successful game starts with a clear plan. Decide on the game type (e.g., platformer, puzzle, RPG), target audience, and key features. Sketch your ideas on paper or using a digital tool like Figma.
+
+
Tip: Focus on simple mechanics and expand once the core gameplay is solid.
+
+
+
+
+
+
+
Step 2: Install Godot 4
+
+ Download the latest version of Godot from the official website. Follow the installation instructions for your operating system. Once installed, familiarize yourself with the Godot interface using the official documentation.
+
+
+
+
+
+
+
+
Step 3: Create Your First Scene
+
+ A game in Godot consists of scenes. Start by creating a 2D or 3D scene for your game. Add a root node (e.g., Node2D
for 2D games) and organize child nodes for your player, environment, and UI.
+
+
extends Node2D
+
+func _ready():
+ print("Hello, Godot!")
+
+
+
+
+
+
+
Step 4: Design the Player Character
+
+ Use a KinematicBody2D
node for the player. Attach sprites, collision shapes, and a script to handle movement and animations. For example:
+
+
extends KinematicBody2D
+
+const SPEED = 200
+
+func _physics_process(delta):
+ var velocity = Vector2.ZERO
+ if Input.is_action_pressed("ui_right"):
+ velocity.x += SPEED
+ if Input.is_action_pressed("ui_left"):
+ velocity.x -= SPEED
+ velocity = move_and_slide(velocity)
+
+
+
+
+
+
+
Step 5: Build the Game Environment
+
+ Create levels using the TileMap
node. Import tile sets and arrange tiles to design platforms, obstacles, and backgrounds. Define collision shapes for each tile to ensure smooth gameplay.
+
+
Learn More
+
+
+
+
+
+
+
Step 6: Implement Gameplay Mechanics
+
+ Add features like jumping, collectibles, and enemies. Use Area2D
nodes for detection and signals for interactions. Enhance gameplay by integrating physics and animations.
+
+
+
+
+
+
+
+
Step 7: Test and Polish
+
+ Playtest your game to identify bugs and improve user experience. Add sound effects, music, and particle effects to make your game immersive. Tools like Audacity can help with audio editing.
+
+
Pro Tip: Keep a checklist of feedback and iterate until your game feels polished.
+
+
+
+
+
+
+
Step 8: Export and Share
+
+ Export your game for your target platform (Windows, macOS, Android, Web, etc.) using Godot’s export tools. Share it with friends, family, or the gaming community on platforms like Itch.io or Steam.
+
+
Tip: Create an engaging game page with screenshots, a trailer, and a detailed description to attract players.
+
+
+
+
+
+
+{% endblock %}