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
# HaskaHeroWalk 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)**
HaskaHeroWalk
Haskasu
visibility
code
OPEN
info_outline
# TiledMapEngine 方塊地圖遊戲引擎 如果大家有玩過光暈戰記/Minecraft,那一定方塊地圖十分了解:<br/> #### <I>方塊地圖是指地圖由一格一格組成。</I><br/> 這個引擎可以讓大家輕鬆做出方塊地圖,並在地圖上設計遊戲。<br/> 不過使用這個引擎之前,你必須在<a href="">我們提供的地圖編輯器</a>設計你的地圖。<br/> 有關地圖編輯器的說明,可以在該專案查看。<br/><br/> ## 我不懂那些函式怎用,怎麼辨? 你可以點入本專案程式碼查看說明,一切程式碼都是開源的。<br/> 你也可以在本專案建立討論串,說明你的問題。<br/> ## How to use 本專案大多使用asynchronous function,<br/> 換而言之,在使用本專案之前,你可能需要學習一些語法,比如: ```typescript this.gameMap.renderMap() .then(() => { //write your code in here }); ``` 這個程式是要this.gameMap去加載地圖,由於加載地圖需要時間,<br/> 不使用asynchronous function的話,你的程式會卡著一段時間。<br/> 現在,在使用asynchronous function的設計後,你只要把加載地圖之後的程式寫在then中,就可以避免卡著的情況。<br/><br/> 在完成地圖設計之後,你會得一個JSON檔案,這個檔案儲存了一切有關那個的資料。<br/> 然後,你須在你的專案加入本模組,並把JSON檔案上載至你的專案(你也可以修改左方CG.TiledMapEngine中的tiled_map.json)。<br/> 接下來,請參考加載地圖示範: ```typescript CG.Base.pixi.initialize(500, 600); //格式化PIXI CG.Base.resourceManager.addAppResource('TiledMapEngine.mapResource') //加載你的地圖圖片 CG.Base.resourceManager.load(() => { //step 1: 加載JSON $.getJSON(CG.Base.getAppSourceUrl('CG.TiledMapEngine/tiled_map.json'), (data) => { //請把那個url改成你json檔案位置,如果你是直接修改tiled_map.json,這邊可以不用改 //step 2:建立地圖,並把地圖資料,即JSON傳入 this.gameMap = new CG.TiledMapEngine.Map(data , true); //建立一張新地圖,在建立時,會把json資料傳入, true代表有視野限制 //step 3:把地圖素材包加到地圖中 this.gameMap.importUsedMapTexture() //把地圖格子資料加到地圖 .then(() => { //step 4:生成地圖 this.gameMap.renderMap() //生成地圖 .then(() => { CG.Base.pixi.root.addChild(this.gameMap); //把地圖加到PIXI中 }); }); }) }); ``` 這樣,你就會得一個this.gameMap,而這就是你的地圖。<br/> 在CG中,實作無限地圖十分簡單,<br/> 在光暈,我們只有一個地圖,即是只有一個this.gameMap,<br/> 但在CG,你可以使用上面的方法,建立多個地圖。 ## API ### CG.TiledMapEngine.camera ### <div style="color:red">Method</div> set(map: Map, x: number, y: number): void<br/> 根據輸入的地圖和位置,移動視角。 | Parameter | Type | Description | Optional | |:---------:|:------:|:------------------:|:--------:| | map | Map | 要移動視角的地圖。 | No | | x | number | 位置的x軸座標。 | No | | y | number | 位置的y軸座標。 | No | ## Author **[gamtable](/profile/gamtable)**
方塊地圖遊戲引擎
gamtable
visibility
code
OPEN
info_outline
# numberGuess 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 **[Frank](/profile/Frank)**
numberGuess
Frank
visibility
code
OPEN
info_outline
# TwelvedA Homework 6 [Class Notes](https://docs.google.com/presentation/d/1c37HNRwSuSKdFmi2EvyLbL57E2719f49gKMzRkfH4Ys/edit?usp=sharing) ## Subject Write a function that accepts two numbers as parameters, and return the distance between them. ## Directions 1. Write the codes in app.ts 1. Don't forget to call the function and see if the result is as expected. <a href="cg://source/app.ts" class="mat-raised-button mat-primary">Start Coding</a>
TwelvedA_HW6
Haskasu
visibility
code
OPEN
info_outline
# 無差別五子棋 五子棋是中國古老的棋藝之一,發展至今天有日本的連珠(Renju)、歐洲的五目(Gomoku)、以及Gamelet的無差別五子棋。棋友們不打不相識,歡迎大家進來互相切磋棋藝吧。 這款使用Code.Gamelet.com平台製作的多人連線遊戲除了Online對弈模式可在線上找棋友單挑之外,還有單人模式,讓玩家可以輕鬆讓站長設計的人工智慧培養你的實力。 單人模式可以選擇下「篤姬五子棋」、「德川家定將軍五子棋」、還有可愛的「女僕五子棋」,每個人都有不同的個性,若是新手請選擇女僕五子棋喔! ## 規則 遊戲中和玩家對弈的部分有六種規則可以選擇: 1. **無差別**:沒有職業棋賽的各種繁複規則,只要玩家能湊出五個子連成一線就算贏。後手贏得比賽所得到的分數是先手贏得到分數的1.5倍喔。 1. **三手交換**:黑白雙方輪流落子,盤上第三手棋後,後手白子有權選擇交換,或不交換直接下第四手。若後手白子於第三手選擇交換,則棋盤上黑白子交換,並由黑子繼續下子。長連不禁也不判勝。 1. **黑子禁手**:先手黑子不能下禁手棋,包括雙活三、雙四和長連。 1. **山口規則**:(Yamaguchi Rule) 2009世界盃開始採用的職業規則。 1. **索索夫規則**: (Soosõrv Rule) 2017世界盃開始採用的職業規則。 1. **六子棋**: 雙方輪流各下兩子,連成六子(或以上)者獲勝。 開局的玩家一定是持白子後手,遊戲結束後,如果兩人選擇再玩一次,那麼先手和後手就會交換順序,讓贏的人變後手! 自認是高手的朋友們,快進來開局等人來挑戰吧! ## 作者 **[小哈片刻](/profile/113321052805704333314@google)**
無差別五子棋
Haskasu
visibility
code
OPEN
info_outline
# LittleBirdHunting Demo for CG classwork. ## Design <a href="cg://source/CG.LittleBirdHunting/game.events" class="mat-raised-button mat-primary">Edit Events</a> ## Author **[Haskasu](/profile/113321052805704333314@google)**
BirdHuntingWithUI
Haskasu
visibility
code
OPEN
info_outline
# FiveBouncingBalls One Paragraph of the game description goes here ## Getting Started <a href="cg://source/CG.FiveBouncingBalls/game.events" class="mat-raised-button mat-primary">Edit Game Events Sheet</a> ## Authors **[Haskasu](/profile/113321052805704333314@google)**
FiveBouncingBalls
Haskasu
visibility
code
OPEN
info_outline
# BouncingBallGo One Paragraph of the game description goes here ## Getting Started <a href="cg://source/CG.BouncingBallGo/game.events" class="mat-raised-button mat-primary">Edit Game Events Sheet</a> ## Authors **[Haskasu](/profile/113321052805704333314@google)**
BouncingBallGo
Haskasu
visibility
code
OPEN
info_outline
# BouncingBall 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.BouncingBall/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 作者 **[Haskasu](/profile/113321052805704333314@google)**
BouncingBall
Haskasu
visibility
code
OPEN
info_outline
# Test0 One Paragraph of the game description goes here ## Getting Started <a href="cg://source/CG.Test0/game.events" class="mat-raised-button mat-primary">Edit Game Events Sheet</a> ## Authors **[Man.Ocean](/profile/111379707613261057975@google)**
Test0
Man.Ocean
visibility
code
OPEN
info_outline
# webdesign_basic 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.webdesign_basic/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 作者 **[Haskasu](/profile/113321052805704333314@google)**
webdesign_basic
Haskasu
visibility
code
OPEN
info_outline
# HaskaTestServer 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.HaskaTestServer/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 作者 **[Haskasu](/profile/113321052805704333314@google)**
HaskaTestServer
Haskasu
visibility
code
OPEN
info_outline
# CG Server This library gives apps the tools to access the powerful game server that provided by code.gamelet.com. The server provides the abilities listed below: 1. Player managements including login, profile, password etc. 1. A database that can do score leaderboard, individual player status, and more. 1. Multiplayer online connections (powered by socket.io). ## GLT Server A Database server. <a href="cg://source/CG.Server/GLT_README.md" class="mat-raised-button mat-primary">GLT Server Readme</a> ## MSG Server A realtime socket server. <a href="cg://source/CG.Server/MSG_README.md" class="mat-raised-button mat-primary">MSG Server Readme</a> ## Authors **[Haskasu](/profile/Haskasu)**
Server
Haskasu
visibility
code
OPEN
info_outline
# SpaceShooter_zh 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.SpaceShooter_zh/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 作者 **[gamelet.tutor](/profile/112731664099129893666@google)**
太空戰機(教學用)
gamelet.tutor
visibility
code
OPEN
info_outline
# SpaceShooter_en One Paragraph of the game description goes here ## Getting Started <a href="cg://source/CG.SpaceShooter_en/game.events" class="mat-raised-button mat-primary">Edit Game Events Sheet</a> ## Authors **[gamelet.tutor](/profile/112731664099129893666@google)**
SpaceShooter_en
gamelet.tutor
visibility
code
OPEN
info_outline
# TW_Starter 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.TW_Starter/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 作者 **[Haskasu](/profile/113321052805704333314@google)**
TW_Starter
Haskasu
visibility
code
OPEN
info_outline
# TwilightWarsEvents 使用光暈戰記的遊戲引擎 + 同人陣的任務制作 = TwilightWarsEvents ## Getting Started ```typescript // app.ts export class App { constructor() { CG.TwilightWarsLib.initialize() .then(() => { CG.TwilightWarsLib.events.startEvents('CG.projectCode/your_mission.events') }); } } export const APP = new App(); ``` ## Authors **[Haskasu](/profile/Haskasu)**
TwilightWarsEvents
Haskasu
visibility
code
OPEN
info_outline
# Tut_Trigono 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)**
Tut_Trigono
Haskasu
visibility
code
OPEN
info_outline
# TutSpaceShooterBasic 在這兒寫下一段簡短的文字介紹你的遊戲吧。 ## 開始設計 <a href="cg://source/CG.TutSpaceShooterBasic/game.events" class="mat-raised-button mat-primary">編輯遊戲事件表</a> ## 完整的遊戲專案在此 https://code.gamelet.com/edit/Tut_SpaceShooter ## 作者 **[Haskasu](/profile/113321052805704333314@google)**
TutSpaceShooterBasic
Haskasu
visibility
code
OPEN
info_outline
# PlayGifTest 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)**
PlayGifTest
Haskasu
MORE RESULTS
ⒸCode.Gamelet.com |
Privacy Policy
|
Terms of Service