Temple of The Roguelike Forums

Development => Programming => Topic started by: BirdofPrey on August 15, 2008, 05:07:27 AM

Title: Smooth animations and ASCII - can they mix?
Post by: BirdofPrey on August 15, 2008, 05:07:27 AM
Since I'm writing my roguelike using SDL for graphics with SDL_TTF rendering the ascii characters, I realized that I have the opportunity of making animations a lot flashier than the terminal can provide. Nothing major, i've just been considering things like having projectiles fly in a smooth straight line instead of tile-by-tile, maybe other small touches like the screen shaking a little bit when there's an explosion nearby... Do you think that would work fine with ASCII graphics or would it clash?

It's mainly a question of aesthetics and I know there's no 'right' answer, but I'm just looking for what the general opinion is.
Title: Re: Smooth animations and ASCII - can they mix?
Post by: Z on August 15, 2008, 10:05:50 AM
In my opinion using SDL for graphics with SDL_TTF rendering the ascii characters is a clash in itself. Either use a real terminal, or real graphics.
Title: Re: Smooth animations and ASCII - can they mix?
Post by: stu on August 15, 2008, 12:03:22 PM
I like using ASCII graphics in SDL. It works well for me.
Title: Re: Smooth animations and ASCII - can they mix?
Post by: njerpe on August 19, 2008, 04:05:37 PM
I'd be interested in playing a game like this.

What about being able to zoom in on your ASCII "tiles"? Would you be able to achieve a smooth real-time zoom or would you have to increase the font size point by point?
Title: Re: Smooth animations and ASCII - can they mix?
Post by: BirdofPrey on August 19, 2008, 09:45:43 PM
I'd be interested in playing a game like this.

What about being able to zoom in on your ASCII "tiles"? Would you be able to achieve a smooth real-time zoom or would you have to increase the font size point by point?

I could probably get a smooth zooming effect by changing the font sizes and updating each frame. I'm not sure though in what circumstances you'd want to do that. The problem with zooming is that it would leave some of it out of view, and that would never be a good thing. One area i could see it being used in is moving from a large area to a small area and visa versa, for example, moving from a town to an overworld map, but the problem there is that it isn't really a change of size that's called for but a change of scale.

Title: Re: Smooth animations and ASCII - can they mix?
Post by: njerpe on August 24, 2008, 03:40:55 PM
Changes in elevation? From a top-down perspective, certain areas in a level may be closer than others.

If you were to change from one elevation to the next, you'd want to be able to zoom appropriately.

I don't think changing the font sizes would work though, simply because there are not enough point sizes in between to make it smooth. But I could be wrong.