C .
ODE
G
AMELET
person_outline
Sign In
videogame_asset
Public Games
local_library
Public Library
work
Public Projects
comment
Discuss
search
visibility
code
OPEN
info_outline
# pixi_spine_test One Paragraph of project description goes here ## Getting Started (For a game project) Write some tips or instructions how to control in your game. (For building a module) Write a piece of codes to demostrate how to use this module. ```typescript function examples() { } ``` ## Authors **[Haskasu](/profile/Haskasu)**
pixi_spine_test
Haskasu
visibility
code
OPEN
info_outline
# Ryvexia2 One Paragraph of project description goes here ## Getting Started (For a game project) Write some tips or instructions how to control in your game. (For building a module) Write a piece of codes to demostrate how to use this module. ```typescript function examples() { } ``` ## Authors **[cook1470](/profile/cook1470)**
Ryvexia2
cook1470
visibility
code
OPEN
info_outline
# CookPixiUI2 這是一個主要用於 Code.Gamelet Pixi v8 的 UI 模組。 <font color=red>**(本專案僅支援 [Pixi](https://code.gamelet.com/edit/Pixi) 模組,使用 [Base](https://code.gamelet.com/edit/Base) 模組的專案請勿載入此模組,否則會壞掉。)**</font> ## 元件介紹 本專案說明文件皆建立在 Pixi 舞台長 960 寬 540 的情況之下,在使用 Pixi 之前,請先確保你已經正確的初始化 Pixi。 1. 使用 **`then`** 等待。 ```ts // 初始化 pixi CG.Pixi.pixi.initialize({ stageWidth: 960, // 舞台寬度 stageHeight: 540 // 舞台高度 }).then(() => { // 初始化完成後... }); ``` 2. 使用 **`async`、`await`** 等待。 ```ts // 定義一個 async 函數 async function main() { // 在 async function 中,可以使用 await 來等待 Promise 完成。 await CG.Pixi.pixi.initialize({ stageWidth: 960, // 舞台寬度 stageHeight: 540 // 舞台高度 }); // 初始化完成後... } // 呼叫 main 函數 main(); ``` - <a href="cg://source/CG.CookPixiUI2/Readmd/ScrollView.md">ScrollView(滑動容器元件)</a> - <a href="cg://source/CG.CookPixiUI2/Readmd/ListView.md">ListView(清單元件)</a> - <a href="cg://source/CG.CookPixiUI2/Readmd/DynamicListView.md">DynamicListView(動態清單元件)</a> - <a href="cg://source/CG.CookPixiUI2/Readmd/ListViewCell.md">ListViewCell(清單項目元件)</a> ## Authors **[cook1470](/profile/cook1470)**
CookPixiUI2
cook1470
visibility
code
OPEN
info_outline
# CookPixiUI 這是一個主要用於 Code.Gamelet Pixi v5 的 UI 模組。 ## 元件介紹 本專案說明文件皆建立在 Pixi 舞台長 960 寬 540 的情況之下,在使用 Pixi 之前,請先確保你已經正確的初始化 Pixi。 ```ts // 初始化 pixi,長 960 寬 540 CG.Base.pixi.initialize(960, 540); ``` - <a href="cg://source/CG.CookPixiUI/Readmd/ScrollView.md">ScrollView(滑動容器元件)</a> - <a href="cg://source/CG.CookPixiUI/Readmd/ListView.md">ListView(清單元件)</a> - <a href="cg://source/CG.CookPixiUI/Readmd/DynamicListView.md">DynamicListView(動態清單元件)</a> - <a href="cg://source/CG.CookPixiUI/Readmd/ListViewCell.md">ListViewCell(清單項目元件)</a> ## Authors **[cook1470](/profile/cook1470)**
CookPixiUI
cook1470
visibility
code
OPEN
info_outline
# emptyProject 這是一個已經載入pufferfish's playground的專案 ## Introduction 在遊戲內說話會自動啟動指令 <br> 像是如果玩家在遊戲內說了henshin <br> 如果henshin是指令就會直接生效 <br> 有什麼指令都可以在import libraries找,指令都會是小寫 <br> <br> ``` namespace CG.pufferfishsPlayground3.riderSenderUtils { export declare class Boostuppls { constructor(); static boostuppls(e: any): void; } } ``` 這種放在riderSenderUtils 的functions代表這是一個可以使用的指令 <br>有些是單一指令,像是boostuppls,角色直接說boostuppls就有效了 <br>henshin、boostuppls、bombpls都是直接有效的指令 <br>boostuppls 也可以補參數,像是boostuppls 5,中間放空白就能補參數 <br>有哪些參數可以補我還沒有特別整理,之後會再做教學 ## Authors **[pufferfish_01](/profile/pufferfish_01)**
emptyProject
pufferfish_01
visibility
code
OPEN
info_outline
光暈的存檔系統有點複雜 光暈戰技裡面有ACTOR 與玩家 其中 如果你要存檔 你要用玩家的ID 有些事件可以找到如 玩家加入遊戲防 玩家按下鍵盤 而角色殺死攻擊者代碼就算是玩家 它代表的是ACTOR 並不是玩家ID
存檔系統測試
dillenhub
visibility
code
OPEN
info_outline
# Playground 專門用來快速在畫板上塗塗抹抹的專案。 ## Getting Started 摳出來成為你自己的新專案後,可用以下幾種工具(在/libs裏的工具)快速畫圖。 ```typescript // 畫一個紅色的圓 draw.circle(0, 0, 100, {fillColor: 0xFF0000}); // 打開一個確認視窗 dialog.confirm('Are you sure?', 'Click confirm if you think it is ok.') .then((confirm) => { if(confirm) { console.log('User confirmed.'); } }); // 收集資料畫長條圖 let dataCollector = new DataCollector(); dataCollector.addData('一月', 1, 2); dataCollector.addData('二月', 2, 10); dataCollector.addData('三月', 3, 5); dataCollector.addData('四月', 4, 6); dataCollector.showChart('第一季', 'bar'); ```
agar.io
dillenhub
visibility
code
OPEN
info_outline
# CgEventsLib2 One Paragraph of project description goes here ## Getting Started (For a game project) Write some tips or instructions how to control in your game. (For building a module) Write a piece of codes to demostrate how to use this module. ```typescript function examples() { } ``` ## Authors **[Haskasu](/profile/Haskasu)**
CgEventsLib2
Haskasu
visibility
code
OPEN
info_outline
# Server2 One Paragraph of project description goes here ## Getting Started (For a game project) Write some tips or instructions how to control in your game. (For building a module) Write a piece of codes to demostrate how to use this module. ```typescript function examples() { } ``` ## Authors **[Haskasu](/profile/Haskasu)**
Server2
Haskasu
visibility
code
OPEN
info_outline
# 五十音 ~~BINGO~~ 這是一個用來練習五十音的小遊戲。 可以在主頁面設定要以平假名或是片假名為主。 開始後會產生 5 x 5 的隨機假名表,並且隨機產生對應的題目,如一開始選擇平假名,則題目將為片假名,根據題目選擇對應的假名即可圈選。 快來測試看看自己的速度如何吧! ~~花了一個晚上做的,原本要做 BINGO,但連線之後有機會再說吧~~~ ## Authors **[cook1470](/profile/cook1470)** ## 素材 ### Sprite - [basic-gui-bundle](https://penzilla.itch.io/basic-gui-bundle) - [Bing image creator](https://www.bing.com/images/create) ### Music - [Bossa Nova](https://opengameart.org/content/bossa-nova) ### Sound Effects - [Haskasu](https://code.gamelet.com/profile/Haskasu/assets) - [cook1470](https://code.gamelet.com/profile/cook1470/assets)
GojuuonBingo
cook1470
visibility
code
OPEN
info_outline
# EnhServer 為了解決一些CG功能上的缺失,故實作此Lib。 包含變數無法跨專案使用,以及無法跨專案實作大聊天室。 (可能只是不知道方法) 未來將會逐步補上缺失的功能,範例後端請參照[此Github repo](https://github.com/setsuk1/EnhServer-monorepo),歡迎發起PR。 以及可以加入[Discord群組](https://discord.gg/seJwuzCbWq)一起討論,並共同討論功能方向。 初期可能不穩定,建議自建Server。 **且安全性並非此Lib的第一考量,此Lib主要是作為補充功能使用。** ## 如何使用 主要是透過下列方法進行初始化: ```typescript server.initialize(options) ``` options部分為可選選項,若參數為空則預設連線至Enh之後端伺服器。 預設狀態本模組會export一個server物件提供操作,若是希望使用多個instance,僅須透過下列方法: ```typescript const customServer = new EnhServer(); customServer.initialize(options); ``` 之後透過下列方式取得一對一傳訊的資料: ```typescript let context = { handler(data: any, senderCode: string) { console.log(data); } } server.msgManager.on(UserEventList.MSG.UNICAST, context.handler, context); ``` --- ## 呼叫功能 作為範例,下面舉出廣播至全體的功能如何使用: ```typescript let cmd = new Command(SocketEventList.USER, new BroadcastToAllEvent({ data: "Hi there." })); server.sendCommand(cmd); ``` 由此便可送出"Hi there."訊息到Server上的所有使用者。 至於其餘功能目前尚未確定如何說明,待補。 ## Authors **[EnhProject](/profile/EnhProject)** - **[不會取名字](/profile/buhuechuminzu)** - **[雪姬](/profile/setsuki)**
EnhServer
EnhProject
visibility
code
OPEN
info_outline
# TwilightWarsEventsEnhFF "FF" stands for "Fast Forward", and can be considered as **beta version** of original **TWEventsEnh**. Due to slow updates of the original Enh, many functionalities cannot be implemented. ## Additional This project is mainly maintained by [雪姬](/profile/setsuki). The **[Enh Discord server](https://discord.gg/seJwuzCbWq)** is also welcoming participants! ## Important ***It is recommanded to read source code of this project!*** The main concept is to make events work as code. Not just focused on **performance**, but also provide more **flexibility**. This project will not repair bugs unless they are critical. If there are any bugs, they will be fixed when integrated into the main Enh. Enh needs your participate for testing, asking questions or reporting bugs! Features merged into the mainline Enh will be removed here. ## Authors **[EnhProject](/profile/EnhProject)** - **[不會取名字](/profile/buhuechuminzu)** - **[雪姬](/profile/setsuki)**
TwilightWarsEventsEnhFF
EnhProject
visibility
code
OPEN
info_outline
# ZUNHONG 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.ZUNHONG/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 作者 **[Yoyo.Own](/profile/106866699248391367123@google)**
TESTZUN
Yoyo.Own
visibility
code
OPEN
info_outline
# 我的光暈戰記 My Twilight Wars 皇家近武能力測試 The template that help developers to build their own twilightwars-like game, your own map, your own mission. ## 快捷鈕 Shortcuts <a href="cg://source/CG.TWEventsGameTemplate/game.events" class="mat-raised-button mat-primary">編輯任務事件表 (Edit Events)</a> <a href="cg://source/CG.TWEventsGameTemplate/gamemap.twmap" class="mat-raised-button mat-primary">編輯地圖 (Edit Map)</a> ## 多重任務列表 將 appSeasons.ts 設為遊戲進入點,即可支援任務章節/列表。 <a href="cg://source/CG.TWEventsGameTemplate/seasons.ts" class="mat-raised-button mat-primary">編輯 seasons.ts 任務列表</a> Set appSeasons.ts as the entry point to support seasons/mission list. <a href="cg://source/CG.TWEventsGameTemplate/seasons.ts" class="mat-raised-button mat-primary">Edit seasons.ts (Mission List)</a>
皇家近武能力測試
36984
visibility
code
OPEN
info_outline
# MarutsukiMaruhiTenkiHaru 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.MarutsukiMaruhiTenkiHaru/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 作者 **[Aya55](/profile/106797148482283198640@google)**
MarutsukiMaruhiTenkiHaru
Aya55
visibility
code
OPEN
info_outline
# fengyuan 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.fengyuan/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 作者 **[Meredith](/profile/103361319612759121657@google)**
逢緣
Meredith
visibility
code
OPEN
info_outline
# Retry One Paragraph of the game description goes here ## Getting Started <a href="cg://source/CG.Retry/game.events" class="mat-raised-button mat-primary">Edit Game Events Sheet</a> ## Authors **[Ivan.Kong](/profile/106602187661106560490@google)**
突圍而出
Ivan.Kong
visibility
code
OPEN
info_outline
# PracticeZombieUI 這是一個用於模擬顯示光暈戰記 - 殭屍來襲中,商店 UI 的事件表模組。 ### 包含模組 - [TwilightWarsLib](https://twilightwarslib.gamelet.online/) ## 使用介紹 1. 在想要啟用 UI 的事件表中,用於初始化的事件中**添加兩個全域變數**,用於代表**天數**、**金幣**。 2. 宣告變數之後再添加**「殭屍來襲 UI:初始化」**動作,並帶入第 1 步新增的兩個全域變數。 3. 可使用動作**「殭屍來襲 UI:添加商品」**添加商品,若須自訂圖示則需使用自訂武器道具。 4. 若要改變天數、金幣請使用動作**「殭屍來襲 UI:設置天數」**、**「殭屍來襲 UI:設置金幣」**。 5. 可自行接收觸發**「殭屍來襲 UI:選擇商品」**來實踐選擇商品後的事件動作。<br/>*觸發的選擇商品只有在玩家選擇商品,且金幣可購買商品時觸發。* ## Authors **[cook1470](/profile/cook1470)**
光暈戰記:殭屍來襲 UI
cook1470
visibility
code
OPEN
info_outline
# 畫線畫圖演算法 - 布雷森漢姆直線演算法 (Bresenham's line algorithm) - 吳小林直線演算法 (Xiaolin Wu's line algorithm) - 中點畫圓演算法 (Midpoint Circle algorithm) - 反鋸齒畫圓演算法 (Antialias Circle algorithm) # 影片講解 [畫線演算法] https://www.youtube.com/watch?v=YAsKbVYS6jY [畫圓演算法] https://www.youtube.com/watch?v=dMyCjrYCD2w
Line Renderer
Haskasu
visibility
code
OPEN
info_outline
# 為啥老在for迴圈裏寫 ++i (而不是 i++) 影片在這啦 - 《隨口講講系列:為什麼喜歡在for迴圈裏寫 ++i》 https://www.youtube.com/watch?v=P44ly_VOjF0 ## Authors **[Haskasu](/profile/Haskasu)**
iplusplus
Haskasu
MORE RESULTS
ⒸCode.Gamelet.com |
Privacy Policy
|
Terms of Service