Skip to content

Latest commit

 

History

110 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code naming

_on for signal receivers which require connect

Collision layers

  1. World
  2. Player
  3. Enemy
  4. Interactions
Collision layer ← Collision mask (looks for, interacts with)
1 Main [Bullets] [Entities]
2 Player EBullet PHurtbox
3 Enemy PBullet EHurtbox
4

mask: What it collides with layer: What it is on

Weapon system

The script database_weapon.gd includes:

get_weapon(id: int) -> WeaponType reads the weapon database (json), initiates a WeaponType class and returns it.

Can create enemy system in similar fashion.

Bullet system

Bullet particle must be set to processing mode always.

Bullets detect hit with enemies and boxes by hurtbox, instead of by collision, which would cause the bullets to be removed before hitting the target.

About

Little game I make for fun

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages