Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ungod

Pages: 1 2 [3]
31
General / Re: Event Handling Deadzones?
« on: December 25, 2015, 05:52:53 pm »
What was mentioned should be exactly your problem.

What you can try is setting up a boolean flag for each move direction and change them during event handling, instead of directly calculating velocity. Evaluate the flags in your update method then.

Alternatively do what the tutorial describes. Use real time input (in your update).

32
SFML projects / Re: Selba Ward
« on: December 15, 2015, 08:26:47 pm »
Nice.
Is that stuff you did for other projects of yours or do you develop the library as a project itself?

33
SFML projects / Re: Last of the Ambaras
« on: December 15, 2015, 08:22:50 pm »
Thx!
What you mention is definitely a fundamental of indie-game-development.

34
SFML projects / Re: Last of the Ambaras
« on: December 15, 2015, 04:35:21 pm »
Hey Guys.

Devlog number 2 is out now:

https://www.youtube.com/watch?v=YoHdlmTRP5k&feature=youtu.be

I'm very busy at the moment and there is not much time for game programming. But I plan some very exiting things in 2016 from programming side and I will definitely share them here.

I'll do some audiodesign over christmas and other creative things, but probably no brain-labor at all. I've found a critical engine bug in the last days, but I will definitely need a few full-time days to fix it and there will be no time and motivation in the last 2 weeks of this year. :'(

So long, relaxing holidays for all of you!

35
General / Re: Point values of the edges of a sprite
« on: December 13, 2015, 02:44:10 pm »
I know nothing about tmx, anyway the problem might be in your collision checking itself. If I get you right you try to check collision of rotated rectangles the same way you do for unrotated ones. Can you show your method?

36
General / Re: Point values of the edges of a sprite
« on: December 12, 2015, 02:50:11 pm »
You can multiply your original point (x,y) with a rotation matrix: https://en.wikipedia.org/wiki/Rotation_matrix

Let (x,y) be your original point (x',y') the rotated point and w the angle of rotation (clockwise). Then you get your result like this:

x' = x*cos(w) - y*sin(w)
y' = x*sin(w) + y*cos(w)

Edit: You'll get a rotation around the world-origin (0,0). Since your rotation is around the sprites center point, you'll also have to do a translation before and after the above calculation.

37
General / Re: Game logic help!
« on: December 05, 2015, 09:19:31 pm »
Code: [Select]
if (pEnemy->isEntityActive() && m_vEnemies.front()->getEntityPosition().x >= 0)
        {
            pEnemy->MoveEnemiesRight();
        }
        else
        {
            pEnemy->MoveEnemiesLeft();
        }

Additional to the problem already mentioned: If I get your example right, this if doesnt work as intended since left-movement in the else block is called even if the entity isnt active. Is that indended?

38
Graphics / Re: resource manager
« on: December 05, 2015, 03:39:17 pm »
It actually does store the pair and overrides the old one if there is a conflict. So when you doesnt check before loading, you load twice.

Try output test["One"] after inserting 1 and 2.

39
SFML projects / Re: Car Racing For Beginners
« on: November 30, 2015, 03:34:17 pm »
This has a nice immersion of speed!

40
SFML projects / Re: Last of the Ambaras
« on: November 29, 2015, 01:26:18 pm »
Thx for your feedback!  :)

I tried isometric projection in the  beginning, but I found it too 'rigid' for my purposes. I currently use some kind of oblique projection and I like it more, because of its depths and imo it hasnt this hard "viewer from above" effect of isometric view. Thats because in oblique perspective, you actually see objects in their "full-size" from a kind of front view. Isometric perspective is great and good to drawn, because of its fixed angles, I just think it doesnt match my purposes.

But this is much about personal preferences. I already have some castle and town assets ready (but not implemented). I can do a fake screenshots when I have some time and you can check how the perspective looks if some architecture comes in.

41
General / Re: Is my game loop is correct ?
« on: November 28, 2015, 09:41:03 pm »
What better for performance in my code - set sprite parameters inside the Render or inside the Update(where it should be in my opinion) ? However the Update could be called more times in the cycle(inner while loop)...

Your rendering should be const, so I would do it in the update. Some scale calls wouldnt affect your performance anyway.

I dont know about the context of your example, but it would probably make sense to perform an action like this at the same place you would set this boolean value on true. This way you get rid of this if query at all.

42
SFML projects / Re: Last of the Ambaras
« on: November 27, 2015, 10:22:52 am »
Thx very much for your kind words!  ::)

43
SFML projects / Re:creation - a top down action adventure about undeads
« on: November 26, 2015, 10:20:01 pm »
I'm following your project for some time now and i finally manged to register here. Your game and engine were a nice source of inspiration for me.

I really like your modding philosophy and your lua-scripting and editor tools related to that. Until now, I just hardcoded stuff, but I tried scripting in the past a few times. (I can remember that I tried lua for an afternoon, but I had some problems with the setup)

I think you have to consider carefully when using scripts, because they can really slow down the game if used for too basic procedures. Where do you use them? Just everytime you want to implement gameplay behavior, thats unique to certain object and will not occur regular in the game?

44
SFML projects / Last of the Ambaras
« on: November 26, 2015, 09:59:30 pm »


Youtube https://www.youtube.com/channel/UCzzf_JgcMKhhMCQbp4Y960A
Facebook https://www.facebook.com/theLastOfTheAmbaras/?ref=aymt_homepage_panel

Hi Guys :)

This project swallowed countless hours now and i felt its time to present it and get some feedback. There is much to say, so i will structure this post into some subtitles so you can scrolls through and read the passages you are interested in. If you want a more in depth explanation of some aspect, I will extend the text later.

But a picture is worth a thousand words so you may start on my YouTube channel. I recently released a first DevLog. This thread will lack screenshots because anything visible I want to present at the moment can be seen there.

DevLog:

  • FIRST OF ALL: WHAT IS LAST OF THE AMBARAS?

    It's a 2D RPG game in a completely new fantasy world, based on my own lore and my own rules. I dont want to leave many words about story now,
    because there is still no story implemented in the game (its all in my head and written on paper), but let me give you a short introduction.
    The empires Vaugaloth and Nagrond are ruled by two of the oldest families of the known world. The Ambaras reign in Venthal, in the Crystalline Citadel and in the present, the lost most of the power they had in old times. There are just a few of them left and thats what gives the game its title. On the other side of the Grey Sea reside the Cravacus, a proud house which emphazies honor and traditions. There is an old hatred between these families and it needs just a small stumbling block to newly inflame the war between them. When you enter this world, it seems that this little rock suddenly has fallen...

  • HISTORY

    Spring 2014, I just started to devolop a game, quite planless, since I just wanted to do some cool stuff with the things I learned in university.
    Up to Fall 2014, I build a prototype of my game in Java, starting with a simple console-text-RPG up to some cheap mouse-drawn assets and a little guy i could controle with my keys. I noticed my pleasure creating video games during this time, so I decided to create some serious concepts based on my own game-expirience up to this point. I painted many assets with a graphics-tablet for a game that was just in my head, but I never put by this hobby, so it evolved over time.
    Finally since january this year I code in C++ using SFML. I did a complete redesign of my Java code, starting with a tough core-engine, wrote a main-loop with clean timestep, set up asset-managers and I racked my brain about efficient resource handling and XML-parsing. The first time of coding was quiet hard, because I came from Java my C++ expierience was outdated and additionally writing the raw base of an engine is not very exciting at all. But practice makes perfect, thats for sure.

  • ENGINE

    Lovely called Ungod-Engine after my name. I tried to build my code as generic as possible, though I dont think I will use the engine for stuff other than this game in the next years. But genererally I think its useful to stay as generic as possible, so you may can use the same code for multible purposes.
    In its core, my engine works as almost every other engine too, so I dont want to leave many words about that here. Its based on a entity system and mainly uses a quad-tree to store world-content.
    The quad tree is one of my favorite data-structures when handling 2D content, and its due to him, that my open world-concept works as intended. During update (especially collision-detection) and rendering process, the engine just retrieves the entities that are around (or directly on) the screen in an efficient way, instead of iterating over vectors of millions of pointers.

  • WORLD

    The Game takes place in a huge open world. My goal is to realize this without loading times at all to ensure REAL open world feeling. So how is this done? Currently my worldmap is just a single quad tree, which can indeed store a huge open world map, but 500k trees loaded independent from the distance to the player, can easyly fill the RAM. To solve this problem I came up with this: The world will be seperated in chunks. You can see them as squares in the 2D space. All entities in a chunk can be stored in a xml-file on the hard drive and the engine just loads the chunk containing the player and the 8 chunks surrounding this chunk. Every chunk will has its own quad-tree with entities. By storing a pointer to the currently visited chunks, its possible to efficiently retrieve the only world data relevant at this point: Those which is near the player. When entering a new chunk, the engine will automatically deallocate the memory from old chunks and will load new chunks in a seperate thread. This way I get a huge open world with dynamic chunk management and no loading screens at all. At least thats the future plan.

    What about world design? Well the plan is, to procedurally generate a huge open world map (based on the chunk system explained before) and fill it with random content. The editor is now a tool to handcraft the content of a chunk and i will use it for example to create fixed cities in the random world.


(some points comming soon)
5. Inventory/Items/Skills
6. Enemy-AI (finite state mashines)
7. Art (not about coding at all)
8. Editor
9. GUI
10. Sound

I think thats enough for an initial post. I will extend the text with code if you want, but at this time its hard to say what could be an interesting while at the same time short and pregnant code passage to present.

So long ~Ungod

Pages: 1 2 [3]