Your Story [uDG 2011] - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Community Zone (/forum-4.html)
+--- Forum: Contests (/forum-19.html)
+---- Forum: uDevGames 2011 (/forum-22.html)
+---- Thread: Your Story [uDG 2011] (/thread-9130.html)
Your Story [uDG 2011] - maximile - Jul 3, 2011 04:28 PM
2D space cargo transport game, maybe.
Latest build: http://www.maximile.net/stuff/Your%20Story.app.zip
Objective: Use the arrow keys to make a mess.
RE: Your Story [uDG 2011] - maximile - Jul 4, 2011 03:27 PM
No new build today, I worked on an FBO class. Now everything is drawn to an FBO, which is scaled up to fill the screen using nearest neighbour interpolation. This makes it easy to adhere to a blocky pixel grid without any effort; I've used it in lots of games before.
I also added a quick fullscreen mode, really nice and simple now I can target 10.5 and above.
RE: Your Story [uDG 2011] - Skorche - Jul 5, 2011 08:43 AM
I like the colorful tiles so far. I look forward to seeing what you come up with.
RE: Your Story [uDG 2011] - maximile - Jul 10, 2011 02:51 PM
I've updated the first post with a new screenshot, binary and objective.
Didn't get as much done this weekend as I'd have liked, but at least now I have a moveable camera and some kind of routine for updating game objects.
Next up will be sorting out some nice camera movement, limiting it to the level bounds. I'll also try out different methods for my main loop timing – I don't think I need interpolation, but I feel like I should be able to get rid of the occasional skipped frames.
I'm really looking forward to getting a controllable vehicle and some physics going.
RE: Your Story [uDG 2011] - maximile - Jul 11, 2011 03:46 PM
Got some constrained camera movement working today, which is good but not exciting enough for me to upload another build. I'm also working on layers with parallax.
It's already a bit slow, hopefully that's just because I'm binding the texture for every tile when i only need to do it once.
RE: Your Story [uDG 2011] - SethWillits - Jul 11, 2011 05:59 PM
Well a quick Shark profile will tell you. Or OpenGL profiler. The former likely before the latter.
RE: Your Story [uDG 2011] - Skorche - Jul 11, 2011 06:25 PM
It depends. A lot of OpenGL performance hits are delayed until you actually flush the buffer.
Though yes, in general changing the texture for each quad you draw can be many times more expensive than drawing the quad without changes. Also, the draw calls themselves are very expensive. If you set the texture once, write a bunch of triangles to a buffer, then draw them all at once it's generally several times faster. Heck, for tile data you can just generate the geometry once anyway.
RE: Your Story [uDG 2011] - OneSadCookie - Jul 11, 2011 07:17 PM
Most OpenGL state changes, you pay for them on the next draw call. So if OpenGL profiler is complaining that glDrawElements is using a lot of CPU time, it could be due to excessive state changes.
RE: Your Story [uDG 2011] - maximile - Jul 13, 2011 04:52 PM
New build, with a parallaxing background! Download it from the link at the top and have a play, if you like. (No gameplay yet, just move around using the arrow keys).
The level is defined by a plist in the package, in a simple format. The tile map is in there too. So if you get bored you can always have a go at creating your own. Which reminds me, I'm having a hard time deciding whether I need a level editor, or if I should just use a text editor and keep editing the level files.
RE: Your Story [uDG 2011] - tcIgnatius - Jul 14, 2011 05:43 PM
I'm getting some artifacts, and a little bit of tearing, but otherwise looking good. I see Command-R has made his way into one of the entries.
RE: Your Story [uDG 2011] - maximile - Aug 1, 2011 02:36 PM
I've finally made another build, you can grab it from the link at the top.
The main new feature: the editor. Activate it from the file menu, hold tab to select a tile from the palette and use the mouse to paint with it. Switch between layers using the number keys.
Open and save work, but you have to manually create or copy the map file (there's one in the bundle if you want to have a go). A lot of map settings still have to be changed by editing the file. But hopefully it has enough features now to let me get started on making some rooms.
I tried out a few different things before I settled on this in-game version. It makes sense to have a separate editor palette window, but I got confused with the multiple OpenGL contexts, and it looked ugly - not a big deal, I know, but I really like the retro feel of having it in the game.
RE: Your Story [uDG 2011] - skyhawk - Aug 1, 2011 02:50 PM
OMG! I love the pixelated CMD-R!
RE: Your Story [uDG 2011] - funkboy - Aug 2, 2011 10:22 PM
A *HUGE* kudos for supporting ASDF keyboard layout properly in Dvorak keyboard mode... you are using keycodes rather than the letters themselves that are being hit. You just got a +1 in my mind
Fun looknig visuals, Cmd-R pixelated is truly excellent!
RE: Your Story [uDG 2011] - maximile - Aug 3, 2011 12:04 AM
Thanks for the kind words.
RE: Your Story [uDG 2011] - maximile - Aug 3, 2011 04:54 PM
New build! (link at top)
I've hacked in some early physics, just to test the tile collision shapes. It's starting to feel like a game!
It catches on the cracks between tiles (as expected), so I think I'll have to go through removing as many shared borders as possible without making them concave.