HackerTrans
TopNewTrendsCommentsPastAskShowJobs

onikolas7

no profile record

Submissions

Show HN: A tutorial for building a 2D game engine

nik-os.com
1 points·by onikolas7·2 года назад·0 comments

Show HN: A tutorial for building a 2D game engine with Go and OpenGL

nik-os.com
17 points·by onikolas7·3 года назад·2 comments

comments

onikolas7
·в прошлом месяце·discuss
How to actually make a billion (the YC formula): 1. Work hard to build a great product. 2. Get VC money. 3. Offer great product for free by spending ridiculous amounts of VC money. 4. Switch to a paying model once you have starved any competition with your free offering.
onikolas7
·в прошлом году·discuss
As a teenager I loved Samurai Jack. Gendy Tartakovsky is a truly unique creator. I am very excited for his first R-rated feature Fixed.

https://www.imdb.com/title/tt8785038/
onikolas7
·2 года назад·discuss
Totally agree! I am now writing a very simple hack'n slash game to identify missing features. I won't be writing an editor any time soon.

Do you have any examples of good debugging features?
onikolas7
·2 года назад·discuss
For anyone looking to write their own engine, I wrote a tutorial! You just need the tutorial and a couple of years :)

https://nik-os.com/agl/00_intro.html
onikolas7
·2 года назад·discuss
I recently joined a local game jam with the intent of showing off my 2D engine. Halfway through, I realized I didn't have a way to properly destroy game objects. I realized it after messing up my cooldown timer and accidentally spawning a few thousand projectiles. It's something I knew I had to do that but I kept pushing it back to work on more interesting (but less critical) stuff. Now I am building a very simple hack-and-slash game and adding engine features as needed. Documenting the process here[1] for anyone interested.

[1] https://nik-os.com/agl/17_collisions.html
onikolas7
·3 года назад·discuss
Translating the OpenGL code to Metal/Vulkan will likely be a lot of work. Have a look at [1] which is something like tutorial 1 in the series. Its super verbose!

OpenGL 4.1 was silently supported up to some version of OSX. Not sure if that is still the case. You could try changing: import github.com/go-gl/gl/v4.6-core/gl to import github.com/go-gl/gl/v4.1-core/gl and see if it works.

[1] https://github.com/KhronosGroup/Vulkan-Samples/blob/main/sam...
onikolas7
·3 года назад·discuss
Funny. In the game black&white you would slap or pet your avatar to train it. The lead AI programmer on that was Demis Hassabis of deepmind fame.
onikolas7
·3 года назад·discuss
I am solo building a 2D game engine. Does it count?
onikolas7
·3 года назад·discuss
Is it a surprise that an education system targeting the mean produces results close to the mean? It's like training for the marathon by only doing 2 mile runs and then saying people's ability to run long distances shows little variation.
onikolas7
·3 года назад·discuss
More reasons to opt for remote-only.
onikolas7
·4 года назад·discuss
I think this is one of those issues that are presented as a hard/nuanced problem but really isn't. Single use plastic can be banned the same way lead paint is banned. That's only hard to do because of lobbying by Coke&friends. There is some inconvenience for the consumer, like having to return our glass bottles or bringing reusable containers to the supermarket but that's all doable (proof: that's how it was done before). The hard part is forcing corporate to take a profit hit.
onikolas7
·4 года назад·discuss
No, I agree, it is the sensible thing to be doing, but it looks like we are at a point where radical short term fixes are needed.
onikolas7
·4 года назад·discuss
It will put very strong pressure during the transition with a few young people supporting a larger aging population (see Japan). It's also opposed by capitalists as it goes against the infinite growth mantra (see for example Musk's comments on the subject). More importantly, it won't do anything in the short term where we need it urgently.
onikolas7
·4 года назад·discuss
Lets set a new standard: if it doesn't run on raspberry Pi don't ship it. Not running on a Pi should be a rare, special-case exception (e.g. need to train a model on GPU).
onikolas7
·4 года назад·discuss
'Lots' and 'legacy' are compatible.
onikolas7
·4 года назад·discuss
There are more games than ever before, including DRM-free, host-your-own-server games. Don't like in-app purchases? Play something else.
onikolas7
·4 года назад·discuss
Setting up a company is a practical way to offer services, especially if you are working outside the US. There is an overhead, at least in my case (living in Europe), like paying for an accountant, but its well worth it.