Water pistol test assets added
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import "luxe: world" for World, Entity, Transform, Sprite, Values, Tags, Camera, TransformLinkAction
|
||||
import "luxe: world/scene" for Scene
|
||||
import "luxe: world/prototype" for Prototype
|
||||
import "luxe: draw" for Draw, PathStyle
|
||||
import "luxe: input" for Input, Key, InputType, Scan
|
||||
import "luxe: assets" for Assets
|
||||
@ -31,6 +32,14 @@ class Game is Ready {
|
||||
_player = Entity.get_named(world, "Player")
|
||||
_fpscam = FirstPersonCamera.new(world, camera, "game")
|
||||
|
||||
var wpn: Entity = Prototype.create(world, Asset.prototype("prototype/wpn_waterpistol"))
|
||||
var socket = Entity.create(world)
|
||||
Transform.create(socket)
|
||||
Transform.link(socket, camera, TransformLinkAction.reset_local)
|
||||
Transform.set_pos(socket, 0.05, -0.2, -0.15)
|
||||
|
||||
Transform.link(wpn, socket, TransformLinkAction.reset_local)
|
||||
|
||||
Transform.set_pos_y(_player, 0.75)
|
||||
|
||||
Camera.set3D(camera, 85, width/height, 0.01, 500)
|
||||
|
||||
Reference in New Issue
Block a user