gamescript

0

Описание

Языки

  • C++56,8%
  • C42,1%
  • Python0,6%
  • Objective-C0,2%
  • CMake0,1%
  • Остальные0,2%
README.md

Game Script

game_script_screenshot

Download for Windows, Linux and Android: procedural.itch.io/gamescript

ms-windows-store://pdp/?productid=9PB1GW72NV4W

Join the official Game Script Discord server for news, updates, code examples and more! https://discord.gg/D7pKPw4kFf

Alternative news channel: https://t.me/gamescriptnews

Game Script is about raising the standards of what it's like to write code fast: you must be able to just double click on the program and start typing code immediately, you must be able to run the code with a single key press, and you must be able to enter the game mode, in which you can fly around in 3D space freely, like in a video game, to see your commands reliably occupy the virtual world.

Install

  • On Windows, make sure you have Microsoft Visual C++ Redistributable package installed. Game Script DirectX 11 Version also needs Graphics Tools installed.
  • Download and extract GameScript folder, double click on the
    game_script.exe
    file on Windows 7 (64-bit) or higher.
  • Download and extract GameScript folder, run the
    game_script.sh
    file on Ubuntu 16.04 (64-bit) or higher.

Minimum requirements for Game Script for Android:

  • Android 7, armeabi-v7a, OpenGL ES 3.0, 1920x1080 display resolution.

🐞 Report a bug or an issue here

Hotkeys

  • F1
    : run system script (prints help by default if you press F1 again).
  • F2
    : toggle run output text window.
  • F3
    : toggle between script and game mode.
  • F5
    : rerun the script.
  • F7
    : pause running the script.
  • F9
    : continue running the script.
  • F11
    : toggle fullscreen mode.
  • F12
    : toggle Dear ImGui demo window.
  • Ctrl
    +
    Tab
    : switch between windows in script mode.
  • Alt
    +
    Ctrl
    , arrow keys: move between UI elements with keyboard in script mode.
  • W
    : fly forward in game mode.
  • S
    : fly back in game mode.
  • A
    : fly left in game mode.
  • D
    : fly right in game mode.
  • E
    : fly up in game mode.
  • Q
    : fly down in game mode.
  • T
    : roll camera left in game mode.
  • Y
    : roll camera right in game mode.
  • R
    : reset camera roll in game mode.

Game Script functions

Game Script constants

Game Script functions for thread 2

Game Script for Android, Game Script for Windows Platform and Game Script REDGPU Version functions

Game Script uses the Ape programming language v0.14.0 by Krzysztof Gabis, you can read more about it in my public fork of his Github repo here: https://github.com/procedural/script

Game Script Native uses standard C++14.

Game Script Native Swift uses latest available Swift programming language.

Game Script Min uses the MinScriptLang scripting language from Nov 3, 2021 by Adam Sawicki, you can read more about it in my public fork of his Github repo here: https://github.com/procedural/minscript

Game Script C uses Tiny C Compiler.

Game Script for Android notes:

  • On Meizu M6 Note phone, I had to disable keyboard settings -> 'English prediction' option that prevented any typing.
  • If you use scrcpy to control your Android device from a Windows PC, to type with a keyboard and have Shift key working, run it with
    --prefer-text
    flag like this:
    scrcpy.exe --prefer-text
  • To change the default font, rename and place your font to
    /storage/emulated/0/Download/gamescript_font.ttf
  • To compile and run the script at startup in game mode with all default UI windows hidden, rename and place your script to
    /storage/emulated/0/Download/gamescript_compile_and_run.txt
  • If the touch arrow buttons don't work for your device, try entering different "Buttons delay" values, the default one is 19 frames of delay that works on one of my phones, but my other one requires it to be set to 40, for example.
  • You can compile your own C code as an ARM shared .so library and run it from within Game Script for Android, rename and place it to
    /storage/emulated/0/Download/libgame_script_external_procedure.so
  • In Android Settings, make sure the Game Script for Android app's "Use phone storage" permission is set to "Allow" (not "Ask" or "Reject").

Other repos: