Making My Own Programming Language and Coding a Game in It

1,285,035
0
2022-03-10に共有
I developed my own programming language, called Z-Sharp (Z#), using C++. Then I went through the process of coding an entire game in it.

Source and Binaries
Get it on Github: github.com/sam-astro/Z-Sharp
Or get it on Itch.io: astrosam.itch.io/z-sharp

Support:
● Patreon: patreon.com/AstroSam
● Ko-fi: ko-fi.com/astrosam
● Monero: 4AAjyAHKnYwCsgJp16v1YeeDPA1Z51QKUfCMWsiCDxkNBFCtbUfDHD7K5sZDrFH2pnGsDAH989XwXdudcoC4iqtVC9QLk8r

--------------------------------------------------

Related Links:
● Streaming Channel:    / @astrosamstreams  
● Itch.io: astrosam.itch.io/
● Github: github.com/sam-astro
● Discord Server: discord.gg/9p82dTEdkN

--------------------------------------------------

Music:
Ocean Loader 3
EarthBound (various songs)

--------------------------------------------------

Chapters:
0:00 Intro
1:36 Compiled or Interpreted?
2:42 Syntax?
4:08 What to name it?
6:14 The game I chose
6:48 Draw rectangles
7:24 Movement
7:40 Making a ball
8:06 Displaying scores
8:20 Troubleshooting performance
8:54 Making AI
9:05 Fun with sprites
9:18 Source and Binaries

--------------------------------------------------

THIS VIDEO IS NOT SPONSORED

#cpp
#programming
#coding

コメント (21)
  • I made my own planet, then made humans evolve, I then made them make PCs and then made them make their own programming language, and then I made my own game.
  • I'm here before this channel explodes in popularity! Absolutely phenomenal AstroSam!!! I will also try to replicate this some day
  • @bananacraft69
    I think many people would be interested in a tutorial(series) on how you made this and how to make a language yourself.
  • This has been really inspiring, I've began work on my language called Red Squirrel, with syntax similar to Java, Lua, GML and Squirrel (Obviously) I've made literally everything already, besides the language itself.
  • My automatons teacher made us make a language and a compiler, the language that I made is called "Monkey Script", and everything is monkey. Instead of using "+,*,-,+" I used "monkadd" "monktimes" "monkminus" and "monkplus" Data types where: int -> wholeMonke double -> decMonkey string -> strgMonke You get the idea, it was fun, but eventually we had to make the compiler where the not so fun part begins, where you use assembly language, and ended up cheesing the project mostly because of time, just making it so it translates my language to Java and execute it in the spot, teacher didn't notice lmao she never checks the source code for some reason
  • i have learnt all my computer-related knowledge by myself in almost 6 yrs and creating a language has been a dream almost from the very beginning. after 6-7 attempts i think i finally got it right. it is the best achievement in these yrs so far, i think. even tho its likely that no one will use or even know ur lang, u learn so much stuff from just trying. and in that regard writing a compiled lang (that compiles into asm) can help understand the fundamentals of computers
  • This is a really good video that clearly has effort put into it. More people need to find this channel!
  • That is amazing, congratulations on such a good achievement! You're an awesome programmer, ncie job man.
  • I’ve been working on a programming language called Rouge for a while. It’s primarily inspired by Rust (which I’m coding the compiler and runtime in), but also takes the compile-once-run-anywhere approach and a bit of the project structure from Java, and the syntax is primarily inspired by Ruby/Lua (end keyword so indentation can be ignored). I’ve still got a lot to figure out, such as: - how to write a parser - how to JIT compile from bytecode (until I figure this out the runtime will have to interpret the bytecode) - what should the bytecode instructions be - how to access stuff that is external to the runtime - how to make the runtime embeddable in other programs with custom hooks (for use cases like game modding or app plugins)
  • Congratulations, man! Your work is encouraging and inspiring to others.
  • @GGDev7
    absolutely awesome, seeing you creating your own language is absolutely amazing, keep it up with your amazing video dude! YOU ROCK!
  • @DevNoob
    I'm always so intruiged about people making their own language. Very impressive. Really, really cool!
  • You should go through the process of how you created your programming language. This is so frickin' cool, man. You are an inspiration.
  • Your project is super. I tried recently to create mine, and your hints could help me.
  • @sixty502
    Can’t believe I’ve not found you before. This video is exactly the sort of thing I love
  • Your channel is criminally underrated bro, best luck to you in the future with your channel
  • Dude this is actually insane!🤯 I hope I can do this one day, I can't wait to see you blow up one of these days! 👏