Done with the samples, and can be released as first version!
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
{% block content %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/post.css') }}">
|
||||
<script src="{{ url_for('static', filename='script/image_viewer.js') }}"></script>
|
||||
<main class="main">
|
||||
<section class="intro">
|
||||
<h1>Game Development from Scratch: A Comprehensive Guide</h1>
|
||||
@ -62,7 +63,7 @@
|
||||
<pre><code class="language-gdscript">extends Node2D
|
||||
|
||||
func _ready():
|
||||
print("Hello, Godot!")</code></pre>
|
||||
print("Hello, Godot!")<button class="copy-btn" onclick="copyToClipboard(this)">Copy</button></code></pre>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@ -83,7 +84,7 @@ func _physics_process(delta):
|
||||
velocity.x += SPEED
|
||||
if Input.is_action_pressed("ui_left"):
|
||||
velocity.x -= SPEED
|
||||
velocity = move_and_slide(velocity)</code></pre>
|
||||
velocity = move_and_slide(velocity)<button class="copy-btn" onclick="copyToClipboard(this)">Copy</button></code></pre>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
Reference in New Issue
Block a user