View all by Bastian
Bastian
Follow Bastian
Follow
Following Bastian
Following
Add To Collection
Collection
Devlog
LUA game developing for dumbies
←
Return to LUA game developing for dumbies
Devlog
roguelike console
May 24, 2025
by
Bastian
Today i made some smart roguelike console. For speed improvements i mention some tricks. Listen carefully. 1.do not use ttf fonts, they look cool but are slow to render even on a good machine -> fix t...
Continue reading
android GPS and other sensor for LOVE2D.
May 23, 2025
by
Bastian
I made some major progress while trying to figure out if it is even possible to use external aps on android to make the sensors really work for game or app reasons. And the answer is YES! There it is,...
Continue reading
screen flickering
May 16, 2025
by
Bastian
I was about to make another small game this time roguelite where the character moves in camera by 8px on screen. But is stays always at the center 64x64 of the window no matter what. So i made the usu...
Continue reading
doggie game
May 15, 2025
by
Bastian
Today i made some small JAM like game. Infinite runner with a cute doggie that jumps over hedgehogs and collects bones on a forest stroll. what i learner: using math sin for jumping parallax scrolling...
Continue reading
leeeerpiiiing is haaard
May 14, 2025
by
Bastian
First timer needs to know that meters/second is something that we will call distance/time thus ds. A dog will travel from A to B distance = 100 px. A dog goes fast as speed = 50. Thus ds = speed/dista...
Continue reading
canvas speed
April 02, 2025
by
Bastian
#canvas, #love2d
Now in LOVE2D when you just starting maybe you need to use canvas for some pixel operations when drawing. But suddenly the speed of drawing is reduced to snail speed and you wonder what happened. Firs...
Continue reading
memory and garbage collecting
March 26, 2025
by
Bastian
Important thing is not to lock memory when using objects which are connected to other objects and will be released while still the other object exists. Example can be this : i have a scene object. In...
Continue reading
object inheritance
March 19, 2025
by
Bastian
I decided to try out object inheritance in a way that prevents me from using objects to create more mess than i would need. So in order to work like this i have only single object class used for every...
Continue reading
exporting
March 08, 2025
by
Bastian
Nice theme. Exporting data in programs for your own code. The bad thing is, most programs do not have an api you could use to export the data produced by that app. It would be great to just look and s...
Continue reading
light and shade
March 07, 2025
by
Bastian
1
Long time not written so i begin with the hardest task of them all. How to do in 2D something that looks cool and looks like light that even projects shade from hitting buildings etc. Haha, easy task...
Continue reading
day nigh cycle
February 24, 2025
by
Bastian
For this nice effect i prepared 4 gradient textures for transition between night -> morning -> day -> evening -> night. Then each time a transition was going on i render two full size textures with gr...
Continue reading
angles and the great distortion
February 21, 2025
by
Bastian
Ugh, today i found the great distortion between the physical math and the computer math. It is just the way they calculate radians and degrees. By looking at the first graph you see that angles go ant...
Continue reading
game making
February 20, 2025
by
Bastian
After few days of speculating i really needed to express some techniques that i have written about here in this short devlog and put them to use. Here is a small example of how a game is developed usi...
Continue reading
collision
February 16, 2025
by
Bastian
Be not worried. There are libraries which work with collision like box2D but your headache will not go away so easily anyway. Start by small steps and learn on your own how it works. Or do it like in...
Continue reading
classes and oop
February 08, 2025
by
Bastian
The worst thing ever but also so usefull. Why do game producers need clasess and in lua? Well… there is this strange tutorial on lua pages about metatables and it has even inheritance but for some r...
Continue reading
trajectories
February 07, 2025
by
Bastian
Today i investigated the calculation of trajectories for a simple jump like path that looks like a sin and cos half circle and a cannon ball trajectory that can handle wind. The jump was no problem to...
Continue reading
fullscreen (LÖVE2D only)
February 05, 2025
by
Bastian
Some games need only one resolution and you want it the same no matter how the window resizes. When going into fullscreen mode the default mode in LÖVE2 D is desktop and the preset resolution changes...
Continue reading
general base of project
February 04, 2025
by
Bastian
It is good to have some time and develop few classes that can be used between game projects. This i would recommend. main - only basic game object to run draw and update on game - the core engine that...
Continue reading
fonts
February 01, 2025
by
Bastian
Fonts are a thing i need in almost every game made. So why is it important to keep them fast. Because they slow down the whole rendering if you do not know what to do with them. First off there are 2...
Continue reading
scaling the screen
January 29, 2025
by
Bastian
Well, you maybe know it. After trying some small lua API you see there is no way of properly getting the game resolution to work from start. When my screen is 1900x800 pixels and the game is retro loo...
Continue reading
sorting
January 28, 2025
by
Bastian
#sprite, #sorting, #solution
HOWTO SPRITE SORTING IN 2D SCREEN SPACE Hi. It is not an easy task to sort sprites so the game does not look like you draw first bottom sprites, then from right to left, then top sprites and override...
Continue reading