Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

CrazyBlackStone

6
Posts
1
Followers
1
Following
A member registered Aug 15, 2020

Recent community posts

What if you just hold down space bar.

I agree with the guy's comment that languages like C# are much more capable. However, Unity and Unreal don't suck. They seem to suck because so many bad game developers use them, but they have a lot of potential in the right hands.

In any case, Unity uses C#, so if you want to learn Unity, learn C#.

Technically speaking, it's more of a command line coding tutorial console software since it lacks the features of many actual command line consoles.  

Short answer: Old code was not optimized. It had many redundant lines of code. 

Long answer: Here's a list of things that were addressed:

  1. Declaring the variables at the start but then re-declaring them in each of the if statements. This is highly inefficient and can be fixed by putting the lines of code into a single function.
  2. Executing the print commands by each column. Lines of text DO NOT need to be printed one-by-one.  Use "\n" to indicate a new line.
  3. The print commands are put into each and every one of the if statements. Again highly inefficient and can be fixed by putting them into a single function.    
  4. It seems that you did not learn from my edit on S-Spense. Multiple if statements on the same level can be replaced by else if or "elif". This is a good habit and will save you from some trouble in certain applications.
  5. On the last part which detects for invalid inputs, the second part where it detects if both X and Y inputs are too high is not needed. In fact, a single elif statement will do for detecting invalid inputs.

This code is messy, so I made a few cleanups. Check your Slack messages.