Skip to content

Commit 76eca5d

Browse files
committed
Improve README
1 parent 216b2b3 commit 76eca5d

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
# godot-block-coding-demos
1+
# Demos for Godot Block Coding plugin
2+
3+
These are demos for the [Godot Block Coding
4+
Plugin](https://github.com/endlessm/godot-block-coding). Intended to
5+
show the potential and find limitations on the plugin, in order to
6+
instruct its development.

game-05/README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Spaceship demo
2+
3+
## About
4+
5+
This is a top-down game featuring the "move like a spaceship" block in
6+
the SimpleCharacter node. It is a more complete game based on the
7+
knowledge gained in the previous demos.
8+
9+
## Implementation
10+
11+
The inventory was done with boolean variables in the block
12+
coding. There are "has_blue_key" and a "has_blaster" in the block
13+
canvas for the ship.
14+
15+
A couple mechanics have been implemented with basic collision
16+
detection of Area2D "on body entered/exited". For instance:
17+
- Camera zoom in and out when the player ship enter/leaves a specific
18+
zone.
19+
- Open door when the player ship gets near the door and has a key.
20+
- Change a flag like "has_blue_key" when the player ship grabs the
21+
blue key. Play an animation in that case too.
22+
- Present messages on screen.
23+
24+
I was able to push the asteroids with the blasters by adding
25+
AnimatableBody2D nodes to them and then animating them.
26+
27+
Aesthetics: Sprites with CanvasTextures (diffuse and normal map) are
28+
used to give a 3D look, while still being 2D. Adding PointLight2D and
29+
LightOccluder2D nodes complete the effect. Also a CanvasModulate node
30+
is used in the main scene to darken the level.
31+
32+
## Limitations found
33+
34+
There is no current way of spawning objects. That's why the blasters
35+
are implemented as an animation and they are fixed to the player
36+
ship. Rotating the ship rotates the blasters which is not what I
37+
wanted.
38+
39+
I wanted asteroids to have health and destroy with an animation, but
40+
the only option today is to use the "queue free" block on them. We
41+
need to fix the "call method in node" block to reference a node in a
42+
instantiated scene like this.

0 commit comments

Comments
 (0)