Skip to content
Snippets Groups Projects
Commit c0103083 authored by Canopteks's avatar Canopteks
Browse files

stable merge, everything is now extra squicky clean

parent 1d3df7f0
Branches
Tags
No related merge requests found
...@@ -62,10 +62,10 @@ func _playerDisconnected(id): ...@@ -62,10 +62,10 @@ func _playerDisconnected(id):
func startGame(): func startGame():
# Instancing the map and adding it to the scene tree # Instancing the map and adding it to the scene tree
var game = preload("res://scenes/levels/game/game.tscn").instance() var game = preload("res://levels/test/game.tscn").instance()
get_tree().get_root().add_child(game) get_tree().get_root().add_child(game)
var playerScene = preload("res://scenes/entities/player/player.tscn") var playerScene = preload("res://entities/characters/player.tscn")
var i = 1 var i = 1
for peer_id in players: for peer_id in players:
......
extends KinematicBody extends KinematicBody
# duh # Speed values
const MAX_SPEED:float = 8.0 const MAX_SPEED:float = 8.0
const MAX_SPRINT_SPEED:float = 12.0
var motion:float = 0
var isSprinting:bool = false
# duh 2 # Acceleration values
const ACCEL:float = 8.5 const ACCEL:float = 8.5
const SPRINT_ACCEL:float = 16.0 const SPRINT_ACCEL:float = 16.0
const DEACCEL:float = 16.0 const DEACCEL:float = 16.0
# duh 3: the vengeance # Jump and fall values
const MAX_SPRINT_SPEED:float = 12.0
var isSprinting:bool = false
# duh 4: the return of the vengeance 2
const JUMP_SPEED:float = 16.0 const JUMP_SPEED:float = 16.0
var isJumping:bool = false var isJumping:bool = false
# TODO: unreal, we may want to stick that to the physical value
# TODO: unreal, try to understand that, genius
const GRAVITY:float = -28.0 const GRAVITY:float = -28.0
# Velocity updated continuously by move_and_slide # Velocity updated continuously by move_and_slide
var vel:Vector3 = Vector3() var vel:Vector3 = Vector3()
# move_and_slide need that
const FLOOR_NORMAL:Vector3 = Vector3(0,1,0) const FLOOR_NORMAL:Vector3 = Vector3(0,1,0)
var motion:float = 0
# called by the engine # called by the engine
func _physics_process(delta): func _physics_process(delta):
......
[gd_scene load_steps=3 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://scenes/entities/player/player.gd" type="Script" id=1] [ext_resource path="res://entities/characters/player.gd" type="Script" id=1]
[sub_resource type="BoxShape" id=1] [sub_resource type="BoxShape" id=1]
extents = Vector3( 0.175, 0.275, 0.7 ) extents = Vector3( 0.175, 0.275, 0.7 )
......
server/icon.png

3.35 KiB

[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
File moved
[gd_scene load_steps=3 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://scenes/levels/game/game.gd" type="Script" id=1] [ext_resource path="res://levels/test/game.gd" type="Script" id=1]
[ext_resource path="res://scenes/entities/bloc/bloc.tscn" type="PackedScene" id=2] [ext_resource path="res://levels/test/bloc/bloc.tscn" type="PackedScene" id=2]
[node name="game" type="Spatial"] [node name="game" type="Spatial"]
script = ExtResource( 1 ) script = ExtResource( 1 )
......
...@@ -16,12 +16,12 @@ _global_script_class_icons={ ...@@ -16,12 +16,12 @@ _global_script_class_icons={
[application] [application]
config/name="server" config/name="server"
run/main_scene="res://scenes/levels/lobby/lobby.tscn" run/main_scene="res://levels/lobby/lobby.tscn"
config/icon="res://icon.png" config/icon="res://icon.png"
[autoload] [autoload]
gamestate="*res://scenes/autoloads/gamestate.gd" gamestate="*res://autoloads/gamestate.gd"
[rendering] [rendering]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment