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 - AN71

Pages: [1]
1
Graphics / Re: Infinitely repeated tile as background sprite
« on: February 11, 2014, 08:05:58 pm »
If I understand correctly, you just need infinite tiling, for which you could emulate by simply having the tiled object larger than the screen, and using a subRect that once the end of the object is found, it loops back to the beginning, kind of like how people emulate toroidal topology, if you understand what I'm saying. Hope this helps a bit :)

2
Graphics / Re: Grid based 3D Dungeon with SFML
« on: February 09, 2014, 08:18:07 pm »
Lol, I've had the same idea for a while, so I'll share what I've found so far that should be quite helpful:

Procedural Generation: (Maze or Room/Path placement)
---------------------------------------------------------------------------
http://pcg.wikidot.com/

Dungeon Ideas
---------------------------------------------------------------------------
http://www.roguebasin.com/index.php?title=Main_Page

3D-iness: (2.5D, not real 3D):
---------------------------------------------------------------------------
http://lodev.org/cgtutor/raycasting.html
http://lodev.org/cgtutor/raycasting2.html
http://lodev.org/cgtutor/raycasting3.html
http://www.permadi.com/tutorial/raycast/

Hope this helped :)

3
Graphics / Re: Need some help with primitives please!!!
« on: February 07, 2014, 03:47:07 am »
I'm fairly certain they have an explanation of how to do this in the SFML tutorial section under "Texts and fonts"(http://www.sfml-dev.org/tutorials/2.1/graphics-text.php). Unless you need to do something different, of course.

4
General discussions / Re: Class for extremely big, or small, numbers
« on: February 06, 2014, 10:02:14 pm »
Forgive me for asking, but out of curiosity, what could you possibly need more than the 19.26 decimal digits that long double gives you? Also, I don't think there is any way to store any number larger without losing precision.

edit: I guess you can ignore this post, other higher beings are more knowledgeable :)

5
Graphics / Re: Help with Tile collisions
« on: February 06, 2014, 05:48:11 pm »
Well, I, for one, am now confused.

Are you using  a grid system? Are you pre-rendering your screen to a buffer that is the size of the screen, and using that as the grid (making the boundaries of tiles unavailable)? I'm rather perplexed by what you mean by
Quote from: gop_t3r
it will always return true because the player is in the tile map to begin with
Isn't this the same for most tile games? Are you using some unusual method that prevents the tile's boundaries from being accessed on an individual basis? The more info given, the easier it is to find a solution :)

6
General / Re: drawing x coord below 0
« on: February 05, 2014, 05:50:26 am »
I'm rather new, so please spare me if I am wrong, but I believe that there may be some sort of implicit type conversions going on. I have no idea what type your hero_position_x is, but the

getSize().x

returns a value with a type of template parameter T, which can be either int or float, though I do not know whether it is unsigned, thus the

(p.hero_position_x+50-(*window).getSize().x/2)

might not be an integer until you declare it as an integer in dx.

7
General / Re: Making a tilemap with a 2D array.
« on: February 03, 2014, 06:37:47 am »
Just wondering, is the counter variable for debugging or just not being used within the scope of your posted code? Right now it seems to be useless code. I apologize in advance if my question seems foolish or if I missed something.

8
Window / Re: Window does not activate if you click inside it
« on: February 03, 2014, 06:18:09 am »
That said, I have no idea what github is.
Github is a beautiful place.


Agreed, but to elaborate (at least in layman's terms) Github is a place for people to host source code based on the Git SCM system. People can write commits, and share ideas, it is one of the quintessential pieces of Open Source in my opinion. However, I suppose they still do have private repositories. There is still a lot more to it, though I don't believe its really necessary to cover it all. ;)
edit:Disclaimer: Although I'm pretty new to SFML, I've used Github for a while

Pages: [1]