Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2017-02-27 10:48:12, last edited by Aoitenshi (2017-02-27 18:18:27)

Aoitenshi
Member
Joined: 2015-02-18
Posts: 2,058

Everfly - C++ Console Game

fleMiR.pngZu0NgB.png
Hh7gGF.pngTXHTzV.png

Everfly 1.0.3.3 - an original ASCII puzzle arcade game

So as part of my new year resolution to make a game every month, I made an entire game this January as my final project. I thought I'd polish this some more, so here it is, the first monthly game of the year. I'll post my second game after I finished polishing it, but enjoy this game for now.

You play as an Everfly (the X). The direction you choose has a number and you move exactly that number of steps. You cannot revisit the same spot and You lose a life when they cannot make any move. Consume enough numbers on the screen to advance to the next level.

I've made 8 levels in total, each with different and new kinds of items/challenges, but due to the randomly-generated nature of the game, it's unfortunately impossible to implement built-in level editors right now, most of the pre-set items in there were hardcoded. But if you'd like, you can take a gander at my source file at (line 203) and try your hands on hardcoding a custom level (warning: not OOP, absolute mess). Enjoy!

Link:

Source Download

Offline

#2 2017-03-23 16:11:31

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: Everfly - C++ Console Game

screen flickering hurts

can you do something about that

Offline

#3 2017-04-04 04:47:27

Aoitenshi
Member
Joined: 2015-02-18
Posts: 2,058

Re: Everfly - C++ Console Game

ninjasupeatsninja wrote:

screen flickering hurts

can you do something about that

Idiotic coding from my side. Have to recode from scratch to fix that.

Offline

#4 2017-04-04 08:02:29, last edited by LukeM (2017-04-04 08:03:18)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: Everfly - C++ Console Game

There is a few ways to fix it here: http://stackoverflow.com/questions/3484 … c/34843181
I would advise doing the 'double buffering' approach (write to string, loop through string and console and only change what's necessary by changing the console write position)

To so this, you could probably make your own console write function, then have an update function, which would mean that you wouldn't need to change much in the rest of the program

Offline

#5 2017-04-08 12:40:26

Aoitenshi
Member
Joined: 2015-02-18
Posts: 2,058

Re: Everfly - C++ Console Game

destroyer123 wrote:

There is a few ways to fix it here: http://stackoverflow.com/questions/3484 … c/34843181
I would advise doing the 'double buffering' approach (write to string, loop through string and console and only change what's necessary by changing the console write position)

To so this, you could probably make your own console write function, then have an update function, which would mean that you wouldn't need to change much in the rest of the program

No that's not the problem I realized, the way I coded the thing made almost every function's heavily dependent on refreshing the entire console, not to mention I used a simple 2D array of integers for the gameplay field instead of array of structs, leaving what can I do to the field very limited.

I could fit my code to double buffering, but that'd require tons of recoding on the program it'd be better to rewrite it in the first place.

Offline

Aoitenshi1491651626653736

Board footer

Powered by FluxBB

[ Started around 1711646177.3561 - Generated in 0.038 seconds, 12 queries executed - Memory usage: 1.44 MiB (Peak: 1.56 MiB) ]