Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Add smart zoom | cc57dc0952db6c59d06ef7a9b5c5526f7801945f | mse | 2021-10-16 09:13:49 |
Housekeeping | 76d7571c34241141c6e2a6315de5e5b513db5209 | mse | 2021-10-07 07:33:20 |
Fix font kerning support | ab4cbabbed82f629d616f8878790e7d2666524eb | mse | 2021-10-02 21:10:14 |
Add default soundspec volume | 82a658f2e2bd786618228346bc1848c1be894054 | mse | 2021-09-30 05:23:43 |
Fix Windows build and update SDL | d8f30e756bc4d5a63e5b7524db2b69ae5af4f88f | mse | 2021-09-29 23:31:25 |
Update gamecontrollerdb | 3da6ad2629e0b28cad34b3ff7a89c0fe0d96a2fd | mse | 2021-09-29 23:02:39 |
Parse newline escape sequences in caption | ff33cfb3e88098ae24a6afa1cc7ac9049b6e4c1f | mse | 2021-09-27 23:45:58 |
Fix loadOBJ(...) | 0b307ff98c2aa8f79d62770b3e2aff6fb7d8670a | mse | 2021-09-25 05:18:15 |
Add uploadModelTransforms(...) | 53530b8cabe72cfa6c71148bd484a1b5a17df565 | mse | 2021-09-23 14:33:47 |
Readability | a5885db68a6134c7c3930b6cf10650f0b340088d | mse | 2021-09-13 15:56:30 |
Pad HUD health with 0 | 267304751e17901c276108d8899d096e2094cb2a | mse | 2021-09-13 11:02:57 |
Housekeeping | 6ff79e3a21829e267e866a8472777e180d337ff4 | mse | 2021-09-13 07:33:00 |
Add CSL comments | 7a818e8b57cb38c9bfef922e66bd6f735b4962e4 | mse | 2021-09-12 09:26:07 |
Add Confectioner Scripting Language (CSL) & change array separator to ; | 8d980bfac5d649574f749b7c04a19af766f71091 | mse | 2021-09-11 12:31:58 |
Fix console /set bug | 7c45e27e7f40472bea317b0316e4367135b49704 | mse | 2021-09-11 01:32:11 |
Scriptable lines@, ids@, bugfix | 9f606fd2a793fd76a9d1b9e186434d231b973085 | mse | 2021-09-10 14:43:50 |
Add array scripting (@ operator, ARRLEN <array>) | 3f098b3e0a04922c2c7a981b232efd8d08a8d9a0 | mse | 2021-09-10 14:02:39 |
Optimize script runtime | a298b01c9b77192b7ed8aba3832a8ab51c9d389a | mse | 2021-09-09 06:57:49 |
Scriptable bg$, fg$, caption$ | 0ad08aa3887118d2376f4fa7f8b7c66e0f164c73 | mse | 2021-09-06 11:04:38 |
Animation command: ANIM <loop|play> <bg|fg> <fps> <directory> | 6066e2cae1dc29043902d46549f443c7b683fd88 | mse | 2021-09-06 06:42:13 |
File | Lines added | Lines deleted |
---|---|---|
confec.cpp | 15 | 1 |
File confec.cpp changed (mode: 100644) (index 4a571c8..19b6ae8) | |||
... | ... | void Render(){ | |
4339 | 4339 | simScreenHeight3D = landscapeScreenHeight3D; | simScreenHeight3D = landscapeScreenHeight3D; |
4340 | 4340 | } | } |
4341 | 4341 | ||
4342 | world.scale = world.screenHeight / (double)simScreenHeight3D; | ||
4342 | double zoom_target = 1.0; | ||
4343 | if( world.followEntity >= 0 && world.entities.size() >= 1 | ||
4344 | && !mainmenu && (health < threshold_health || | ||
4345 | world.entities[world.followEntity].task == fworld::TASK_TALK) ){ | ||
4346 | // Zoom in on the player. | ||
4347 | zoom_target = 1.1; | ||
4348 | } | ||
4349 | static double zoom_actual = 1.0; | ||
4350 | // Ease towards the target zoom level. This is non-linear. | ||
4351 | zoom_actual = lerp( zoom_actual, zoom_target, 2.0 * d ); | ||
4352 | // Snap back to regular zoom on main menu. | ||
4353 | if( mainmenu ) zoom_actual = 1.0; | ||
4354 | |||
4355 | world.scale = | ||
4356 | world.screenHeight / (double)simScreenHeight3D * zoom_actual; | ||
4343 | 4357 | ||
4344 | 4358 | fgl::resizeFramebuffer( | fgl::resizeFramebuffer( |
4345 | 4359 | framebuffer, | framebuffer, |