vanilla.js 0.4.0
API
base
- base/wait비동기 대기 함수 모음. (await 로 초나 프레임을 기다린다)Asynchronous wait functions. (await seconds or frames)
- base/math수학 함수 모음. (보간, 범위 제한, 반올림, 삼각 함수, 난수, 추종)Math functions. (interpolation, clamping, rounding, trigonometry, random numbers, following)
- base/reflection리플렉션 함수 모음. (값이 있는지, 꼴 검사, 클래스 상속 검사, 복제, 고유식별자)Reflection functions. (presence checks, type checks, class inheritance checks, cloning, unique identifiers)
- base/object기반 오브젝트.Base object.
- base/color색상.Color.
- base/colors색상 값.Color value.
- base/vector22차원 벡터.2D vector.
- base/vector33차원 벡터.3D vector.
- base/matrix44x4 변환 행렬. (열우선, WebGL uniformMatrix4fv 에 그대로 업로드 가능)4x4 transform matrix. (Column-major, can be uploaded as is with WebGL uniformMatrix4fv)
- base/transformmatrix2차원 어파인 변환 행렬. (Canvas2D 호환 3x2 형식)2D affine transform matrix. (3x2 form compatible with Canvas2D)
- base/quaternion쿼터니언. (3차원 회전, 골격 애니메이션 보간의 기본 단위)Quaternion. (3D rotation, the basic unit of skeletal animation interpolation)
- base/pivot피봇. (2D 좌표계를 기준으로 좌상(0,0) ~ 우하(1,1)을 기준으로 삼는다.)Pivot. (In the 2D coordinate system, uses top-left (0,0) ~ bottom-right (1,1) as the reference.)
- base/rect사각 영역.Rectangular area.
- base/obb회전된 바운딩 박스.Rotated bounding box.
- base/platform플랫폼 정보.Platform information.
- base/identifier식별자 생성기.Identifier generator.
- base/version버전 클래스.Version class.
- base/node계층 객체.Hierarchy object.
- base/collection/set셋 (중복 불허 집합).Set (a collection without duplicates).
- base/seededrandom시드 난수 생성기. (mulberry32)Seeded random number generator. (mulberry32)
- base/timer쿨다운.Cooldown.
- base/objectpool오브젝트 풀.Object pool.
- base/fsm유한 상태 기계.Finite state machine.
- base/format표기 유틸.Formatting utility.
core
- core/engine엔진.Engine.
- core/modaldialog모달 질문 창. (게임이 부르던 브라우저 window.alert, window.confirm, window.prompt 자리, 러스트 판 core/modaldialog.rs 와 같다)Modal dialog. (in place of the browser window.alert, window.confirm and window.prompt that games called, same as core/modaldialog.rs in the Rust edition)
- core/asset애셋.Asset.
- core/timemanager시간 매니저.Time manager.
- core/viewmanager뷰 매니저.View manager.
- core/inputmanager입력 매니저.Input manager.
- core/pointercursor마우스 커서.Mouse cursor.
- core/touchraycaster터치 레이캐스터.Touch raycaster.
- core/graphic그래픽.Graphics.
- core/graphic/colorspace색 공간. (게임마다 3D 빛 셈을 어느 공간에서 할지 고르는 칸, 유니티 Player Settings 의 Color Space 꼴)Color space. (The setting each game uses to choose the space for 3D lighting, in the form of Color Space in Unity's Player Settings)
- core/scene씬.Scene.
- core/node/componentnode계층적 컴포넌트 처리 객체.Hierarchical component processing object.
- core/node/transformnode계층적 TRS 객체.Hierarchical TRS object.
- core/node/worldnode계층적 영역 객체.Hierarchical area object.
- core/tween트윈.Tween.
- core/component컴포넌트.Component.
- core/frame이미지 영역.Image region.
- core/animation애니메이션 처리기.Animation handler.
- core/component/paint내용의 색상과 투명도를 결정하는 컴포넌트.Component that determines the color and opacity of the content.
- core/component/outline테만 그리는 컴포넌트. (둥근 네모 테 또는 동그라미 테)Component that draws only a border. (rounded rectangle border or circle border)
- core/component/softshade부드러운 그늘.Soft shade.
- core/component/shadowtext그림자를 깐 한 줄 글.Single-line text with a shadow.
- core/component/shadowimage그림자를 깐 그림.Image with a shadow.
- core/component/sprite스프라이트 출력자 컴포넌트.Sprite renderer component.
- core/component/text원시(plain) 텍스트 출력기 컴포넌트.Plain text renderer component.
- core/component/richtext마크업 색상 이름 → HEX 매핑. (Unity TMP 와 호환)Markup color name → HEX mapping. (compatible with Unity TMP)
- core/component/mask마스크 컴포넌트.Mask component.
- core/graphic/shaderprogram셰이더 프로그램.Shader program.
- core/graphic/shaderwarmer셰이더 미리 링크.Shader pre-linking.
- core/fullscreenpass풀스크린 패스. (화면 전체를 덮는 삼각형 1개 + 프래그먼트 셰이더)Fullscreen pass. (one triangle covering the whole screen + fragment shader)
- core/soundeffectpool효과음 풀.Sound effect pool.
- core/soundsystem소리. (배경음악과 효과음)Sound. (background music and sound effects)
- core/gamepadmanager입력 매니저.Input manager.
- core/audioplayer오디오 플레이어.Audio player.
- core/audiobus오디오 버스.Audio bus.
- core/inputactions입력 동작.Input actions.
- core/graphic/gpumemorytrackerGPU 메모리 셈.GPU memory tracking.
- core/graphic/textstringtexturecacheGraphic 없이 글 재기. (measureTextMetrics 와 같다, 러스트 판 measure_text_without_graphic 과 같은 이름. 문서가 없으면 null)Measures text without a Graphic. (same as measureTextMetrics, same name as measure_text_without_graphic in the Rust version. null if there is no document)
- core/audiomanager오디오 매니저.Audio manager.
ui
- ui/touchrecognizer드래그로 전환되었다고 판정할 거리(px).Distance (px) at which it is judged to have switched to a drag.
- ui/uinodeUIKit 의 UIView.noIntrinsicMetric 와 같은 의미의 sentinel 값.A sentinel value with the same meaning as UIKit's UIView.noIntrinsicMetric.
- ui/uisceneUI 씬.UI scene.
- ui/uiview뷰 컴포넌트.View component.
- ui/uiimageviewUI 이미지 뷰.UI image view.
- ui/uilabelUI 라벨.UI label.
- ui/uicontrolUI 컨트롤.UI control.
- ui/uibutton버튼.Button.
- ui/uitogglebutton토글 버튼 컴포넌트.Toggle button component.
- ui/uiscrollview스크롤바 기본 두께 / 마진 (UIKit indicator 스타일).Default scrollbar thickness / margin (UIKit indicator style).
- ui/uiprogressview진행률 표시.Progress display.
- ui/uiprogressring진행 고리.Progress ring.
- ui/uihitarea누르는 자리 넓히기.Expands the press area.
- ui/buttonmotion단추 반응. (올리면 커지고, 누르는 동안 줄고, 떼면 통 튀고, 누를 수 없으면 흔들림, 창 안은 커지지 않음, 8.1 절)Button motion. (Grows on hover, shrinks while pressed, bounces on release, shakes when not pressable, does not grow inside windows, section 8.1)
- ui/uiscrollbar스크롤바.Scroll bar.
- ui/uiinputfield입력 필드 (캔버스 기반).Input field (canvas based).
- ui/autolayout/layoutstrength레이아웃 제약 강도.Layout constraint strength.
- ui/autolayout/layoutpriority레이아웃 우선순위. (UIKit 의 UILayoutPriority 와 같은 사상)Layout priority. (Same concept as UIKit's UILayoutPriority)
- ui/autolayout/layoutconstraintaxis레이아웃 제약 축. (UIKit 의 NSLayoutConstraint.Axis 와 같은 사상)Layout constraint axis. (Same concept as UIKit's NSLayoutConstraint.Axis)
- ui/autolayout/layoutvariable레이아웃 솔버 미지수.Layout solver unknown.
- ui/autolayout/layoutterm식의 한 항. coefficient * variable.A term of an expression. coefficient * variable.
- ui/autolayout/layoutexpression선형 식. terms[] + constant 형태.Linear expression. In the form terms[] + constant.
- ui/autolayout/layoutrelation제약 관계 연산자.Constraint relation operator.
- ui/autolayout/layoutconstraint레이아웃 제약.Layout constraint.
- ui/autolayout/layoutsolverKiwi dual simplex 기반 제약 솔버.Constraint solver based on Kiwi dual simplex.
- ui/uislider슬라이더 컨트롤.Slider control.
- ui/uidocumentUI 문서. (WorldNode 트리 ↔ JSON 상호 변환)UI document. (WorldNode tree ↔ JSON conversion)
- ui/uisnapscrollview스냅 스크롤뷰 컴포넌트.Snap scroll view component.
- ui/popupmotion팝업 등장 / 퇴장 전환기.Popup open / close transitioner.
- ui/uilistview재활용 리스트 뷰.Recycling list view.
- ui/uichart라인 차트.Line chart.
- ui/uidropdown드롭다운. (콤보박스)Dropdown. (combo box)
- ui/uicontextmenu컨텍스트 메뉴. (우클릭 / 길게 누름 메뉴)Context menu. (right-click / long-press menu)
- ui/uidraggable드래그 가능 컴포넌트.Draggable component.
- ui/uispinner회전 로딩 인디케이터.Spinning loading indicator.
- ui/uitoast토스트.Toast.
- ui/toastmotion알림이 나오고 사라지는 모습. (토스트 노드에 붙이는 컴포넌트, UIToast 는 줄 세운 알약 알림을 스스로 만들고 이것은 게임이 만든 알림 노드를 움직인다)How a notification appears and disappears. (a component attached to a toast node, UIToast builds queued pill notifications itself, while this moves a notification node made by the game)
- ui/uidialog확인 대화 상자.Confirmation dialog.
- ui/uiscaleUI 배율.UI scale.
- ui/uiwindow창 쌓기의 창 하나. (UIWindowLayer 가 띄우고 치운다)A single window in the window stack. (UIWindowLayer opens and removes it)
- ui/uiwindowlayer창 층. (영역 위에 UIWindow 를 쌓는다)Window layer. (stacks UIWindow over the area)
- ui/uiconfirmwindow확인 창. (제목, 묻는 글, 취소와 확인 두 단추)Confirm window. (title, question text, two buttons: cancel and confirm)
game
- game/gamescene게임 공통 베이스 씬.Common base scene for games.
resource
- resource/animationclip애니메이션 클립.Animation clip.
- resource/audioasset오디오 애셋.Audio asset.
- resource/blobasset블롭 애셋. (바이너리)Blob asset. (binary)
- resource/fontasset폰트 애셋.Font asset.
- resource/imageasset이미지 애셋.Image asset.
- resource/jsonassetJSON 데이터 애셋.JSON data asset.
- resource/textasset텍스트 애셋.Text asset.
- resource/visualasset비주얼 애셋. (비주얼 에디터가 저장한 문서 파일을 읽어 Visual 을 만든다)Visual asset. (Reads a document file saved by the visual editor and makes a Visual)
- resource/bunchasset묶음 애셋.Bundle asset.
- resource/assetloader애셋 함께 받기.Loads assets together.
- resource/spriteatlas찾을 아틀라스 목록. (SpriteAtlas.findFrame 이 앞에서부터 찾는다)List of atlases to search. (SpriteAtlas.findFrame searches from the front)
misc
- misc/imagescroller이미지 스크롤러.Image scroller.
- misc/toucheffect파티클용 방사형 그라디언트 텍스처. (흰색으로 구워 셰이더 틴트로 착색)Radial gradient texture for particles. (Baked in white and colored by the shader tint)
- misc/virtualpad가상 패드 상태.Virtual pad state.
- misc/nodelayout노드 레이아웃.Node layout.
- misc/visual비주얼 객체. (비주얼 에디터 문서를 정한 자리에 노드 트리로 짓는 컴포넌트)Visual object. (A component that builds a visual editor document into a node tree at a set location)
- misc/localstorage로컬 스토리지.Local storage.
- misc/persistedstore지속 저장소.Persistent store.
- misc/localization로컬라이제이션.Localization.
- misc/pathfinder그리드 길찾기. (A*)Grid pathfinding. (A*)
- misc/grid그리드 유틸.Grid utility.
- misc/collision2d2D 충돌 유틸.2D collision utility.
- misc/steering2d2D 조향 유틸.2D steering utility.
- misc/pointergesture포인터 제스처 인식기. (헤드리스)Pointer gesture recognizer. (headless)
- misc/frameprobe처지는 기기 가리기. (처음 몇 초의 프레임 간격을 재어, 무거운 효과를 끄는 가벼운 길을 저절로 켤 때 쓴다)Detects slow devices. (measures frame intervals for the first few seconds, used to automatically turn on a lightweight path that disables heavy effects)
- misc/cameragestures카메라 손짓. (3D 판이나 지도를 돌리고 밀고 키우는 손짓, 마우스 오른쪽과 가운데 단추 끌기, 두 손가락)Camera gestures. (gestures that rotate, pan and zoom a 3D board or map, mouse right and middle button drag, two fingers)
- misc/languagepack언어 묶음. (자산의 표로 두는 화면 글자의 언어, LanguagePack 으로 들여온다)Language pack. (screen text languages kept as asset tables, imported as LanguagePack)
- misc/uifontUI 글꼴. (화면 위의 모든 글자, 여러 문자의 글꼴 조각을 한 이름 아래 묶음, UIFont 로 들여온다)UI font. (all on-screen text, groups font subsets for many scripts under one name, imported as UIFont)
- misc/focusnavigator방향 포커스 내비게이터.Directional focus navigator.
- misc/shaker흔들림 발생기. (화면 / 노드 공용)Shake generator. (shared by screen / node)
- misc/camera2d2D 카메라.2D camera.
- misc/typewriter타자기 연출 러너.Typewriter effect runner.
- misc/dialogue대사 진행기.Dialogue runner.
- misc/spriteanimator스프라이트 애니메이터 컴포넌트.Sprite animator component.
- misc/platformerbody플랫포머 물리 컴포넌트.Platformer physics component.
- misc/floatingtext떠오르는 텍스트 관리 노드. (데미지 숫자 / +코인 등)Floating text manager node. (damage numbers / +coins, etc.)
- misc/beepplayer절차적 비프 재생기.Procedural beep player.
- misc/graphicsqualitygovernor그래픽 품질 정하기. (설정과 프레임 재기로 가벼운 길을 쓸지 정하고, 렌더 배율 상한을 고른다)Decides graphics quality. (Decides whether to use the lite path from the setting and frame measurement, and picks the render pixel ratio cap)
- misc/fixedstepper고정 걸음.Fixed step.
- misc/loadingprogress로딩 진행률.Loading progress.
- misc/buildinfo빌드 정보.Build info.
- misc/indicator인디케이터 클래스.Indicator class.
- misc/dynamicfont다이나믹 폰트.Dynamic font.
- misc/devtools고정 레이아웃 상수.Fixed layout constants.
animation
- animation/animator애니메이터. (상태 기계로 스프라이트 클립을 고르고 섞는다)Animator. (Picks and blends sprite clips with a state machine)
- animation/action액션.Action.
- animation/timeline타임라인.Timeline.
graphics3d
- graphics3d/rendertarget렌더 타겟. (오프스크린 프레임버퍼 + 컬러 텍스처 [+ 깊이 렌더버퍼 / 깊이 텍스처])Render target. (offscreen framebuffer + color texture [+ depth renderbuffer / depth texture])
- graphics3d/bloomeffect블룸 이펙트. (밝은 영역 추출 → 하프 해상도 가우시안 블러 핑퐁)Bloom effect. (bright area extraction → half resolution Gaussian blur ping-pong)
- graphics3d/skinnedmodel스킨드 모델. (모델 인스턴스, 메시/본/스킨/머티리얼/애니메이션 데이터 + 포즈 상태)Skinned model. (model instance, mesh/bone/skin/material/animation data + pose state)
- graphics3d/skinnedmodelasset스킨드 모델 자산. (같은 파일에서 지은 모델 인스턴스들이 나눠 쓰는 풀린 자료와 GPU 자원)Skinned model asset. (decoded data and GPU resources shared by the model instances built from the same file)
- graphics3d/skinnedmodelrenderer스킨드 모델 렌더러. (스키닝 PBR 셰이더 템플릿 + 환경 상태 소유, 씬당 하나)Skinned model renderer. (owns the skinning PBR shader template + environment state, one per scene)
- graphics3d/jointblock뼈 행렬 유니폼 블록. (버텍스 셰이더의 jointMatrices 를 기본 블록 유니폼이 아닌 유니폼 블록으로 넘긴다)Joint matrix uniform block. (passes the vertex shader's jointMatrices through a uniform block instead of a default block uniform)
- graphics3d/toon/meshbuilder3D 모형 짓기. (기본 도형을 코드로 지어 꼭짓점 배열 하나에 담음)Building 3D models. (Builds basic shapes in code and puts them into one vertex array)
- graphics3d/toon/glbmeshreader점토 모형(GLB) 읽기와 뼈대 자세. (툰 3D 의 MeshBuilder 꼭짓점 배열로, 외계행성 광부 키우기에서 왔다)Reading clay models (GLB) and skeleton poses. (Into toon 3D MeshBuilder vertex arrays, came from webgame-rimminer)
- graphics3d/toon/toonrenderer툰 렌더러. (MeshBuilder 와 readGlbArrays 의 배열을 한 색 재질과 바깥선으로 그린다)Toon renderer. (draws MeshBuilder and readGlbArrays arrays with single-color material and outline)
- graphics3d/toon/toonpostprocess툰 HDR 마무리. (실수 렌더 타겟에 그린 선형 색을 블룸, 노출, 톤매핑, 감마로 화면에 낸다)Toon HDR finishing. (outputs linear color drawn to a float render target to the screen with bloom, exposure, tone mapping and gamma)
- graphics3d/humanskinrenderer인체 피부 렌더러. (SkinnedModelRenderer 의 스키닝/모프 버텍스 경로 위에 피부 / 눈 / 머리카락 셰이딩 템플릿을 세운다)Human skin renderer. (builds skin / eye / hair shading templates on top of the SkinnedModelRenderer skinning/morph vertex path)
- graphics3d/ambientocclusioneffect화면 공간 앰비언트 오클루전. (깊이 + 노멀 버퍼 → 반구 표본 차폐 → 깊이 인식 블러)Screen-space ambient occlusion. (depth + normal buffer → hemisphere sample occlusion → depth-aware blur)
- graphics3d/subsurfacescatteringeffect화면 공간 서브서피스 스캐터링. (분리형, 확산 조도 버퍼를 깊이 인식 가로/세로 블러)Screen-space subsurface scattering. (separable, depth-aware horizontal/vertical blur of the diffuse irradiance buffer)
- graphics3d/material머티리얼. (셰이더 템플릿 참조 + metallic-roughness PBR 파라미터/텍스처, 포맷 중립)Material. (shader template reference + metallic-roughness PBR parameters/textures, format-neutral)
- graphics3d/shadowmap섀도우 맵. (방향광 실시간 그림자, 깊이 텍스처 + 직교 광원 행렬)Shadow map. (directional light real-time shadows, depth texture + orthographic light matrix)
- graphics3d/camera3d3D 카메라. (원근이나 직교 투영과 보는 자리를 들고, 보기와 투영 행렬을 바뀔 때만 다시 셈한다)3D camera. (holds a perspective or orthographic projection and the viewpoint, recomputes the view and projection matrices only when they change)
- graphics3d/camerashake3D 카메라 흔들림. (유니티 Cinemachine Impulse, 언리얼 Camera Shake 꼴의 엔진 흔들림)3D camera shake. (an engine shake in the form of Unity Cinemachine Impulse and Unreal Camera Shake)
- graphics3d/toon/toondrawqueue툰 그리기 줄. (한 프레임에 그릴 모형을 담아 두었다가 ToonRenderer 로 차례를 맞춰 그린다)Toon draw queue. (holds the models to draw in a frame, then draws them in order with ToonRenderer)
- graphics3d/toon/toonview3d툰 3D 를 노드 사각형 안에 그리는 컴포넌트. (2D 노드 트리 사이에 3D 패스를 끼운다)Component that draws toon 3D inside the node rectangle. (Inserts a 3D pass between the 2D node tree)
- graphics3d/toon/toonscreenoutline툰 화면 공간 바깥선. (노멀, 선 번호, 깊이를 선의 판에 그리고, 바로 이웃 사이의 경계에서 선을 잡아 가는 선은 둘레 칸을 바로 보고, 굵은 선은 점프 플러딩으로 넓힌 뒤 거리로 덮는 몫을 셈해 섞는다)Toon screen-space outline. (Draws normals, line IDs and depth into the line target, picks lines at the boundaries between direct neighbors, looks at the surrounding cells directly for thin lines and widens thick lines with jump flooding, then computes coverage from distance and blends)
- graphics3d/toon/toonvfx툰 3D GPU 효과의 바탕. (외계행성 광부 키우기와 애버런트가 따로 쓰던 판 안 효과의 범용 부분)Base of toon 3D GPU effects. (The general-purpose part of the in-board effects that webgame-rimminer and aberrant each used separately)
- graphics3d/multilevelbloomeffect다단 블룸 이펙트. (밝은 몫을 반 크기로 뽑아 반씩 줄여 가며 흐리고, 거꾸로 두 배씩 키우며 위 단에 더한다)Multi-level bloom effect. (extracts the bright part at half size, blurs it while halving the size, then adds it back to the level above while doubling the size)
- graphics3d/toon/toonlightset툰 빛 묶음. (ToonRenderer 가 몸을 칠할 빛과 툰 빛 반응을 한 덩어리로 든다)Toon light set. (Holds as one bundle the lights ToonRenderer uses to shade bodies and the toon light response)
- graphics3d/toon/toonmaterial툰 머티리얼. (ToonRenderer 의 몸 셰이더에 끼울 셰이더 조각, 게임마다의 확장 자리)Toon material. (shader chunks inserted into ToonRenderer's body shader, the per-game extension point)
effect
- effect/particlesystem파티클 시스템.Particle system.
- effect/trailrenderer트레일 렌더러.Trail renderer.
- effect/shadersprite셰이더 스프라이트 컴포넌트.Shader sprite component.
- effect/screeneffect화면 효과. (씬 후처리 사슬)Screen effect. (scene post-processing chain)
- effect/heathazeeffect아지랑이 효과 컴포넌트.Heat haze effect component.
web
- web/pane화면 분할 패널(Pane) 클래스.Split panel (Pane) class.
- web/websocketclient웹소켓 통신 처리기.WebSocket communication handler.