Browse Search Popular Register Upload Rules User list Login:
Search:
3d game

Image:
screenshot of the scene

Author: ezpz(fib)5

Group: Default

Filesize: 13.16 kB

Date added: 2022-01-17

Rating: 6.1

Downloads: 1469

Views: 300

Comments: 9

Ratings: 3

Times favored: 0

Made with: Algodoo v2.1.3

Tags:

Scene tag

Well, not really a game, more like simulator? idk. I have not added very much stuff, anyway, wasd and mouse to control, hope u enjoy.

Me and my friend were doing collab on it.
Last edited at 2022/02/13 21:18:47 by ezpz(fib)5
Please log in to rate this scene
edit
Similar scenes
Title: Game car: map8
Rating: 5.25
Filesize: 51.27 kB
Downloads: 106
Comments: 2
Ratings: 4
Date added: 2008/07/15 18:14:28
Made with: Phun
no image found for this scene
Rating: rated 5.3
download
Title: Game car: map 2
Rating: 7.4
Filesize: 55.76 kB
Downloads: 110
Comments: 0
Ratings: 5
Date added: 2008/07/15 18:09:29
Made with: Phun
no image found for this scene
Rating: rated 7.4
download
Title: Game car: map3
Rating: 7.6667
Filesize: 61.32 kB
Downloads: 170
Comments: 0
Ratings: 3
Date added: 2008/07/15 18:09:57
Made with: Phun
no image found for this scene
Rating: rated 7.7
download
Title: Game car: map4
Rating: 5
Filesize: 56.4 kB
Downloads: 105
Comments: 1
Ratings: 3
Date added: 2008/07/15 18:10:41
Made with: Phun
no image found for this scene
Rating: rated 5
download
Title: the game game #1
Rating: 5.8889
Filesize: 185.24 kB
Downloads: 767
Comments: 6
Ratings: 9
Date added: 2009/03/01 11:07:34
Made with: Phun
Rating: rated 5.9
download
Title: Flappy ball(game)
Rating: 5
Filesize: 40.27 kB
Downloads: 4416
Comments: 2
Ratings: 1
Date added: 2021/07/09 03:17:53
Made with: Algodoo v2.1.0
Rating: rated 5
download
wow
Not sure what you are doing, but I simplified some of your code in case it helps:

in postStep:
a := app.mousepos(0);
keys.isdown("w") ? {
_player_pos = _player_pos + [math.cos(a), math.sin(a)] / 10.0
} : {};
keys.isdown("s") ? {
_player_pos = _player_pos - [math.cos(a), math.sin(a)] / 10.0
} : {};
keys.isdown("d") ? {
_player_pos = _player_pos + [-1.0 * math.sin(a), math.cos(a)] / 10.0
} : {};
keys.isdown("a") ? {
_player_pos = _player_pos - [-1.0 * math.sin(a), math.cos(a)] / 10.0
} : {}

in update:
sim.running ? {
a := app.mousepos(0);
for(String.length(_circle), (i)=>{
_relative = math.atan2(_circle(i) - _player_pos(1), _circleZ(i) - _player_pos(0));
_distance = math.vec.dist([_circle(i), _circleZ(i)], _player_pos);
_distance < 5 ? {
_player_pos = _player_pos - [math.cos(_relative), math.sin(_relative)] / 5.0
} : {};
_distance < 75 ? {
Scene.addPen({
pos := [scene.my.view(0) + (_relative - a) * 8.0 / math.pi, scene.my.view(1)];
followGeometry := true;
size := 10 / _distance;
color := [0, 0, 0, 1.0];
timeToLive := 0.034;
Zdepth := 7.0
})
} : {};
})
} : {}
Last edited at 2022/03/26 11:04:54 by s_noonan
oh, wow, thanks!:) oh, a and d doesn't work in your code, I'll fix it.
Last edited at 2022/02/03 01:38:29 by ezpz(fib)5
I was trying to make something where you can look up but then the distance variable was BAD. Do you know a distance equation for 3 axis?
Last edited at 2022/01/17 22:43:29 by ezpz(fib)5
ezpz, it's just two pythagoreans on top of one another, first find the horizontal distance (2d distance), then put that and the vertical distance into pythagoras.
thanks.
I don't understand why you say "a and d doesn't work in your code". The code is mathematically equivalent. I can copy and paste it into postStep and it functions exactly the same. Maybe somebody else can try it out.
For now I'm just using the old code but when I press a and d it is equivalent to w and s. I don't know, maybe I'm making a mistake. I'm not very good at maths.
No, it's my mistake. I forgot to multiply some terms by -1.0. My apologies. The code has been corrected above.