Skip to content

Commit

Permalink
Created 1-1; Maked a Custom HUD (W.I.P)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkullGamer205 committed May 23, 2023
1 parent 38b96ff commit 805fd2e
Show file tree
Hide file tree
Showing 78 changed files with 985 additions and 23 deletions.
694 changes: 672 additions & 22 deletions 1-1.lvlx

Large diffs are not rendered by default.

26 changes: 25 additions & 1 deletion 1-1/SMW- Overworld.tileset.ini
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ id=616
[item-5-2]
id=304

[item-5-3]
id=571

[item-5-4]
id=21

[item-6-0]
id=301

Expand All @@ -91,8 +97,26 @@ id=617
[item-6-2]
id=303

[item-6-3]
id=23

[item-6-4]
id=115

[item-7-0]
id=4

[item-7-1]
id=88

[item-7-2]
id=89

[item-7-3]
id=90

[tileset]
cols=7
cols=8
name=SMW- Overworld
rows=5
type=0
2 changes: 2 additions & 0 deletions 1-1/lunaworld.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#0
$Timer,SetVar,1,1,300,-1,5,0
Binary file added Container0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Container1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Container2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
185 changes: 185 additions & 0 deletions SMW Cave, Ghosthouse, Castle A.tileset.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
[tileset]
rows=6
cols=10
name="Cave, Ghosthouse, Castle A"
type=0

[item-9-3]
id=613

[item-6-3]
id=528

[item-7-3]
id=523

[item-6-2]
id=488

[item-7-2]
id=489

[item-6-0]
id=452

[item-7-0]
id=451

[item-7-1]
id=449

[item-6-1]
id=450

[item-8-1]
id=453

[item-9-1]
id=456

[item-8-2]
id=454

[item-9-2]
id=455

[item-2-0]
id=426

[item-0-2]
id=427

[item-0-0]
id=425

[item-0-1]
id=423

[item-1-1]
id=422

[item-2-1]
id=421

[item-1-2]
id=419

[item-1-0]
id=424

[item-5-1]
id=415

[item-5-0]
id=417

[item-4-0]
id=418

[item-4-1]
id=416

[item-6-5]
id=538

[item-7-5]
id=539

[item-9-5]
id=411

[item-8-5]
id=412

[item-1-3]
id=413

[item-2-3]
id=432

[item-0-3]
id=433

[item-3-0]
id=434

[item-3-2]
id=435

[item-2-2]
id=436

[item-9-0]
id=301

[item-8-0]
id=302

[item-8-3]
id=78

[item-3-1]
id=584

[item-4-3]
id=540

[item-4-2]
id=541

[item-6-4]
id=635

[item-8-4]
id=636

[item-7-4]
id=637

[item-9-4]
id=638

[item-5-2]
id=575

[item-5-3]
id=568

[item-4-5]
id=414

[item-5-5]
id=410

[item-0-5]
id=532

[item-3-4]
id=533

[item-0-4]
id=512

[item-1-4]
id=515

[item-2-4]
id=513

[item-1-5]
id=517

[item-3-5]
id=518

[item-2-5]
id=514

[item-4-4]
id=187

[item-5-4]
id=262

[item-3-3]
id=530
Binary file added block-187.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-262.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-301.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-302.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-410.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-411.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-412.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-413.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-414.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-415.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-416.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-418.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-419.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-421.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-422.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-423.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-424.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-425.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-426.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-427.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-432.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added block-433.png
Binary file added block-434.png
Binary file added block-435.png
Binary file added block-436.png
Binary file added block-449.png
Binary file added block-450.png
Binary file added block-451.png
Binary file added block-452.png
Binary file added block-453.png
Binary file added block-454.png
Binary file added block-455.png
Binary file added block-456.png
Binary file added block-488.png
Binary file added block-489.png
Binary file added block-512.png
Binary file added block-513.png
Binary file added block-514.png
Binary file added block-515.png
Binary file added block-517.png
Binary file added block-518.png
Binary file added block-523.png
Binary file added block-528.png
Binary file added block-530.png
Binary file added block-532.png
Binary file added block-533.png
Binary file added block-538.png
Binary file added block-539.png
Binary file added block-540.png
Binary file added block-541.png
Binary file added block-568.png
File renamed without changes
Binary file added block-575.png
Binary file added block-584.png
Binary file added block-613.png
Binary file added block-635.png
Binary file added block-636.png
Binary file added block-637.png
Binary file added block-638.png
Binary file added block-78.png
Binary file added coin.png
Binary file added cross.png
Binary file added dragon-coin-mask.png
Binary file added dragon-coin.png
Binary file added line.png
Binary file added luigi-mask.png
101 changes: 101 additions & 0 deletions lunaworld.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
//DragonCoins

