• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
kidaj12

Vectorial 2D Platformer

6 posts in this topic

Hello all, 

 

I'm very new to game development and I was interested in building a 2D Platformer. 

 

I have built a 2D game before but it was a tile based game. I want to create a game where I can have hills and different slopes that the user can climb on. Similar to what the game Braid has. 

 

I was doing my research and I have found that the technique is "vectorial". How would one start to look into creating a game like this? Most 2D tile games have a tile editor like Tiled that you can use. How would you build a map editor for such a game? What type of format should the data be in since it's probably going to be points connecting to paths. Also, how would one determine what sprite or image to use for a path?

 

I am really interested in this technique. If anyone could give me a good push in the right direction it would be greatly appreciated. 

 

I am most likely going to use SFML 2.1 or MonoGame to create it. Still trying to decide whether or not I want to do it in C++ or in C#.

 

Thank you in advance. 

 

Kidaj

0

Share this post


Link to post
Share on other sites

Thank you for the link to that article. 

 

I know have a better understanding of the higher-level design and what type of work I need to put in to get something like this working. 

 

What would be the best way to store and retrieve the data for map?

 

Like I mentioned earlier, in a tile editor, something like x == 'grass tile' would work. But with the vectorial technique, how would the data structure look like? Would it be something like:

{
     sprite: "path to sprite .png", 
     vectorPath: [{x: 1, y: 1}, {x: 2, y:2}]
}
0

Share this post


Link to post
Share on other sites

>>> How would one start to look into creating a game like this?

 

Probably you'd want to work out how the physics would work. You could use a physics engine such as the (hugely popular) Box2d (of Angry Birds fame)

 

>>> Most 2D tile games have a tile editor like Tiled that you can use. How would you build a map editor for such a game?

 

You'd use a SVG editor such as inkscape, or some other vector tool which exports into a convenient format.

 

>> What type of format should the data be in since it's probably going to be points connecting to paths.

 

It's going to be a number of polygons with some metadata attached (concerning behaviour, appearance etc).

 

>>> Also, how would one determine what sprite or image to use for a path?

 

That would have to be part of the metadata. Presumably you'd draw a texture-mapped polygon and set texture coords appropriately for its shape (I'm pretty sure that's what Angry Birds does).

 

- Mark

1

Share this post


Link to post
Share on other sites

What does the Unity engine have to do with this? He was asking how to implement 2D vector math. Please don't answer specific questions with completely unrelated general advice.

 

Anyway, vector algebra is a huge subject and will take most people some time and effort to fully comprehend. The good news is that once you have a solid understanding of vector math, you've also covered most of the math concepts required for 3D applications.

 

This website contains tutorials on programming vectors, and it has interactive examples to clarify the different concepts: http://www.tonypa.pri.ee/vectors/tut01.html

1

Share this post


Link to post
Share on other sites

There are a number of options for generating the data. I second Markr's suggestion to use Inkscape or some other similar program to create the level data. You could then process the SVG to something more game specific through a script or XSLT . You could choose to store such data in a number of formats such as XML or JSON. There is even a commercial solution called Corona for the SVG approach.

 

You could alternatively develop a level editor using C#, PySide, Qt, Java, ect. This route would be significantly more time consuming then using an existing vector graphics program though.

Edited by shadowisadog
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0