PageSourceSearch

https://bakerfury.netlify.app/gdjs-evtsext__spritemultitouchjoystick__angleto4way-func.js

js bakerfury.netlify.app collected 2026-10-03 10:30:53 UTC 2,721 bytes, 82 lines download raw bytes

1
2if (typeof gdjs.evtsExt__SpriteMultitouchJoystick__AngleTo4Way !== "undefined") {
3  gdjs.evtsExt__SpriteMultitouchJoystick__AngleTo4Way.registeredGdjsCallbacks.forEach(callback =>
4    gdjs._unregisterCallback(callback)
5  );
6}
7
8gdjs.evtsExt__SpriteMultitouchJoystick__AngleTo4Way = {};
9
10
11gdjs.evtsExt__SpriteMultitouchJoystick__AngleTo4Way.eventsList0 = function(runtimeScene, eventsFunctionContext) {
12
13{
14
15
16let isConditionTrue_0 = false;
17{
18{if (typeof eventsFunctionContext !== 'undefined') { eventsFunctionContext.returnValue = gdjs.evtTools.common.mod(Math.round((typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("Angle")) || 0 : 0) * 4 / 360), 4); }}}
19
20}
21
22
23};
24
25gdjs.evtsExt__SpriteMultitouchJoystick__AngleTo4Way.func = function(runtimeScene, Angle, parentEventsFunctionContext) {
26var eventsFunctionContext = {
27  _objectsMap: {
28},
29  _objectArraysMap: {
30},
31  _behaviorNamesMap: {
32},
33  getObjects: function(objectName) {
34    return eventsFunctionContext._objectArraysMap[objectName] || [];
35  },
36  getObjectsLists: function(objectName) {
37    return eventsFunctionContext._objectsMap[objectName] || null;
38  },
39  getBehaviorName: function(behaviorName) {
40    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
41  },
42  createObject: function(objectName) {
43    const objectsList = eventsFunctionContext._objectsMap[objectName];
44    if (objectsList) {
45      const object = parentEventsFunctionContext ?
46        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
47        runtimeScene.createObject(objectsList.firstKey());
48      if (object) {
49        objectsList.get(objectsList.firstKey()).push(object);
50        eventsFunctionContext._objectArraysMap[objectName].push(object);
51      }
52      return object;    }
53    return null;
54  },
55  getInstancesCountOnScene: function(objectName) {
56    const objectsList = eventsFunctionContext._objectsMap[objectName];
57    let count = 0;
58    if (objectsList) {
59      for(const objectName in objectsList.items)
60        count += parentEventsFunctionContext ?
61parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
62        runtimeScene.getInstancesCountOnScene(objectName);
63    }
64    return count;
65  },
66  getLayer: function(layerName) {
67    return runtimeScene.getLayer(layerName);
68  },
69  getArgument: function(argName) {
70if (argName === "Angle") return Angle;
71    return "";
72  },
73  getOnceTriggers: function() { return runtimeScene.getOnceTriggers(); }
74};
75
76
77gdjs.evtsExt__SpriteMultitouchJoystick__AngleTo4Way.eventsList0(runtimeScene, eventsFunctionContext);
78
79return Number(eventsFunctionContext.returnValue) || 0;
80}
81
82gdjs.evtsExt__SpriteMultitouchJoystick__AngleTo4Way.registeredGdjsCallbacks = [];

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.