📄 kerosin.rb
字号:
## this is the init script of the Kerosin library## This script creates a BUNCH of variables. It basically sets up the# default settings for all engine namespaces/variables. It also serves# as the documentation for all the settings.##### Application## This section contains information about the application being executed.#createVariable('Application.Title', 'SimSpark');##### System## This section contains information about the environment the engine is# executed in, such as font paths.#createVariable('System.FontPath', 'fonts/');##### Viewport## The Viewport namespace is used to describe all the variables related# to the application window.#createVariable('Viewport.XRes', 800); # widthcreateVariable('Viewport.YRes', 600); # heightcreateVariable('Viewport.FullScreen', false); # run in fullscreen?createVariable('Viewport.DoubleBuffer', true); # use double buffering?# Set up bits per pixelcreateVariable('Viewport.RedBits', 5); # red bitscreateVariable('Viewport.GreenBits', 6); # green bitscreateVariable('Viewport.BlueBits', 5); # blue bitscreateVariable('Viewport.AlphaBits', 8); # alpha bits# stencil and depth bufferscreateVariable('Viewport.DepthBits', 16); # depth bitscreateVariable('Viewport.StencilBits', 0); # stencil bits# dpi for font renderingcreateVariable('Viewport.DpiHRes', 120); # horizontal resolution (72, 96, 120, 300)createVariable('Viewport.DpiVRes', 120); # vertical resolution (72, 96, 120, 300)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -