Skip to content

Commit

Permalink
Update CommandLineFPS.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
OneLoneCoder authored Mar 5, 2018
1 parent c83dcea commit b25beb7
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions CommandLineFPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@
OneLoneCoder.com - Command Line First Person Shooter (FPS) Engine
"Why were games not done like this is 1990?" - @Javidx9
Disclaimer
~~~~~~~~~~
I don't care what you use this for. It's intended to be educational, and perhaps
to the oddly minded - a little bit of fun. Please hack this, change it and use it
in any way you see fit. BUT, you acknowledge that I am not responsible for anything
bad that happens as a result of your actions. However, if good stuff happens, I
would appreciate a shout out, or at least give the blog some publicity for me.
License
~~~~~~~
Copyright (C) 2018 Javidx9
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; See license for details.
Original works located at:
https://www.github.com/onelonecoder
https://www.onelonecoder.com
https://www.youtube.com/javidx9
GNU GPLv3
https://github.com/OneLoneCoder/videos/blob/master/LICENSE
From Javidx9 :)
~~~~~~~~~~~~~~~
Hello! Ultimately I don't care what you use this for. It's intended to be
educational, and perhaps to the oddly minded - a little bit of fun.
Please hack this, change it and use it in any way you see fit. You acknowledge
that I am not responsible for anything bad that happens as a result of
your actions. However this code is protected by GNU GPLv3, see the license in the
github repo. This means you must attribute me if you use it. You can view this
license here: https://github.com/OneLoneCoder/videos/blob/master/LICENSE
Cheers!
Background
Expand Down

3 comments on commit b25beb7

@OneMeanDragon
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

            'draw the map.
            Dim row As Integer, column As Integer = 0
            For i As Integer = 0 To (m_MapWidth * m_MapHeight) - 1
                column = i Mod m_MapWidth
                row = i \ m_MapWidth
                Console.SetCursorPosition(column, row)
                Console.Write(map(i))
            Next

you could roll your map into a singular loop, obviously not like i have with moving the cursor all over the place though lol

@OneMeanDragon
Copy link

@OneMeanDragon OneMeanDragon commented on b25beb7 May 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/OneMeanDragon/ConsoleGraphics

if you want to play with VB at some point lol

@Thelegendseb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/OneMeanDragon/ConsoleGraphics

if you want to play with VB at some point lol

yo how to compile this?

Please sign in to comment.