This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import snow.platform.native.audio.openal.SoundStream; | |
| import snow.audio.Audio; | |
| import snow.types.Types; | |
| import snow.io.typedarray.Uint8Array; | |
| import snow.io.typedarray.Uint16Array; | |
| import snow.io.typedarray.Int16Array; | |
| import snow.io.typedarray.Float32Array; | |
| import snow.Log; | |
| import luxe.Rectangle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import snow.platform.native.audio.openal.SoundStream; | |
| import snow.audio.Audio; | |
| import snow.types.Types; | |
| import snow.io.typedarray.Uint8Array; | |
| import snow.io.typedarray.Float32Array; | |
| import snow.Log; | |
| import luxe.Input; | |
| class Main extends luxe.Game { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void fill_audio(void *udata, Uint8 *stream, int len) | |
| { | |
| int fLen = len/sizeof(float); | |
| /* Mix as much data as possible */ | |
| // copy the output to the stream | |
| for(int i=0;i<fLen;i+=2){ | |
| // ======================= | |
| // | |
| // my c code goes here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Play this game by pasting the script in http://www.???.com/editor.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Serializable] | |
| public class ActionInput{ | |
| public enum ActionType | |
| { | |
| ENTER_TRIGGER, | |
| EXIT_TRIGGER, | |
| STAY_TRIGGER, | |
| OBJECT_ACTIVE, | |
| PRESS_KEY | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // C# example. | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| [CustomPropertyDrawer(typeof(ActionInput))] | |
| public class ActionInputDrawer : PropertyDrawer { | |
| public int rows = 1; | |
| // Draw the property inside the given rect | |
| public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.sln | |
| *.userprefs | |
| *.csproj | |
| *.pidb | |
| *.unityproj | |
| .DS_Store | |
| /Library/FailedAssetImports.txt | |
| /Library/cache/ | |
| /Library/previews/ | |
| /Library/ScriptAssemblies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x tutorial doesn't work | |
| x hide the standalone highscores on mobile | |
| x entering the game while in landscape mode doesn't select the correct screen orientation | |
| x game over screen doesn't work | |
| x highscores might not be saving (can I connect the debug console to the device on android) | |
| x might be related to above | |
| x it seems like the steam stuff is what is causing it to break. | |
| x rotating the screen clockwise into landscape mode doesn't display things correctly | |
| x everything is super fucked on device :/ | |
| x it seems like the events on screen change aren't being dispatched |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ActorData = { | |
| ['location'] = Vec2(0,0); | |
| ['id'] = 'hand'; | |
| ['art'] = { | |
| {'hand.png'} | |
| }; | |
| ['actions'] = { | |
| { | |
| ['triggers']={ | |
| {t="time", d="exactly", td=1}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BananaData = { | |
| ['location'] = Vec2(0,0); | |
| ['id'] = 'banana'; | |
| ['art'] = { | |
| {'banana.png'} | |
| }; | |
| ['actions'] = { | |
| { | |
| ['triggers']={ |