OnEvent,0,0,1,1002,0,DragonCoin1
OnEvent,0,0,1,1003,0,DragonCoin2
OnEvent,0,0,1,1004,0,DragonCoin3
OnEvent,0,0,1,1005,0,DragonCoin4
OnEvent,0,0,1,1006,0,DragonCoin5
OnEvent,0,0,1,1007,0,StarCollected
OnEvent,0,0,0,1012,0,Timer - Start //Включает таймер (См.#1010)
OnEvent,0,0,0,1011,0,Timer - Pause //Приостанавливает таймер (См.#1011)
OnEvent,0,0,0,1016,0,Timer - Stop //Останавлиает таймер [ZA WARUDO] (См.1016)
OnEvent,0,0,0,1017,0,Timer - Points //Превращает время в очки

#-1

//Draw Pictures in Screen (CUSTOM HUD)

LoadImage,1,0xDC00FF,0,0,0,mario-mask.png
LoadImage,2,0xDC00FF,0,0,0,luigi-mask.png
LoadImage,3,0xDC00FF,0,0,0,cross.png
LoadImage,4,0xDC00FF,0,0,0,time.png
LoadImage,5,0xDC00FF,0,0,0,coin.png
LoadImage,6,0xDC00FF,0,0,0,star.png
LoadImage,7,0xDC00FF,0,0,0,line.png
LoadImage,8,0xDC00FF,0,0,0,dragon-coin.png
LoadImage,9,0xDC00FF,0,0,0,dragon-coin-mask.png

//Place Pictures (CUSTOM HUD)

//PlaceSprite,1,#,X,Y,0,0
PlaceSprite,1,4,88,120
PlaceSprite,1,5,142,64,0,0
PlaceSprite,1,6,226,64
PlaceSprite,1,7,64,104

//Pull out the values of coins, lives, points from the game. (CUSTOM HUD)

$CurrentCoins,SetVar,1,0,0,-1,1,0
$CurrentLifes,SetVar,1,0,0,-1,2,0
$CurrentPoint,SetVar,1,0,0,-1,4,0
$CurrentStars,SetVar,1,0,0,-1,3,0
$Timer,SetVar,1,1,0,-1,5,0
$TimerState,SetVar,1,0,0,-1,6,0

#0
LunaControl,2,1,0,0,0,0
//Assign values to coins, lives and points. (CUSTOM HUD)

$CurrentCoins,LoadGlobalVar,0x00B2C5A8,0,0,0,0,w
$CurrentLifes,LoadGlobalVar,0x00B2C5AC,0,0,0,0,f
$CurrentPoint,LoadGlobalVar,0x00B2C8E4,0,0,0,0,f
$CurrentStars,LoadGlobalVar,0x00B251E0,0,0,0,0,f

Timer,0,1010,0,0,1,0

//Show (or paste) Custom variables (for HUD)
$CurrentCoins,ShowVar,0,176,88,1,0,
$CurrentLifes,ShowVar,0,104,88,1,0,
$CurrentPoint,ShowVar,0,176,120,1,0,
$CurrentStars,ShowVar,0,266,88,1,0,
$Timer,ShowVar,0,104,120,1,0

//Display "PLAYER_NAME" (For HUD)
OnPlayerMem,0xF0,1,0,1008,w
OnPlayerMem,0xF0,2,0,1009,w
#END
#1008 //"Player Name"
PlaceSprite,1,1,64,64,2,0
#1009
PlaceSprite,1,2,64,64,2,0
#END

//Custom Timer
#1010
Timer,0,1010,0,0,44,1
IfVar,0,0,1,1013,1,TimerState
#1011
$TimerState,SetVar,1,0,0,-1,1,0
#1012
$TimerState,SetVar,1,0,1,-1,1,0
#1013 (Использует встроенный таймер, который триггерит #1011) (Выполняется каждый раз, когда зовут)
Timer,0,1014,0,0,1,1
IfVar,0,2,1,1015,1,Timer
#1014 (С каждой прошедшей командой, отнимается значение таймера на 1 и посылает сигнал в #1010)
$Timer,SetVar,1,2,1,-1,1,0
#1015
Kill,0,0,0,0,1,0
Trigger,0,1016,0,0,1,0
$Timer,SetVar,1,0,0,-1,1,0
#1016
$TimerState,SetVar,1,0,0,-1,1,0
DeleteEventsFrom,1013,0,0,0,1,0
DeleteEventsFrom,1014,0,0,0,1,0
DeleteEventsFrom,1015,0,0,0,1,0
#1017
IfVar,0,1,0,1018,1,Timer
#1018
$Timer,SetVar,1,2,1,-1,1,0
MemAssign,0x00B2C8E4,100,1,0,1,f
Trigger,0,1017,0,0,0,0
#END
Binary file added mario-mask.png
Binary file added star.png
Binary file added time.png

0 comments on commit 805fd2e

Please sign in to comment.