Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

102 Neutral

About flembobs

  • Rank
  1. flembobs

    Starting in Python: best graphics module?

    I recommend Pygame (http://www.pygame.org). It's a great library that is very easy to use. There's a lot of documentation, including a few free books, to get you going.
  2. flembobs

    A good framework for rapid development

    My personal favourite is pygame. http://pygame.org/news.html But if you want Java, slick is a good framework. As far as I know you can create applets with it. http://slick.cokeand....php?page=about
  3. flembobs

    Free engine for 2d games

    BYOND may be what you're after. (http://www.byond.com/) It's an engine geared around making 2D online tile-based RPGs easily (though it has been used to create all sorts of games). It handles the tile-based mechanics and all the netcode - meaning you just have to build your world. The language it uses is intuitive and there's a great community for code problems.
  4. flembobs

    Efficient data structure for a maze

    The game I'm making is a simple, no-frills perfect maze game so I think graphs may indeed be overkill. I think they may be useful for something like a rogue-like, which is something I'd definitely like to program in the future but for now I'll keep it simple.
  5. flembobs

    Efficient data structure for a maze

    The idea of storing n-s and e-w walls in 2 separate 2D arrays is interesting! Even with graphs there still seems to be the problem of having to store each wall twice (or pointers back and forth between neighbours). I think this method will avoid that. Cheers!
  6. flembobs

    Efficient data structure for a maze

    I've read about graphs, and it does sound like a good solution. One thing I don't understand is how to prevent cells from overlapping. I want to make a simple 2D maze. Perhaps there's some way to combine the grid method and the graph method?
  7. flembobs

    Built in Functions

    Most languages have online documentation detailing the built-in functions and included libraries. For example, the java docs can be found here: http://docs.oracle.com/javase/1.5.0/docs/
  8. I'm building a simple 2D maze game using pygame. I'm not sure what would be the best data structure to represent the maze itself. So far I'm using 2 classes, Cell and Grid. The Grid class is a 2D array of Cells. Each Cell contains 4 variables: w_n w_s w_e w_w, which are boolean flags indicating whether there is a wall in that direction. One problem I can see is that each wall is stored twice e.g. one Cell with w_e set true requires a neighbour with w_w set true. This makes setting the walls up inefficient as when I remove a wall in one cell I have to remove it in its neighbour's as well. Is there a better way to represent the maze? (I'm sure there is...)
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!