• This repository has been archived on 16/Nov/2019
  • Stars
    star
    253
  • Rank 160,776 (Top 4 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Game Builder is an application that allows users to create games with little or no coding experience.

This project is no longer actively developed or maintained.

Game Builder

Game Builder

Welcome to the Game Builder open-source repository. This is the source code to build Game Builder, an application that allows users to create games with little or no coding experience. We are excited to share the source code with the community and are looking forward to seeing what you will create!

This is not an officially supported Google product.

Pre-requisites

  • Unity 2018.4.12f1

    It will probably work with later 2018.4.* versions, but this is the one we tested with. Unity 2019 is known to not work. If in doubt, use this exact version.

  • Python 2 to run code_gen scripts.

  • If you are using a Windows machine, you also need Git Bash (part of Git for Windows) to run shell scripts. If you are using a Mac, you don't need it: the built-in Terminal app is enough.

Running in Unity Editor

  1. Open the project (just the root of the repo).
  2. Open the splash screen scene: Assets/splash.unity.
  3. When the "TMP Importer" shows, click "Import TMP Essentials".
  4. Restart Unity.
  5. Click on the Play button.

Building the standalone EXE

To build a standalone, you must use the menu item Game Builder | Build. Going through the normal Unity Build Settings window will not work. Once done, your build will be located under the build_output folder.

We have included a reference build (builds/gamebuilder-OSS.7z). This is the build that you should get if you simply build a Windows standalone as-is, without enabling any extra plugins.

Scripting documentation

For documentation about how the in-game scripting works, open the docs.html file in a browser (after downloading/cloning this repository).

Optional features

Game Builder was originally built using several Unity Asset Store plugins. We cannot include them in the repo, so by default the features that require them are disabled. However, we've set things up so it's easy to re-enable some features once you've purchased and imported some plugins (many are free!). Instructions for individual features are below.

Common instructions

  • Running shell scripts: Whenever these instructions mention that you must run a given shell script, it's implied that you must run it (e.g 'bash shellscript.sh') in Git Bash (or OSX terminal) at the root of the repository.

  • Define a C# directive: When these instructions tell you to "define a C# directive" this means adding a C# #define symbol. To do this:

    • In Unity, open File | Build Settings
    • Go to Player Settings | Other Settings | Configuration
    • Add the directive to the end of the Scripting Define Symbols text field (with a semi-colon before it)
    • Restart Unity

Features that can be enabled for free

  • Photon Unity Networking - Enables multiplayer and collaborative-editing

    • NOTE: Because PUN integration is complex, we recommend you start with a fresh checkout of the codebase before following these steps. This reduces the likelihood of prefabs losing important property values after being edited without PUN.

    • First run the project as-is, freshly checked out, just to make sure it's working.

    • Don't forget to confirm TMPro's import dialog (import TMP Essentials).

    • Import the plugin from the Asset Store link above.

    • Define the directive USE_PUN

    • Close Unity before the next step

    • Run the shell script setup-photon.sh

    • Sign up for a PUN account (https://www.photonengine.com/)

    • In the PUN website, create a new application (type: Photon PUN)

    • Copy your new application's AppId.

    • Open the Unity project again and wait for importing to finish

    • Enter your AppId if prompted, but if not, go to the next step (the dialog might freeze while Unity imports assets, but don't worry, just wait until it finishes).

    • Finally, inspect the "PhotonServerSettings" asset and change the following:

      • "Hosting" to "Best Region"
      • "Regions" to "Everything"
      • Paste your AppId into the "AppId" field
    • Making sure it's all working:

      • After the above steps, make a build (Game Builder | Build).
      • Run the build and create a private multiplayer game (New Project | Empty | Private MP).
      • Run another instance (using the same build copy is fine) and join that game (Multiplayer | Use Join Code).
      • Confirm that both "players" can run around as their robots (red and green), and that movements are seen by both.
      • Confirm that when one player scales an actor (like the text box), the other player sees the size change as well.
      • If these don't work, try this: In Unity's project window, inspect the Actor prefab. In its PhotonView component, does it have "ActorNetworking" as one of its "Observed components"? If it does not, then something went wrong, and you should start over with a fresh checkout.
  • Crosstales File Browser - Enables the system file browser UI for local disk import/export features

    • Import the plugin from the Asset Store link above.
    • Define the directive USE_FILEBROWSER.
  • Poly Toolkit for Unity

    To enable importing 3D models from Poly, you must enter an API Key for the Poly API.

    You do NOT need to import the Poly SDK (Poly Toolkit). It's already included. All you need to do is enter your API key.

    To do so, click the PtSettings.asset file in Unity (you will find it in Assets/third_party/PolyToolkit/Resources). The Inspector window will show several options for it. Click the RUNTIME tab, open the Auth Config section and enter your API Key, replacing the placeholder text "INSERT YOUR API KEY HERE".

    For instructions on how to get an API key, see the Google Cloud Console. When you create your Google Cloud Console project, don't forget to enable the Poly API on it before (not after) generating your API Key.

  • Google Image Search

    To enable Google Image Search in you Creation Library, you must setup a Custom Search Engine on Google Cloud Platform.

    (Instructions assume basic familiarity with Google Cloud)

    • Create a new project on Google Cloud Platform
    • Enable the β€œCustom Search API”
    • Create an API Key for the Custom Search API (via β€œCreate Credentials”)
    • Inside the Unity project, paste the generated API key in to the APIkey variable at the top of GisSearchManager.cs
    • Go to the Custom Search Engine control panel (cse.google.com) and create a new search engine. When creating the search engine, enter any domain (we will delete it in the next step).
    • Edit the new search engine
      • Remove the site to search
      • Turn on β€œsearch the entire web”
      • Turn on β€œimage search” and β€œsafe search”
      • Inside the Unity project, copy the search engine's ID and paste it in to the searchID variable at the top of GisSearchManager.cs
    • You are all set!

Features that require premium plugins

  • 2D Shaper Library

    If you want game-generated 2D graphics (that is, you want to allow games to show HUD text, draw shapes on the screen, etc).

    • Import the plugin from the Asset Store link above.
    • Define the directive USE_SHAPER_2D_LIBRARY.
  • Steam Workshop - If you are releasing on Steam and want to enable functionality like project sharing.

    • Import the plugin from the Asset Store link above.
    • Run the shell script "setup-steamworks.sh".
    • Define the directive USE_STEAMWORKS.
    • Find the file "steam_appid.txt" in the repo root (NOT the one in "redist"). Put your AppID in there (instead of 480).
  • TriLib - To import FBX files with animation from Poly.

    • Import the plugin from the Asset Store link above.
    • Define the directive USE_TRILIB.
  • Embedded Browser

    This plugin allows rendering of an HTML page inside of Game Builder, which enables you to use the Monaco-based code editor IDE.

    • Import the plugin from the Asset Store link above.
    • Define the directive USE_ZFBROWSER
    • Run the shell script setup-browser-assets.sh

Archival Build

In the builds directory, you will also find the last build that we published to Steam (the gamebuilder-ARCHIVE.7z.* files). This differs from the open-source build because it has several optional plugins enabled such as 2D UI, rich JS editor, etc.

License

See the LICENSE file for more details.

Contributing

This repository does not currently accept pull requests, but you are welcome to fork it to make your own version of it, if you want to.

More Repositories

1

code-prettify

An embeddable script that makes source-code snippets in HTML prettier.
JavaScript
5,768
star
2

chromedeveditor

Chrome Dev Editor is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. (NO LONGER IN ACTIVE DEVELOPMENT)
Dart
2,924
star
3

android-Camera2Basic

Migrated:
Java
2,863
star
4

android-ConstraintLayoutExamples

Migrated:
Java
2,571
star
5

firebase-jobdispatcher-android

DEPRECATED please see the README.md below for details.
Java
1,796
star
6

vrview

Library for embedding immersive media into traditional websites.
JavaScript
1,709
star
7

tiger

Java
1,645
star
8

flipjs

A helper library for doing FLIP animations.
JavaScript
1,409
star
9

android-PictureInPicture

Migrated:
Java
1,393
star
10

android-FingerprintDialog

Migrated:
Java
1,375
star
11

observe-js

A library for observing Arrays, Objects and PathValues
JavaScript
1,357
star
12

PyDrive

Google Drive API Python wrapper library
Python
1,304
star
13

js-marker-clusterer

A marker clustering library for the Google Maps JavaScript API v3.
JavaScript
1,279
star
14

android-RuntimePermissions

This sample has been deprecated/archived. Check this repo for related samples:
Java
1,263
star
15

android-Camera2Video

Migrated:
Java
1,201
star
16

chromium-webview-samples

Useful examples for Developing apps with the Chromium based WebView
Java
1,173
star
17

androidtv-Leanback

Migrated:
Java
1,148
star
18

caja

Caja is a tool for safely embedding third party HTML, CSS and JavaScript in your website.
Java
1,126
star
19

android-ui-toolkit-demos

Migrated:
Java
1,118
star
20

android-ScreenCapture

Migrated:
Java
1,021
star
21

android-BluetoothChat

Migrated:
Java
986
star
22

android-BluetoothLeGatt

Migrated:
Java
911
star
23

sample-media-pwa

A sample video-on-demand media Progressive Web App
JavaScript
889
star
24

ChromeWebLab

The Chrome Web Lab for Makers, Hackers and everyone
JavaScript
877
star
25

big-rig

A proof-of-concept Performance Dashboard, CLI and Node module
CSS
857
star
26

android-instant-apps

Migrated:
Java
847
star
27

cloud-functions-emulator

A local emulator for deploying, running, and debugging Google Cloud Functions.
JavaScript
827
star
28

guitar-tuner

A web-based guitar tuner
JavaScript
822
star
29

android-JobScheduler

This sample has been deprecated/archived. Check this repo for related samples:
Java
773
star
30

flashlight

A pluggable integration with ElasticSearch to provide advanced content searches in Firebase.
JavaScript
757
star
31

friendlypix

FriendlyPix is a cross-platform Firebase example app
726
star
32

voice-memos

A Progressive Web App for recording and playing back voice memos.
JavaScript
724
star
33

android-audio-high-performance

We now recommend you use the Oboe libraries:
C++
715
star
34

android-EmojiCompat

Migrated:
Java
707
star
35

android-RecyclerView

Migrated:
Java
675
star
36

ios-swift-chat-example

FireChat implemented in Swift!
Objective-C
673
star
37

leanback-showcase

Migrated:
Java
639
star
38

android-transition-examples

Migrated:
581
star
39

geofire

Realtime location queries with Firebase
569
star
40

drive-music-player

Fully client side Music Player for Google Drive
JavaScript
566
star
41

android-viewpager2

Migrated:
552
star
42

science-journal-ios

Use the sensors in your mobile devices to perform science experiments. Science doesn’t just happen in the classroom or labβ€”tools like Science Journal let you see how the world works with just your phone.
Swift
532
star
43

topeka

quiz app
HTML
532
star
44

android-PdfRendererBasic

Migrated:
Java
522
star
45

science-journal

Use the sensors in your mobile devices to perform science experiments. Science doesn’t just happen in the classroom or labβ€”tools like Science Journal let you see how the world works with just your phone.
Java
508
star
46

tango-examples-java

Example projects for Project Tango [deprecated] Java API
Java
500
star
47

AndroidChat

Demonstrates using the Firebase Android SDK to back a ListView.
Java
499
star
48

android-nearby

Migrated:
Java
494
star
49

android-play-places

Deprecated:
Java
479
star
50

tango-examples-unity

Project Tango [deprecated] UnitySDK Example Projects
C#
475
star
51

easygoogle

Simple wrapper library for Google APIs
Java
471
star
52

firefeed

JavaScript
461
star
53

android-dynamic-features

Migrated:
Kotlin
460
star
54

android-MediaBrowserService

This sample is deprecated.
Java
457
star
55

graphd

The Metaweb graph repository server
C
445
star
56

drive-zipextractor

Extract (decompress) ZIP files into Google Drive using the Google Drive API
JavaScript
435
star
57

android-AutofillFramework

Migrated:
Java
432
star
58

webplatform-samples

HTML5 Samples/Demos
430
star
59

cloud-functions-go

Unofficial Native Go Runtime for Google Cloud Functions
Go
427
star
60

android-unsplash

Deprecated:
424
star
61

android-MultiWindowPlayground

Migrated:
Java
418
star
62

appengine-flask-skeleton

A skeleton for creating Python applications using the Flask framework on App Engine
Python
416
star
63

angularfire-seed

Seed project for AngularFire apps
JavaScript
412
star
64

node-big-rig

A CLI version of Big Rig
JavaScript
410
star
65

firebase-dart

Dart wrapper for Firebase
Dart
409
star
66

android-Camera2Raw

Migrated:
Java
386
star
67

js-store-locator

A library for easily building store-locator-type applications using the Google Maps JavaScript API v3
JavaScript
380
star
68

ADBPlugin

Google Chrome Extension with ADB Daemon
C++
372
star
69

android-fit

Migrated:
Java
372
star
70

android-NotificationChannels

This sample has been deprecated/archived. Check this repo for related samples:
Java
369
star
71

appengine-php-wordpress-starter-project

Starter project for running WordPress on Google Cloud Platform
PHP
368
star
72

android-ActivitySceneTransitionBasic

Migrated:
368
star
73

android-text

Migrated:
Kotlin
363
star
74

android-XYZTouristAttractions

Migrated:
356
star
75

firebase-angular-starter-pack

A Firebase + AngularJS Starter Pack
JavaScript
348
star
76

android-OurStreets

Migrated:
345
star
77

tango-examples-c

JNI example projects for Project Tango [deprecated] C-API
C++
334
star
78

simian

Simian is an enterprise-class Mac OS X software deployment solution. Google App Engine hosted server, with a client powered by the Munki open-source project.
Python
334
star
79

OpenInChrome

Open in Chrome
Objective-C
333
star
80

android-DownloadableFonts

Migrated:
Java
319
star
81

friendlypix-web

FriendlyPix is a cross-platform Firebase example app - This is the web version
JavaScript
312
star
82

pywebsocket

WebSocket server and extension for Apache HTTP Server for testing
Python
310
star
83

android-DarkTheme

migrated:
Java
302
star
84

firereader

Firereader: A feed reader built with Firebase and AngularJS
JavaScript
301
star
85

android-WatchFace

Migrated:
300
star
86

android-MediaRecorder

Migrated:
Java
299
star
87

backbonefire

Backbone bindings for Firebase
JavaScript
291
star
88

TemplateBinding

TemplateBinding Prolyfill
JavaScript
291
star
89

firebase-login-demo-android

Java
280
star
90

Firebase-Unity

Objective-C
279
star
91

seed-element

Polymer element boilerplate
HTML
278
star
92

firebase-util

An experimental toolset for Firebase
JavaScript
276
star
93

android-NavigationDrawer

This sample has been deprecated/archived. Check this repo for related samples:
Java
276
star
94

android-DisplayingBitmaps

Migrated:
Java
272
star
95

wReader-app

RSS Reader written using AngularJS
JavaScript
271
star
96

gcm-playground

CSS
268
star
97

android-CardView

Migrated:
Java
265
star
98

soundstagevr

C#
263
star
99

ShadowDOM

ShadowDOM Polyfill
JavaScript
263
star
100

android-credentials

Migrated:
Java
260
star