• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:56
CEST 16:56
KST 23:56
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL20] Finals Preview: Arrival4TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9
Community News
Chinese SC2 server to reopen; live all-star event in Hangzhou21Weekly Cups (Oct 13-19): Clem Goes for Four3BSL Team A vs Koreans - Sat-Sun 16:00 CET10Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)81
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Chinese SC2 server to reopen; live all-star event in Hangzhou The New Patch Killed Mech! Weekly Cups (Oct 13-19): Clem Goes for Four 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
Merivale 8 Open - LAN - Stellar Fest Tenacious Turtle Tussle RSL Season 3 Qualifier Links and Dates $1,200 WardiTV October (Oct 21st-31st) SC2's Safe House 2 - October 18 & 19
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers
Brood War
General
BSL Team A vs Koreans - Sat-Sun 16:00 CET [ASL20] Finals Preview: Arrival Is there anyway to get a private coach? OGN to release AI-upscaled StarLeague from Feb 24 BW General Discussion
Tourneys
[ASL20] Grand Finals ASL final tickets help Small VOD Thread 2.0 [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Roaring Currents ASL final Relatively freeroll strategies BW - ajfirecracker Strategy & Training
Other Games
General Games
Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread Dawn of War IV ZeroSpace Megathread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread The Chess Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Korean Music Discussion Series you have seen recently... Movie Discussion!
Sports
MLB/Baseball 2023 2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
The Benefits Of Limited Comm…
TrAiDoS
Sabrina was soooo lame on S…
Peanutsc
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1711 users

Student Game Dev Part Eight - UI and the Editor

Blogs > Soan
Post a Reply
Soan
Profile Blog Joined August 2010
New Zealand194 Posts
January 17 2014 01:36 GMT
#1
+ Show Spoiler [Previous parts] +
Part One - It begins
Part Two - Technical Foundation
Part Three - Game Design
Part Four - Input and Physics
Part Five - More Physics Things
Part Six - Even More Physics
Part Seven - User Interface


This Week
Hello again TeamLiquid!

Welcome back to my blog about the development of The Adventures of Sam the Pirate, the 2D platformer I'm creating as the final game project for my Bachelor of Software Engineering degree. Last week I covered some of the User Interface work that I've done, and showed off a new piece of concept art. No new concept art this week, but I'll be going over the continued work on the user interface, and the start of work on the editor.

User Interface
As mentioned last week, the layout and other information for a specific interface layout is stored in a file. When I want to use a specific interface for a screen, such as a menu screen, the file is simply loaded, the UI system creates everything needed, and then it can be rendered over the top of everything else. Absolutely everything to do with the layout is stored. The number of UI elements like buttons and static images, the art used for each, their positions, their height and width, etc, everything needed to allow my UI system to create an interface that can be displayed.

As I mentioned in last weeks blog, I wasn't too sure how to give each button unique functionality without creating a different class for each button, which is inefficient and doesn't fit with my design goals of making things as generic and reusable as possible. I ended up doing what I talked about last week, using lua in a similar manner to how I used it in my debug console, which I talked about in a previous blog.

I could have also used the observer pattern, (where observers register with a button and can implement an OnClicked function or something similar, that is called anytime the button is clicked), but I'd totally forgotten about it, despite using it elsewhere and having seen it used in this manner before. Even if I had remembered, I'm not entirely sure I would have used it over the approach I have taken. While it would work, and both methods feel like they have about the same amount of work in them, I still prefer the lua method as it generally seems to fit with what I'm wanting to do. With the observer pattern, everything is done in code, but some changes would require a recompile of the project. With lua, I can change more things, like adding/removing UI elements, without having to recompile the code. It also feels like it would be easier to bring this code over to a new project and use it the system straight away.

With all the details for a layout being stored in a file, it is a bit of extra work in filling out all the details manually, and trying to manually position UI elements correctly, but as I was planning on creating a level editor, I've decided to simply expand the level editor by giving it the ability to edit interface layouts visually. More work now to save work later. This would also open up the possibility of giving the editor to an artist, so they can ensure that any UI art they have done is all positioned correctly and looking good.

Editor
Started work on my editor this week. As mentioned, initially it was just going to be a level editor, but with my work on the user interface stuff I've decided to add interface layout editing functionality, turning it into more of a generic editor to go with my framework.

I'm creating the level editor part first, as it will allow me to quickly create/edit levels visually, rather than trying to do them by hand, which is super important for saving time later. So far I've got a grid the size of the level being rendered, and you can scroll around it without going over the edges. This scrolling is done by holding the right mouse button down and moving the mouse around, but I'll probably look at adding scrolling by simply moving the mouse to the edges of the screen as well. I've also thought about adding a minimap, but that's pretty low priority at the moment.

The current plan is for a right click to bring up a menu, allowing me to change what tool I'm using, what tileset is being used for the art, etc. Tiles and other level elements like the player start position, enemy start positions etc is done with a left click. Hitting the Escape key would bring up a menu allowing me to save, load, switch editors, etc. A lot of this stuff would also likely be keybound, so I wouldn't necessarily have to open menus all the time. To make things a bit easier, I won't have to select the right tile piece, such as a corner for a corner, and simply be able to "paint" where I want platforms to be. To make sure the right tiles are selected for each square, I'll have an algorithm detecting the surrounding tiles and selecting the right piece of art. I'm not entirely sure this description will make sense to you, so once I have it all figured out I'll go over it in a future blog, with pictures!

Unfortunately for you, the reader, I'm not planning a public release of the editor at this time, so making the editor easy to use for someone who isn't me is not a big deal right now. I would like to potentially release it and allow for easy sharing of levels through something like the Steam workshop, or setup my own server for this, but there most definitely isn't time to do this right now. I'll have to see how things go after release and after I graduate.

What's next?
I'll continue working on the editor over the next week, the next step is to get tools working, and start being able to place tiles. This will include working on the algorithm to make sure that the right art pieces are selected for the correct tiles.

I should look at documenting what functions are available to Lua, as well as what they do, what their parameters are etc. Should also look at adding some more commands to the debug console, as I've been a bit slack and haven't added any since it was created.

I'd like to start showing off some screenshots, and soon video of the current state of the game as well, but unfortunately I'm a bit embarrassed about the art situation at the moment haha. Tiles and the main character are just white boxes with some text on them at the moment, so there isn't much to show off! Once I start to get more art and things start to take shape, keep an eye out for screenshots/videos!

Keep up to date!
Be sure to follow me on Twitter, and like the Facebook page to stay up to date on future content and blog posts when they happen. If you have any questions don't hesitate to ask, either through Twitter or Facebook!

0x64
Profile Blog Joined September 2002
Finland4576 Posts
January 17 2014 02:45 GMT
#2
You shouldn't probably do your own editor.
Just use http://www.mapeditor.org/ or something and put your focus on your game, not on tools that already exists.
Dump of assembler code from 0xffffffec to 0x64: End of assembler dump.
Soan
Profile Blog Joined August 2010
New Zealand194 Posts
January 17 2014 22:44 GMT
#3
I've got a few reasons for making my own.

1. We've got a development based capstone coming up, where we'll be required to make a tool or something of some sort. I figured an editor of some sort that I can use on my game would be where I'd best spend my time for that. We actually should've gotten the brief for this last week, but nothing yet. :/

2. It allows me to keep all the level formats and everything as I want, without having to learn, or possibly work around something else.

3. As a student, it's something I can put on my portfolio, on top of the game. Which I'm confident will be completed in some form.

4. I like the challenge!
0x64
Profile Blog Joined September 2002
Finland4576 Posts
January 18 2014 02:12 GMT
#4
While all your points are valid. My intuition tells me you are making a mistake.

The strongest point is 1.
but this Tiled map editor is open source, meaning that you could quickly edit it to support features customized for your game.

2. is lazy. You can check the format out in 20 min and decide if there is something wrong with it.

3. True, but now you end up rushing your editor, because you need it for your game. Focus 100% on your game, and the result should be better for your portfolio.

4. If you like the challenge, then take challenge as presented with 2.


I am playing a bit the devil's advocate as I do not think you are wrong in any way, just want you to have the argument for doing the opposite of what you are doing.

Anyway, best of luck with your project!
Dump of assembler code from 0xffffffec to 0x64: End of assembler dump.
Soan
Profile Blog Joined August 2010
New Zealand194 Posts
January 19 2014 19:04 GMT
#5
On January 18 2014 11:12 0x64 wrote:
I am playing a bit the devil's advocate as I do not think you are wrong in any way, just want you to have the argument for doing the opposite of what you are doing.


Yeah no worries, I've always felt it's good to have someone do exactly that, so thanks!
Please log in or register to reply.
Live Events Refresh
WardiTV Invitational
11:00
Group B
WardiTV1192
TKL 312
IndyStarCraft 224
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 312
IndyStarCraft 224
Rex 123
Railgan 27
trigger 1
StarCraft: Brood War
Britney 71948
Stork 392
ZZZero.O 154
Hyun 137
ggaemo 102
Backho 74
JYJ56
zelot 48
JulyZerg 47
Aegong 41
[ Show more ]
Bonyth 40
scan(afreeca) 35
ToSsGirL 28
Rock 26
SilentControl 9
Dota 2
Gorgc7531
syndereN332
Fuzer 213
Counter-Strike
pashabiceps659
ScreaM515
Super Smash Bros
Mew2King100
Heroes of the Storm
Khaldor413
Liquid`Hasu343
Other Games
singsing2319
B2W.Neo586
KnowMe471
Lowko291
Sick252
Hui .221
XcaliburYe153
Trikslyr30
Organizations
StarCraft: Brood War
CasterMuse 9
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• OhrlRock 1
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV634
• Ler90
Upcoming Events
OSC
4m
SKillous vs goblin
Spirit vs GgMaChine
ByuN vs MaxPax
Afreeca Starleague
17h 4m
Snow vs Soma
Sparkling Tuna Cup
19h 4m
WardiTV Invitational
21h 4m
CrankTV Team League
22h 4m
BASILISK vs Streamerzone
Team Liquid vs Shopify Rebellion
Team Vitality vs Team Falcon
BSL Team A[vengers]
1d
Gypsy vs nOOB
JDConan vs Scan
RSL Revival
1d 2h
Wardi Open
1d 21h
CrankTV Team League
1d 22h
Replay Cast
2 days
[ Show More ]
WardiTV Invitational
2 days
CrankTV Team League
2 days
Replay Cast
3 days
CrankTV Team League
3 days
Replay Cast
4 days
The PondCast
4 days
CrankTV Team League
4 days
Replay Cast
5 days
WardiTV Invitational
5 days
CrankTV Team League
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.