Skip to content

Commit

Permalink
Add the game
Browse files Browse the repository at this point in the history
  • Loading branch information
kurushimee committed Oct 24, 2024
1 parent d18cfb2 commit 6a9c991
Show file tree
Hide file tree
Showing 31 changed files with 790 additions and 4 deletions.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Joshua Najera

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
VIM bindings for Godot 4

recently improved thanks to wenqiangwang
If you would like ctrl+F to be move-forward by page then uncomment the following line

#"Ctrl+F": 1, ## Uncomment if you want Ctrl+F for move forward by page

### Supported Mode

- Normal mode
- Insert mode
- Visual mode
- Visual line mode

### Supported motions

h, l, j, k, +, -
^, 0, $, |
H, L, M,
c-f, c-b, c-d, c-u,
G, gg
w, W, e, E, b, ge
%, f, F, t, T, ;
*, #, /, n, N
aw, a(, a{, a[, a", a'
iw, i(, i{, i[, i", i'

### Supported operator

c, C,
d, D, x, X,
y, Y,
u, U, ~

### Supported actions

p,
u, c-r,
c-o, c-i,
za, zM, zR,
q, @, .,
>, <
m, '

### Override Default Godot Shortcuts with `godot-vim`'s ones

Note that all non-ascii character mappings that are already mapped in the default Godot editor have to be unmapped from the Editor settings (Editor >> Editor Settings >> Shorcuts) before being usable with `godot-vim`.

This currently goes for:

- `Ctrl+R`
- `Ctrl+U`
- `Ctrl+D`

See the full list of non-ascii shortucts that may already be mapped by Godot and thus wouldn't work in `godot-vim` before releasing them in Godot settings: https://github.com/joshnajera/godot-vim/blob/main/addons/godot-vim/godot-vim.gd#L135
Binary file added audio/boss-hurt.wav
Binary file not shown.
24 changes: 24 additions & 0 deletions audio/boss-hurt.wav.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[remap]

importer="wav"
type="AudioStreamWAV"
uid="uid://5yk43iy3ls26"
path="res://.godot/imported/boss-hurt.wav-b161ede98e80e7e9214d1b1b34a42a16.sample"

[deps]

source_file="res://audio/boss-hurt.wav"
dest_files=["res://.godot/imported/boss-hurt.wav-b161ede98e80e7e9214d1b1b34a42a16.sample"]

[params]

force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0
Binary file added audio/explosion.wav
Binary file not shown.
24 changes: 24 additions & 0 deletions audio/explosion.wav.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[remap]

importer="wav"
type="AudioStreamWAV"
uid="uid://cmmg351rq2k2i"
path="res://.godot/imported/explosion.wav-0707ec12f62a9d18c58097af49e20ddc.sample"

[deps]

source_file="res://audio/explosion.wav"
dest_files=["res://.godot/imported/explosion.wav-0707ec12f62a9d18c58097af49e20ddc.sample"]

[params]

force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0
Binary file added audio/minion-spawn.wav
Binary file not shown.
24 changes: 24 additions & 0 deletions audio/minion-spawn.wav.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[remap]

importer="wav"
type="AudioStreamWAV"
uid="uid://c0laedygfjn05"
path="res://.godot/imported/minion-spawn.wav-4d50342d40104fab130512acc1cac25a.sample"

[deps]

source_file="res://audio/minion-spawn.wav"
dest_files=["res://.godot/imported/minion-spawn.wav-4d50342d40104fab130512acc1cac25a.sample"]

[params]

force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0
Binary file added fonts/joystix monospace.otf
Binary file not shown.
34 changes: 34 additions & 0 deletions fonts/joystix monospace.otf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://vh3d3y8hofh4"
path="res://.godot/imported/joystix monospace.otf-3c027bca56188fe16f397fac0c35c6a6.fontdata"

[deps]

source_file="res://fonts/joystix monospace.otf"
dest_files=["res://.godot/imported/joystix monospace.otf-3c027bca56188fe16f397fac0c35c6a6.fontdata"]

[params]

Rendering=null
antialiasing=0
generate_mipmaps=false
disable_embedded_bitmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=0
subpixel_positioning=0
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=false
preload=[]
language_support={}
script_support={}
opentype_features={}
2 changes: 1 addition & 1 deletion icon.svg.import
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

importer="texture"
type="CompressedTexture2D"
uid="uid://05mxso4gj04c"
uid="uid://cn1y00qmft1rw"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false
Expand Down
32 changes: 29 additions & 3 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,37 @@ config_version=5

[application]

config/name="little-creatures"
config/name="Core Overload"
run/main_scene="res://scenes/main.tscn"
config/features=PackedStringArray("4.3", "GL Compatibility")
boot_splash/bg_color=Color(0.121569, 0.0627451, 0.164706, 1)
boot_splash/show_image=false
config/icon="res://icon.svg"

[display]

window/stretch/mode="viewport"

[gui]

theme/default_font_subpixel_positioning=0
theme/lcd_subpixel_layout=0

[importer_defaults]

font_data_dynamic={
"antialiasing": 0,
"compress": false,
"disable_embedded_bitmaps": false,
"hinting": 0,
"subpixel_positioning": 0
}
font_data_bmfont={
"compress": false
}

[rendering]

renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
textures/canvas_textures/default_texture_filter=0
textures/canvas_textures/default_texture_repeat=1
viewport/hdr_2d=true
28 changes: 28 additions & 0 deletions scenes/bosF4E.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[gd_scene load_steps=6 format=3 uid="uid://0pbadw0cnk6x"]

[ext_resource type="Script" path="res://scripts/boss.gd" id="1_0xd3g"]
[ext_resource type="Texture2D" uid="uid://bygki3e2huv2d" path="res://sprites/boss-template.png" id="2_xkk48"]
[ext_resource type="Script" path="res://scripts/health.gd" id="3_eawki"]
[ext_resource type="AudioStream" uid="uid://5yk43iy3ls26" path="res://audio/boss-hurt.wav" id="4_7s05h"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_37w7o"]
size = Vector2(32, 32)

[node name="Boss" type="Area2D"]
collision_mask = 2
script = ExtResource("1_0xd3g")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_xkk48")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_37w7o")

[node name="Health" type="Node" parent="."]
script = ExtResource("3_eawki")
max = 1000.0

[node name="HurtSound" type="AudioStreamPlayer" parent="Health"]
stream = ExtResource("4_7s05h")
volume_db = -5.0
max_polyphony = 5
28 changes: 28 additions & 0 deletions scenes/boss.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[gd_scene load_steps=6 format=3 uid="uid://0pbadw0cnk6x"]

[ext_resource type="Script" path="res://scripts/boss.gd" id="1_0xd3g"]
[ext_resource type="Texture2D" uid="uid://bygki3e2huv2d" path="res://sprites/boss-template.png" id="2_xkk48"]
[ext_resource type="Script" path="res://scripts/health.gd" id="3_eawki"]
[ext_resource type="AudioStream" uid="uid://5yk43iy3ls26" path="res://audio/boss-hurt.wav" id="4_7s05h"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_37w7o"]
size = Vector2(160, 160)

[node name="Boss" type="Area2D"]
collision_mask = 2
script = ExtResource("1_0xd3g")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_xkk48")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_37w7o")

[node name="Health" type="Node" parent="."]
script = ExtResource("3_eawki")
max = 1000.0

[node name="HurtSound" type="AudioStreamPlayer" parent="Health"]
stream = ExtResource("4_7s05h")
volume_db = -5.0
max_polyphony = 5
53 changes: 53 additions & 0 deletions scenes/explosion_effect.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[gd_scene load_steps=8 format=3 uid="uid://dquphjws4q3dq"]

[ext_resource type="AudioStream" uid="uid://cmmg351rq2k2i" path="res://audio/explosion.wav" id="1_e1mgd"]

[sub_resource type="Gradient" id="Gradient_qge6v"]
offsets = PackedFloat32Array(0.50655, 1)
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)

[sub_resource type="GradientTexture1D" id="GradientTexture1D_gchfc"]
gradient = SubResource("Gradient_qge6v")

[sub_resource type="Curve" id="Curve_0kggx"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2

[sub_resource type="CurveTexture" id="CurveTexture_b5gm5"]
width = 2048
curve = SubResource("Curve_0kggx")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_htnqb"]
lifetime_randomness = 0.5
particle_flag_disable_z = true
spread = 180.0
initial_velocity_min = 250.0
initial_velocity_max = 500.0
gravity = Vector3(0, 0, 0)
scale_min = 4.0
scale_max = 4.0
scale_curve = SubResource("CurveTexture_b5gm5")
color = Color(0.988235, 0.937255, 0.552941, 1)
color_ramp = SubResource("GradientTexture1D_gchfc")

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_d1ch8"]
random_pitch = 1.1
random_volume_offset_db = 2.0
streams_count = 1
stream_0/stream = ExtResource("1_e1mgd")

[node name="ExplosionEffect" type="GPUParticles2D"]
modulate = Color(5, 5, 5, 1)
scale = Vector2(0.5, 0.5)
emitting = false
amount = 50
process_material = SubResource("ParticleProcessMaterial_htnqb")
one_shot = true
explosiveness = 1.0

[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = SubResource("AudioStreamRandomizer_d1ch8")
volume_db = -10.0
autoplay = true

[connection signal="finished" from="." to="." method="queue_free"]
Loading

0 comments on commit 6a9c991

Please sign in to comment.