1

I have learnt html,css, and some basic javascript for web development,and made a few projects including a calculator with prompts.This is the code :

<script type="text/javascript">
function prote(){
let firstNum=prompt("Enter first number")
let secondNum=prompt("Enter second number")
let num1=parseInt(firstNum);
let num2=parseInt(secondNum);
let result=num1 + num2;
alert(result);
}
function prote2(){
let firstNum=prompt("Enter first number")
let secondNum=prompt("Enter second number")
let num1=parseInt(firstNum);
let num2=parseInt(secondNum);
let result=num1 - num2;
alert(result);
}
function prote3(){
let firstNum=prompt("Enter first number")
let secondNum=prompt("Enter second number")
let num1=parseInt(firstNum);
let num2=parseInt(secondNum);
let result=num1* num2;
alert(result);
}
function prote4(){
let firstNum=prompt("Enter first number")
let secondNum=prompt("Enter second number")
let num1=parseInt(firstNum);
let num2=parseInt(secondNum);
let result=num1/num2;
alert(result);
}
</script>
</body>
<form>
<br>
<input type= "button" value="Add" onclick="prote()" />
<input type= "button" value="Subtract" onclick="prote2()" /><br><br>
<input type= "button" value="Multiply" onclick="prote3()" />
<input type= "button" value="Divide" onclick="prote4()" />
</form>

However I want to do game dev and I feel it may have been a mistake to start learning web development,I originally started learning code in roblox studio,however some do not consider making games in roblox studio "REAL" game development and I didn't exactly feel it was either.I messed around with unity and found the layout quite similar to roblox studio. However
I heard phaser uses javascript and Unity uses C#.In which case using phaser would not require using a new language.However I am aware that If I want to make 3d games(Which I do) I will have to move to unity eventually.Basically, as a beginner should I switch to unity and C# first or Phaser and javascript first.

Comments
  • 2
  • 2
    Concentrate on one thing.
    It seems like you have already made up your mind.
  • 4
    The really hard part of gamedev is not language related. And once you have the basics going and maybe a few simple games, like reimplementation of some simple existing ones, you can look to switch.

    And for some very basic games, js in a web browser is quite enough.

    Like pac man. Tetris or space invader.

    What I have learned is, unless you are uniquely motivated and focused, you should not aim to big for the first games, you will get stuck in details.

    Go super simple with an explicit goal to get something done within a timeframe.

    Like spaceinvader within 1-2 month.

    I got one ascii graphics based running in a few weeks in F# just as a way to learn F#, and it was very fun :)

    It was not polished at all, but it was a playable game.
  • 0
    What helped me with my first games was that they were uni projects, where the choice of language/engine was up to the professor and not me, plus a deadline and motivation besides just creative desire. Once you've finished a couple of small projects, then you can start aiming higher. Aiming high first just means you're going to miss the landing.
  • 0
    Basic Unity stuff.

    Unity itself offers a plethora of tutorials and free courses.
  • 1
    @Benutzername What do you mean? Oh by the way I am using unity now, turns out the language difference is small parameters,if statements and alot of stuff look and feel the same,the biggest difference is just some keywords, but basic syntax stayed the same luckily, there was also a time my friend gave me a fill in the blanks in python and I got "almost" all of it correct I feel kinda proud of it because at the time I only did js, but I realize now the difference between languages is not as colossal as I thought.
Add Comment