• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:05
CEST 07:05
KST 14:05
  • 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] Ro16 Preview Pt1: Ascent8Maestros of the Game: Week 1/Play-in Preview12[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4
Community News
LiuLi Cup - September 2025 Tournaments2Weekly Cups (August 25-31): Clem's Last Straw?39Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris64Weekly Cups (Aug 11-17): MaxPax triples again!15
StarCraft 2
General
Production Quality - Maestros of the Game Vs RSL 2 #1: Maru - Greatest Players of All Time Team Liquid Map Contest #21 - Presented by Monster Energy Geoff 'iNcontroL' Robinson has passed away Heaven's Balance Suggestions (roast me)
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris Sparkling Tuna Cup - Weekly Open Tournament RSL: Revival, a new crowdfunded tournament series Chzzk MurlocKing SC1 vs SC2 Cup Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
External Content
Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast
Brood War
General
ASL20 General Discussion BSL Polish World Championship 2025 20-21 September [ASL20] Ro16 Preview Pt1: Ascent BGH Auto Balance -> http://bghmmr.eu/ The Korean Terminology Thread
Tourneys
[ASL20] Ro16 Group A [IPSL] ISPL Season 1 Winter Qualis and Info! [Megathread] Daily Proleagues Is there English video for group selection for ASL
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread Path of Exile Warcraft III: The Frozen Throne
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine UK Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion MLB/Baseball 2023 2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Collective Intelligence: Tea…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1147 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
Finland4567 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
Finland4567 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
Next event in 4h 55m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft624
Nina 130
NeuroSwarm 114
ProTech73
StarCraft: Brood War
sSak 268
Bale 79
Icarus 12
Movie 11
yabsab 7
Dota 2
LuMiX1
League of Legends
JimRising 740
Counter-Strike
Stewie2K838
semphis_59
Super Smash Bros
Mew2King81
Other Games
summit1g8455
shahzam902
C9.Mang0393
Maynarde146
Organizations
Other Games
gamesdonequick1322
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• davetesta45
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Diggity5
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1808
Upcoming Events
Sparkling Tuna Cup
4h 55m
Afreeca Starleague
4h 55m
Soulkey vs Barracks
EffOrt vs Rush
Monday Night Weeklies
10h 55m
Afreeca Starleague
1d 4h
BeSt vs Alone
Queen vs Bisu
The PondCast
3 days
RSL Revival
3 days
Cure vs SHIN
Reynor vs Zoun
RSL Revival
4 days
Classic vs TriGGeR
ByuN vs Maru
Online Event
4 days
BSL Team Wars
4 days
Team Bonyth vs Team Dewalt
BSL Team Wars
4 days
[ Show More ]
RSL Revival
5 days
Maestros of the Game
5 days
Cosmonarchy
5 days
Bonyth vs Dewalt
[BSL 2025] Weekly
5 days
RSL Revival
6 days
Maestros of the Game
6 days
BSL Team Wars
6 days
Liquipedia Results

Completed

Copa Latinoamericana 4
SEL Season 2 Championship
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21: BSL Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
Chzzk MurlocKing SC1 vs SC2 Cup #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL Polish World Championship 2025
BSL Season 21
BSL 21 Team A
EC S1
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
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.