Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
Programming

Language for a 2-D graphical roguelike.

Age of Fable
Saturday, June 6, 2020 - 18:31

This is a more specific version of a question I asked a while ago.

php creates a html page. This means that, if you want to display an environment like this one:

You just do it as a table, with each cell displaying the image that corresponds to a location in an array.

Is there a programming language that takes a similarly simple approach to graphics?

  • Log in or register to post comments
nosycat
joined 13 years 11 months ago
Sunday, June 7, 2020 - 01:36
nosycat's picture

Maybe BaCon with the HUG extension, but it's only for BSD/Linux/Mac: http://basic-converter.org/

Or else Python with the Tkinter extension (manual at https://tkdocs.com/). It's more complex, but also much more powerful; I used it for two roguelikes now and it worked great both times.

By the way: using a table in HTML makes the browser waste a lot of RAM if you want a field of view any bigger than in your screenshot. And using PHP for a single-player game is a waste of server resources. Just learn to draw on a graphical canvas, in whatever language you like; if anything it's even simpler.

  • Log in or register to post comments
Joe Strout
joined 12 years 4 months ago
Sunday, August 2, 2020 - 13:24
Joe Strout's picture

Mini Micro was designed for exactly this sort of thing. You would use a TileDisplay, which allows you to simply set the tile index (i.e. which picture to show, from a tile sheet) for any cell (position on screen) of the display.

Tile displays support scaling and scrolling very easily. They also support transparency and can be layered, so more likely you would use *two* tile displays, one for the environment and another for the player and monsters (and possibly a third, in between, for items lying on the ground).

Mini Micro has a small but active and very supportive community. If you decide to go this route, you can count on lots of support from me and other Mini Micro users. Mini Micro runs on Mac, Windows, Linux, and the web, and you can package your game for all those (there are already over a dozen Mini Micro games on itch.io, for example). Also, it is free. Give it a try!

https://joestrout.itch.io/mini-micro

  • Log in or register to post comments