Those cpp codeblocks are annoying because they make my scrollwheel useless and as I scroll down I suddenly get stuck and wonder what is going on.
Maybe it's because I'm using smoothwheel.
[QUOTE=likesoursugar;27968710]Thank you alot for the source code![/QUOTE]
You're welcome. Mind, this might not be the best code in the world, it has parts that are real ugly (like my math classes). There might be better ways of doing the things I do there.
Have fun!
[QUOTE=likesoursugar;27968710]Thank you alot for the source code! I'll post some content of my progress with shaders when it's working[/QUOTE]
[url]http://hyperboleandahalf.blogspot.com/2010/04/alot-is-better-than-you-at-everything.html[/url]
Does anybody have a good page/tutorial on how to implement real-time collisions in a tile based map? I've tried this one but it's not that easy to follow [url]http://www.flashperfection.com/tutorials/Hit-the-Wall-Tile-Based-Games--35870.html[/url]
[QUOTE=SupahVee;27970862]Does anybody have a good page/tutorial on how to implement real-time collisions in a tile based map? I've tried this one but it's not that easy to follow [url]http://www.flashperfection.com/tutorials/Hit-the-Wall-Tile-Based-Games--35870.html[/url][/QUOTE]
I dunno that tutorial seems pretty good. What do you have troubles with?
[QUOTE=SupahVee;27970862]Does anybody have a good page/tutorial on how to implement real-time collisions in a tile based map? I've tried this one but it's not that easy to follow [url]http://www.flashperfection.com/tutorials/Hit-the-Wall-Tile-Based-Games--35870.html[/url][/QUOTE]
That tutorial looks massively overcomplicated [Edit: i take that back]
What actual.. movement do you need in your game? if you just need AD and jump, then you can simplify things a lot, especially if you're using large tiles, and even more so if the character simply teleports the next tile rather than moving to it :P
[QUOTE=Icedshot;27971502]That tutorial looks massively overcomplicated
What actual.. movement do you need in your game? if you just need AD and jump, then you can simplify things a lot, especially if you're using large tiles, and even more so if the character simply teleports the next tile rather than moving to it :P[/QUOTE]
I don't see how it's overcomplicated. And obviously he doesn't want a roguelike.
[QUOTE=Maurice;27971709]I don't see how it's overcomplicated. And obviously he doesn't want a roguelike.[/QUOTE]
Heh, i take that back actually :v:
yeah, it depends what he wants, collision detection can be a lot easier, or a lot harder than that
[QUOTE=Icedshot;27972043]Heh, i take that back actually :v:
yeah, it depends what he wants, collision detection can be a lot easier, or a lot harder than that[/QUOTE]
How can it be any easier, unless it's a roguelike?
Also that tutorial solves collision the same way I do. That makes me a good programmer, right? right..?
I'm too lazy to solve my collisions and just use a physics engine :v:
Finally it's working with shaders and all. :] No real matrix class yet tho.
[img]http://img821.imageshack.us/img821/9474/5137c613e30baeea86bba57.png[/img]
Anyone who uses LÖVE, do you know if it's possible to draw a texture polygon? I haven't seen anything about it on the wiki.
[QUOTE=Dlaor-guy;27973114]Anyone who uses LÖVE, do you know if it's possible to draw a texture polygon? I haven't seen anything about it on the wiki.[/QUOTE]
Have you asked in the LÖVE IRC channel?
[QUOTE=BlkDucky;27973279]Have you asked in the LÖVE IRC channel?[/QUOTE]
Now I have... and nobody is responding.
I have this lua code:
[code]
for num = 900,-31,-50.2 do
print(num)
end
[/code]
Pretty simple. But why does it produce this:
[img]http://anyhub.net/file/1MNj-capture.png[/img]
See that number? -3.6000000000002 should be just -3.6 , why isn't it?
EDIT:
Only happens when the starting number is 900 ant the increment number ends with .2
This is probably just something stupid i shouldn't worry about.
[QUOTE=Dlaor-guy;27973114]Anyone who uses LÖVE, do you know if it's possible to draw a texture polygon? I haven't seen anything about it on the wiki.[/QUOTE]
You might want to take a look at the [url=http://love2d.org/forums/viewtopic.php?f=5&t=1692]3D dice roller[/url] on the LÖVE forums.
[QUOTE=DeadKiller987;27973355]I have this lua code:
[code]
for num = 900,-31,-50.2 do
print(num)
end
[/code]
Pretty simple. But why does it produce this:
[img_thumb]http://anyhub.net/file/1MNj-capture.png[/img_thumb]
See that number? -3.6000000000002 should be just -3.6 , why isn't it?
EDIT:
Only happens when the starting number is 900 ant the increment number ends with .2
This is probably just something stupid i shouldn't worry about.[/QUOTE]
It's because computers store floating point numbers in a binary representation. All you can do is truncate it.
[QUOTE=TheBoff;27973473]It's because computers store floating point numbers in a binary representation. All you can do is truncate it.[/QUOTE]
Shouldn't lua round those numbers? Or am I thinking of something else?
[QUOTE=DeadKiller987;27973570]Shouldn't lua round those numbers? Or am I thinking of something else?[/QUOTE]
It seems likely to have something to do with compounding errors as you add floating point numbers to each other
BSP Loading with HD lightmaps using a glsl env shader. I'm currently adding the bullet physics lib to my engine to have a good collision system.
[IMG]http://i52.tinypic.com/23mphmx.png[/IMG]
[IMG]http://i52.tinypic.com/20s7z13.png[/IMG]
[QUOTE=Maurice;27971475]I dunno that tutorial seems pretty good. What do you have troubles with?[/QUOTE]
Jesusssss
Is ob.height and ob.width half the height and half the width as in the last picture?
Is ob.x and ob.y the center coordinates?
If both are yes, I can't understand why won't my implementation work.
Only goes right currently.
[php] public override void Update()
{
base.Update();
int downY = (int)Math.Floor((CenterY + Height / 2f - 1) / 16f);
int upY = (int)Math.Floor((CenterY - Height / 2f) / 16f);
int leftX = (int)Math.Floor((CenterX + Speed * NextX - Width / 2f) / 16f);
int rightX = (int)Math.Floor((CenterX + Speed * NextX + Width / 2f - 1) / 16f);
bool upleft = Game.CurrentMap[leftX, upY] != 1;
bool downleft = Game.CurrentMap[leftX, downY] != 1;
bool upright = Game.CurrentMap[rightX, upY] != 1;
bool downright = Game.CurrentMap[rightX, downY] != 1;
if(NextX == 1)
{
if (upright && downright)
CenterX += Speed;
else
CenterX = (Game.GetCellX(CenterX) + 1)*16 - Width / 2f;
}
}
}[/php]
Guys, guys...
Only three days have passed since I made that new extension, got over 2k of users and like 9k of pages on google about my extension ( mostly reviews and suggestions )
Creepy but...Me gusta.
( Most of them are in foreign language )
[QUOTE=thelinx;27973362]You might want to take a look at the [url=http://love2d.org/forums/viewtopic.php?f=5&t=1692]3D dice roller[/url] on the LÖVE forums.[/QUOTE]
Holy shit, that's insane!
Started on my new project for college; a physics engine. I'm making it for two reasons:
1.) I've always wanted to make my own
2.) My physics coursework is based on physics engines in games, so I'm going to have to know exactly what I'm talking about :P
Here's what I got done today:
[media]http://www.youtube.com/watch?v=YL6I_hvuZ1A[/media]
I'm going to try and document every day of development in this way.
The video looks best fullscreen in 720p, you can see what's going on better.
Hopefully in future videos I'll use my mic instead of typing into notepad - I couldn't this evening though because I had to be quiet :saddowns:
Edit:
In before "Make games not engines"
[QUOTE=Xerios3;27975197]Guys, guys...
Only three days have passed since I made that new extension, got over 2k of users and like 9k of pages on google about my extension ( mostly reviews and suggestions )
Creepy but...Me gusta.
( Most of them are in foreign language )[/QUOTE]
Name?
[QUOTE=sLysdal;27975539]Name?[/QUOTE]
The weirdest extension name you'll ever hear today : 'Sexy History Viewer Lite'
[QUOTE=Xerios3;27975619]The weirdest extension name you'll ever hear today : 'Sexy History Viewer Lite'[/QUOTE]
Wow, lots of articles, quite fast spread
A question:
How did you guys keep motivated, while learning your first steps of programming?
I'm learning lua and I just keep getting bored.
Try C# it's quite nice for a first language and you can make some interesting things just using console.
Sorry, you need to Log In to post a reply to this thread.