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
| using Godot; | |
| using Steamworks; | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public partial class SteamMain : Node | |
| { | |
| // ใช้ฟังก์ชัน Internal ตัวเดิมที่เราพิสูจน์แล้วว่าเรียกติด | |
| [DllImport("steam_api", EntryPoint = "SteamInternal_SteamAPI_Init", CallingConvention = CallingConvention.Cdecl)] | |
| private static extern bool SteamInternal_SteamAPI_Init(); |
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
| using Godot; | |
| using System; | |
| public partial class TestEnumFlags : Node | |
| { | |
| // ===== แบบที่ 1: enum ธรรมดา ===== | |
| public enum NormalAction | |
| { | |
| None = 0, | |
| Left = 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
| func _init() -> void: | |
| var res : Dictionary = Steam.steamInitEx(480) | |
| print(res) | |
| var player_name: String = Steam.getPersonaName() | |
| print(player_name,"\n") | |
| var game_id:Array=[] | |
| for i in 6: | |
| var ach_name: String = Steam.getAchievementName(i) | |
| var display = Steam.getAchievementDisplayAttribute(ach_name, "name") | |
| var desc = Steam.getAchievementDisplayAttribute(name, "desc") |
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 * as THREE from 'three'; | |
| import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; | |
| import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; | |
| import { Line2 } from 'three/addons/lines/Line2.js'; | |
| import { LineMaterial } from 'three/addons/lines/LineMaterial.js'; | |
| import { LineGeometry } from 'three/addons/lines/LineGeometry.js'; | |
| import { GUI } from 'three/addons/libs/lil-gui.module.min.js'; | |
| //interavtive | |
| const raycaster = new THREE.Raycaster(); |
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
| using Godot; | |
| using System; | |
| public partial class Tadpole : Area3D | |
| { | |
| AnimationPlayer tadpoleAnimationPlayer; | |
| Label clickScoreLabel; | |
| int clickScore = 0; | |
| float moveSpeedX = GD.RandRange(-5,5); | |
| float moveSpeedY = GD.RandRange(-5,5); |
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
| body{ | |
| color: #61443e; | |
| font-family:Monospace; | |
| font-size:13px; | |
| text-align:center; | |
| margin: 0; | |
| overflow: hidden; | |
| } | |
| #info { |