Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
69a7aaf
feat: add run.sh and run.bat with interactive npm script menu
0x0607 Jul 23, 2025
87f2bc2
Added more math functions and $getAngle
notjc821 Jul 24, 2025
39c4260
Merge branch 'yomugames:master' into master
notjc821 Jul 26, 2025
c818607
Traditional Chinese translation
notjc821 Jul 27, 2025
de5c4fd
Merge branch 'master' of https://github.com/notjc821/junon
notjc821 Jul 27, 2025
997b97e
Added "raid" flag in /spawnmob
notjc821 Jul 27, 2025
b2034b2
removed undone
notjc821 Jul 29, 2025
ad7a51a
Improved $getBuildingType()
notjc821 Jul 29, 2025
ee678d8
Be able to directly toggle the modes on or off
notjc821 Aug 1, 2025
409223c
improved spectate.js
notjc821 Aug 1, 2025
c6da7d2
improved the "raid" flag i added in /spawnmob and fixed original raid…
notjc821 Aug 1, 2025
d323eb1
found a bug in /spawnmob raid flag and fixed
notjc821 Aug 1, 2025
9c38536
improved raid flag agian...
notjc821 Aug 1, 2025
7cebf2b
Merge branch 'master' into master
notjc821 Aug 3, 2025
fc7a94f
merging
notjc821 Aug 3, 2025
935a44f
Added my $getAngle back
notjc821 Aug 3, 2025
6b1b436
Revert "Added my $getAngle back"
notjc821 Aug 3, 2025
a1192f7
Merge branch 'master' of https://github.com/notjc821/junon
notjc821 Aug 3, 2025
3590dea
added my $getAngle back again...
notjc821 Aug 3, 2025
1d6e669
added "owner" flag in /projectile
notjc821 Aug 3, 2025
525be1b
removed isCollidable() in some .js cause mobs can damage them now, so…
notjc821 Aug 3, 2025
ee8c23f
make melee mobs can damage walls/ custom damage for guards and pirate…
notjc821 Aug 3, 2025
ddd2d07
fix the bug that some range mobs can't damage walls
notjc821 Aug 4, 2025
5f060e6
fixed the bug that attackerId works incorrectly
notjc821 Aug 4, 2025
e5c0b9e
small change
notjc821 Aug 5, 2025
8108ec7
(Maybe) fixed the bug that when players join sector and only see sky …
notjc821 Aug 5, 2025
24ce047
$getEntityType
notjc821 Aug 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 38 additions & 2 deletions packages/junon-io/client/main.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
<option value='en'>English</option>
<option value='ru'>Русский</option>
<option value='ja'>日本語</option>
<option value='zh-Hant'>繁體中文</option>
</select>
</div>

Expand Down Expand Up @@ -973,6 +974,36 @@
<td>value1, value2, ... , valueN</td>
<td>Returns the smallest value among the given arguments. Ex. $min(1,2,3,4,5) = 1</td>
</tr>
<tr>
<td class='function_name'>$sin</td>
<td>degrees</td>
<td>Calculates the sine of an angle in degrees. Ex. $sin(30) = 0.5</td>
</tr>
<tr>
<td class='function_name'>$cos</td>
<td>degrees</td>
<td>Calculates the cosine of an angle in degrees. Ex. $cos(0) = 1</td>
</tr>
<tr>
<td class='function_name'>$tan</td>
<td>degrees</td>
<td>Calculates the tangent of an angle in degrees. Ex. $tan(45) = 1</td>
</tr>
<tr>
<td class='function_name'>$asin</td>
<td>value (-1 ~ 1)</td>
<td>Calculates the arc sine in degrees. Ex. $asin(0.5) = 30</td>
</tr>
<tr>
<td class='function_name'>$acos</td>
<td>value (-1 ~ 1)</td>
<td>Calculates the arc cosine in degrees</td>
</tr>
<tr>
<td class='function_name'>$atan</td>
<td>value</td>
<td>Calculates the arc tangent in degrees.</td>
</tr>
<tr>
<td class='function_name'>$isLoggedIn</td>
<td>$player</td>
Expand All @@ -983,6 +1014,11 @@
<td>$entityId</td>
<td>the type name of a building or entity. Ex. /chat @a The building type of entity number 2017 is $getBuildingType(2017)</td>
</tr>
<tr>
<td class='function_name'>$getEntityType</td>
<td>$entityId</td>
<td>the type name of a building or entity. Ex. /chat @a The entity type of entity number 2017 is $getEntityType(2017)</td>
</tr>
<tr>
<td class='function_name'>$getDay</td>
<td>None</td>
Expand Down Expand Up @@ -1020,8 +1056,8 @@
</tr>
<tr>
<td class='function_name'>$getAngle</td>
<td>$player</td>
<td>Returns the angle of the specified player. Ex. /chat @a $getAngle($player)</td>
<td>$entityId</td>
<td>Gets the current facing angle of an entity in degrees.</td>
</tr>
</table>
</div>
Expand Down
3 changes: 3 additions & 0 deletions packages/junon-io/client/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Polyglot = require('node-polyglot')
const japaneseTranslationMap = require("../../common/translations/ja")
const englishTranslationMap = require("../../common/translations/en")
const russianTranslationMap = require("../../common/translations/ru")
const trationalChineseTranslationMap = require("../../common/translations/zh-Hant")
const ObjectPool = require("../../common/entities/object_pool")
const TeamEntry = require("./components/team_entry")
const Lighting = require("./entities/lighting")
Expand Down Expand Up @@ -141,6 +142,8 @@ class Main {
phrases = Object.assign({}, phrases, japaneseTranslationMap)
} else if (language === "ru") {
phrases = Object.assign({}, phrases, russianTranslationMap)
} else if (language === "zh-Hant") {
phrases = Object.assign({}, phrases, trationalChineseTranslationMap)
}
}

Expand Down
9 changes: 9 additions & 0 deletions packages/junon-io/common/constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@
"gold": 2000
},
"isBuildingDestroyer": true,
"canDamageWalls": true,
"attackGroups": ["players", "buildings", "mobs"],
"drop": ["Web"],
"resistance": ["fire"],
Expand Down Expand Up @@ -1044,6 +1045,8 @@
"cost": {
"gold": 500
},
"isBuildingDestroyer": true,
"canDamageWalls": true,
"attackGroups": ["players", "buildings", "mobs", "distributions"],
"sprite": {
"width": 40,
Expand Down Expand Up @@ -1121,6 +1124,8 @@
},
"Sapper": {
"parent": "Mobs.Guard",
"resistance": ["fire"],
"immunity": ["poison"],
"sprite": {
"width": 60,
"height": 181
Expand All @@ -1143,6 +1148,8 @@
"cost": {
"gold": 2500
},
"isBuildingDestroyer": true,
"canDamageWalls": true,
"attackGroups": ["players", "buildings", "mobs"],
"sprite": {
"width": 50,
Expand All @@ -1168,6 +1175,8 @@
"Firebat": {
"parent": "Mobs.BaseMob",
"hasBlood": true,
"isBuildingDestroyer": true,
"canDamageWalls": true,
"drop": ["Flamethrower"],
"resistance": ["fire"],
"immunity": ["poison"],
Expand Down
Loading