• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:44
CEST 12:44
KST 19:44
  • 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
Code S Season 2 - RO4 & Finals Results (2025)8Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy4Code S RO8 Preview: herO, Zoun, Bunny, Classic7Code S RO8 Preview: Rogue, GuMiho, Solar, Maru3
Community News
Weekly Cups (June 9-15): herO doubles on GSL week0Firefly suspended by EWC, replaced by Lancer12Classic & herO RO8 Interviews: "I think it’s time to teach [Rogue] a lesson."2Rogue & GuMiho RO8 interviews: "Lifting that trophy would be a testament to all I’ve had to overcome over the years and how far I’ve come on this journey.8Code S RO8 Results + RO4 Bracket (2025 Season 2)14
StarCraft 2
General
Code S Season 2 - RO4 & Finals Results (2025) Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game Rain's Behind the Scenes Storytime Firefly suspended by EWC, replaced by Lancer How herO can make history in the Code S S2 finals
Tourneys
RSL: Revival, a new crowdfunded tournament series SOOP Starcraft Global #22 $3,500 WardiTV European League 2025 [GSL 2025] Code S: Season 2 - Semi Finals & Finals WardiTV Mondays
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers [G] Darkgrid Layout
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 478 Instant Karma Mutation # 477 Slow and Steady Mutation # 476 Charnel House Mutation # 475 Hard Target
Brood War
General
ASL20 Preliminary Maps BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Recent recommended BW games FlaSh Witnesses SCV Pull Off the Impossible vs Shu
Tourneys
[BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET [BSL20] ProLeague Bracket Stage - WB Finals & LBR3 [Megathread] Daily Proleagues [BSL 2v2] ProLeague Season 3 - Friday 21:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Beyond All Reason What do you want from future RTS games?
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
Vanilla Mini Mafia TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine UK Politics Mega-thread US Politics Mega-thread Russo-Ukrainian War Thread Echoes of Revolution and Separation
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Korean Music Discussion [Manga] One Piece
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
A Better Routine For Progame…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 31845 users

Student Game Dev Part Nine - Editor progress.

Blogs > Soan
Post a Reply
Soan
Profile Blog Joined August 2010
New Zealand194 Posts
January 24 2014 01:55 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
Part Eight - UI and the Editor


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 the work I'd done on the UI system, and the start of the editor. This week I'll be talking about the success with the editor so far, the performance problems I've run into and mostly fixed, some concerns I have for the future, and where I'm headed next.

Editor
The editor is in a position now where I can create and save levels that are filled with fixed platforms. Pretty pleased with how it works, I can hold down the left mouse button and essentially paint out some platforms, then release the mouse button to stop, and start painting somewhere else. I also have an algorithm in place that updates the art for each tile based on the tiles around it in real time. For this to work, each tile knows about all the tiles around it. Whenever a new tile is placed, each of the grid squares around that tile are checked for existing tiles. If an existing tile is placed, it is linked to the new tile, and the new tile updates what art it should be using. The new tile is then linked to that existing one, and the existing one updates its art.

So for example, I place Tile A, by itself, so it uses a piece of art with an edge on all sides. I then place Tile B to the left of it. Tile B discovers that Tile A is to the right, and so updates its art to use a piece with an edge on the top, bottom, and the left side, leaving the right side open. Tile A is informed about Tile B, and updates its art to a piece with an edge on the top, bottom, and right side, leaving the left side open. The two pieces are now connected, and display as a single piece. A video showing this off should be coming some time in the near future, as showing is probably easier than explaining!

All of this meant I was able to lay out what I currently have planned for the first level, and successfully loaded it into the game! I felt really good once I had this, as it felt like a really big step for the game. I still feel pretty good about it, and where I am with the game overall.

Scrolling
Once I had a full level loaded into the game, I had to get the side scrolling working, as up until this point it wasn't needed, and you could simply move off the edge of the screen and disappear. It was relatively easy to do and didn't pose any problems, which was nice. There is a camera that's based on the player position, and just follows you around. When you hit the edge of a level, it stops. The player is also prevented from moving past this point. The player is also blocked from moving past the height of the level, although I did think about allowing this, to potentially allow players to just go over the top of everything and get through the level faster. I'm going to think about this some more and see how other levels play out, although I think I might end up changing my mind and allowing it.

I have noticed some vertical jittering once the camera starts to move up the screen, the player doesn't appear to move, but everything else appears to very quickly move up and down in small increments. Given that the camera is based on the players position, I'm assuming that it's the player actually doing the jittering. It also doesn't appear to happen while the player is in the air, so I'm think it's probably got to do with the collision detection and reaction to the player standing on a platform. Gravity is still being applied, so the player is probably being pushed down into the platform, and then back up in the collision reaction. I'll be investigating and confirming whether or not this is it next week, and then fixing it.

Problems, and the Future
I ran into a performance issue with rendering and processing so many tiles this week. I did kind of expect it occur though, as I was lazy and wasn't checking whether an object was actually visible on the screen before it was processed or rendered. Once I actually started doing this performance was much better. The number of physics actors I have, that are all being processed when they're visible on the screen, will also be giving me a performance hit, as each tile is its own physics actor. Ideally, rather than having every individual tile be its own rectangular physics actor, I'd be linking tiles that are next to each other to create a single polygon. Individual rectangles is certainly easier, as it allows me to take advantage of SDLs built in rectangle functions, but is giving me an obvious performance hit. Changing it would require a rewrite of the collision detection, as that is based around rectangles, but I'm not sure I'll have time.

Performance of the release build, and the debug build with no debug text is still perfectly fine, but the hit that I've taken since adding so many more tiles has me slightly concerned for the future. The release build used to run at over 4000 FPS, now it runs at around 1000 or less. In debug, without debug text it's sitting around 200-300, with debug text we're around 50. What will happen when I add enemies, coins, background art, get parallax working, etc. Will it still be fine? The machine I'm working on is fairly high end, how will it run on lesser machines? Is it going to get rather difficult to play with debug text on once everything else is added? These are the kinds of questions I'm wondering about for the future, that I won't really know the answer to until I get there.

This problem isn't entirely unexpected, as I did wonder if I would run into it down the line, given that I'm using SDLs built in 2D renderer, rather than OpenGL or DirectX. The code is set up in such a way that I should be able to swap out the rendering code for something using OpenGL and have everything still work as expected. I'm going to continue with what I have at the moment, and see how things go once the game is closer to being finished.

Because of this, I don't think it'll be ready for a commercial release when I finish. Depending on where it's at, I think I will need to change the rendering in order to accomplish a product that can smoothly run on as many machines as possible. This isn't really that disappointing, as I know that having a commercially ready product is a pretty ambitious goal for one programmer. Maybe I'll look at doing a small Kickstarter campaign, or be lucky enough to find a publisher willing to fund me for the rest. Who knows!? I'll see where things stand in a few months.

Regardless of these problems, I still feel like I’ve made pretty good progress this week.

What's next?
The last alpha milestone is due in a couple of weeks, so in that time I'll be working on perfecting/fixing the physics and movement, trying to remove things like the aforementioned jittering and making sure the player character moves around appropriately. I still need to add more debug console commands and document them as well, I've been a bit slack on that and still haven't done it. Having those extra debug commands will be useful, and it will give the tutors something extra to play around with I hand in the milestone.

I also want to look at doing a couple videos showing off what I have so far, both in the editor and the game. I have Fraps, but I don't know what good and free video editing software exists, so if you know what's good and free to use, let me know if any of you guys know one please.

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!

*
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
January 24 2014 02:08 GMT
#2
Editor blog and no screenshot!?
BisuDagger
Profile Blog Joined October 2009
Bisutopia19225 Posts
January 24 2014 16:29 GMT
#3
I think you'll enjoy this. It's my blogs about making my first video game. Keep up the hard work.

Parts 1-3:
http://www.teamliquid.net/forum/viewmessage.php?topic_id=189098
http://www.teamliquid.net/forum/viewmessage.php?topic_id=204134
http://www.teamliquid.net/forum/viewmessage.php?topic_id=214369
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
FFGenerations
Profile Blog Joined April 2011
7088 Posts
January 24 2014 17:24 GMT
#4
cool , i missed this, i'll be starting my project soon aswell!
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Soan
Profile Blog Joined August 2010
New Zealand194 Posts
January 27 2014 02:11 GMT
#5
On January 24 2014 11:08 CecilSunkure wrote:
Editor blog and no screenshot!?


I'm going to do a couple of videos! Still running on temporary art that I did, so videos will show it better than taking a couple screenshots.

On January 25 2014 01:29 BisuDagger wrote:
I think you'll enjoy this. It's my blogs about making my first video game. Keep up the hard work.

Parts 1-3:
http://www.teamliquid.net/forum/viewmessage.php?topic_id=189098
http://www.teamliquid.net/forum/viewmessage.php?topic_id=204134
http://www.teamliquid.net/forum/viewmessage.php?topic_id=214369


Cool. I've heard of Full Sail before, how was studying there?

Tried running game on my laptop today, 0 FPS in debug mode, hooray! Guess I don't have any choice but to switch to opengl asap if I want to do any work at home.
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 1: Group B
herO vs sOsLIVE!
Zoun vs Clem
Tasteless638
ComeBackTV 482
IndyStarCraft 127
Rex70
IntoTheiNu 57
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 638
IndyStarCraft 127
Rex 70
Harstem 64
ProTech60
StarCraft: Brood War
Britney 27366
Calm 10317
Sea 3448
Hyuk 1672
Bisu 1364
Jaedong 728
EffOrt 397
actioN 306
ToSsGirL 246
Rush 172
[ Show more ]
Zeus 148
Last 114
Leta 109
JulyZerg 89
Dewaltoss 72
Mong 58
Hyun 42
TY 37
sSak 33
Barracks 29
NaDa 27
Movie 17
Free 16
Sacsri 13
Sharp 11
soO 7
Yoon 7
ivOry 5
ajuk12(nOOB) 2
Dota 2
XaKoH 541
420jenkins539
XcaliburYe476
League of Legends
JimRising 367
Counter-Strike
olofmeister2058
shoxiejesuss780
x6flipin411
byalli166
allub136
PGG 109
Heroes of the Storm
Khaldor206
Other Games
singsing1363
C9.Mang0483
crisheroes287
Pyrionflax278
DeMusliM166
Mew2King161
SortOf44
Trikslyr22
Organizations
Other Games
gamesdonequick579
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 1
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
BSL: GosuLeague
8h 16m
Hejek vs Aeternum
Semih vs TousaN
Replay Cast
13h 16m
The PondCast
23h 16m
RSL Revival
23h 16m
Harstem vs SHIN
Solar vs Cham
Replay Cast
1d 13h
RSL Revival
1d 23h
Reynor vs Scarlett
ShoWTimE vs Classic
uThermal 2v2 Circuit
2 days
SC Evo League
3 days
Road to EWC
3 days
SOOP Global
3 days
Future vs MaNa
Harstem vs Cham
[ Show More ]
Circuito Brasileiro de…
3 days
BSL: ProLeague
3 days
Sziky vs JDConan
Cross vs MadiNho
Hawk vs Bonyth
Sparkling Tuna Cup
3 days
Road to EWC
4 days
BSL: ProLeague
4 days
UltrA vs TBD
Dewalt vs TBD
Online Event
6 days
Liquipedia Results

Completed

Acropolis #3 - GSC
2025 GSL S2
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
BLAST Open Fall 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.