Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | spacewars: cleanup space | Sven Göthel | 2024-09-14 | 1 | -17/+17 |
| | |||||
* | cleanup includes; spacewars: remove wrong cast | Sven Göthel | 2024-09-14 | 1 | -1/+3 |
| | |||||
* | unit: Move literals to namspace pixel::literals (cleanup); Use C++20 numbers ↵v0.9.3 | Svenson Han Göthel | 2024-07-14 | 1 | -7/+8 |
| | | | | PI in high resolution | ||||
* | Merge branch 'master' of ↵ | Svenson Han Göthel | 2024-07-14 | 1 | -67/+91 |
|\ | | | | | | | ssh://jordan.goethel.localnet/srv/scm/cs_class/gfxbox2 into lala | ||||
| * | spacewars: construct HUD text per player .. | Sven Göthel | 2024-07-14 | 1 | -22/+29 |
| | | |||||
| * | pixel::init_gfx_subsystem: Return true if successful, otherwise false - ↵ | Sven Göthel | 2024-07-14 | 1 | -2/+4 |
| | | | | | | | | don't just exit(1); Also validate sdl_win, sdl_win_id and sdl_rend | ||||
| * | spacewars: Fix segmentation fault (using nullptr-ship-ref @ pressed-event) | Sven Göthel | 2024-07-13 | 1 | -43/+58 |
| | | |||||
* | | spacewars: adjust start posision to geometric ship model(papa chaged ship ↵ | Svenson Han Göthel | 2024-07-14 | 1 | -1/+2 |
|/ | | | | model order back) | ||||
* | spacewars: reorder spaceship design: (1) star trek, (2) klingon, (3) ask my ↵ | Sven Göthel | 2024-07-13 | 1 | -3/+3 |
| | | | | son ;-) | ||||
* | spacewars: Fix & simplify 'mine' / 'orbit' event handling; Simplify ↵ | Sven Göthel | 2024-07-13 | 1 | -55/+49 |
| | | | | player_count handling. Setup t1/td post event polling | ||||
* | Fix: Event handling, don't miss an event: handle_events(..) -> while( ↵ | Svenson Han Göthel | 2024-07-11 | 1 | -128/+148 |
| | | | | handle_one_event(..) ) { .. } | ||||
* | spacewars: add mines | Svenson Han Göthel | 2024-06-15 | 1 | -33/+64 |
| | |||||
* | spacewars: make a move funktion | Svenson Han Göthel | 2024-06-12 | 1 | -8/+13 |
| | |||||
* | spacewars: make mines | Svenson Han Göthel | 2024-06-12 | 1 | -1/+8 |
| | |||||
* | spacewars: Add the 3rd player (P3) | Svenson Han Göthel | 2024-06-12 | 1 | -36/+207 |
| | |||||
* | spacewars: Add 10s shield 'cursor down' per ship | Svenson Han Göthel | 2024-04-02 | 1 | -15/+73 |
| | |||||
* | WebAssembly: Add interaction: General forced_fps, win_{width,height}; ↵ | Sven Göthel | 2024-03-31 | 1 | -16/+15 |
| | | | | | | | | | | freefall01: debug_gfx, rho; spacewars: show_ship_velo wasm exported methods are cwrap'ed in the javascript portion, allowing user interaction. To setup a maximized 16:9 ratio'ed canvas size, JS onRuntimeInitialized() calls JS maximizeCanvas() which propagates the dimenstion to our pixel library via set_window_size(..). | ||||
* | spacewars, tron: fix typos | Sven Göthel | 2024-03-30 | 1 | -3/+3 |
| | |||||
* | spacewars, tron: adjust HUD color | Sven Göthel | 2024-03-30 | 1 | -3/+4 |
| | |||||
* | tron: Add WebAssembly build | Sven Göthel | 2024-03-30 | 1 | -1/+1 |
| | |||||
* | piviz,spacewars: Handle WINDOW_CLOSE_REQ after handle_event() | Sven Göthel | 2024-03-30 | 1 | -4/+2 |
| | |||||
* | freefall01: Add WebAssembly build | Sven Göthel | 2024-03-30 | 1 | -13/+7 |
| | |||||
* | spacewars: Fix sun size-pump min/max | Sven Göthel | 2024-03-30 | 1 | -3/+8 |
| | |||||
* | pixel/pixel2f: Add use_subsys_primitives() notion, i.e. rendering primitives ↵ | Sven Göthel | 2024-03-30 | 1 | -2/+15 |
| | | | | (pixel, line) using the gfx-subsystem (SDL, ..) _DEFAULT_ true; spacewars: drop force_fps if use_subsys_primitives() | ||||
* | spacewars: Disable cloak_enabled by default for game, also not showing ↵ | Sven Göthel | 2024-03-29 | 1 | -13/+27 |
| | | | | coordinated in HUD | ||||
* | Merge branch 'master' into wip | Svenson Han Göthel | 2024-03-29 | 1 | -164/+185 |
|\ | |||||
| * | spacewars: Center HUD on screen, wasm: use 1024x576 16:9 default resolution | Sven Göthel | 2024-03-29 | 1 | -13/+14 |
| | | |||||
| * | Enable WebAssembly (wasm) target via clang + emscripten, initially enable ↵ | Sven Göthel | 2024-03-29 | 1 | -177/+201 |
| | | | | | | | | spacewars (WIP, but working demo) | ||||
| * | C++ cleanup: Add missing override, use 'class' consistently for ↵ | Sven Göthel | 2024-03-29 | 1 | -1/+1 |
| | | | | | | | | pixel::f4::vec_t, proper static_cast<decltype(ts.tv_sec)>() for 'struct timespec'.tv_sec | ||||
* | | spacewars: Various changes.. | Svenson Han Göthel | 2024-03-29 | 1 | -32/+27 |
|/ | | | | | | | - fix HUD position, single line HUD - add HUD info - remove level - | ||||
* | spacewars: make a cloaking device, count score, add player_t handling ↵ | Svenson Han Göthel | 2024-03-23 | 1 | -134/+272 |
| | | | | | | | | | | | | spaceship and score... If the boolean from the cloaking device is true, then the spaceship does not draw its body. Otherwise the spaceships' body is drawn. idscore_t covers identity and score, used as a superclass for player_t. The idscore_t reference is passed and stored from player_t to its spaceship_t and its peng_t instances. player_t is-a idscore_t and owns its spaceship, which also controls its peng_t instances. | ||||
* | spacewars: Have orbit_velocity() chose direction of velocity; Add ↵ | Sven Göthel | 2024-03-21 | 1 | -90/+228 |
| | | | | spaceship2; Add 0.25s fuse for peng to arm (not hitting oneself); Add ship/ship and ship/peng collision. | ||||
* | spacewars: Show target orbit-velocity in debug mode, i.e. helper to gain ↵ | Sven Göthel | 2024-03-20 | 1 | -2/+8 |
| | | | | orbit manually | ||||
* | spacewars: ACTION1 = peng, ACTION2 = set_orbit_velocity() | Svenson Han Göthel | 2024-03-20 | 1 | -10/+1 |
| | |||||
* | spacewars: Fix orbit velocity: g = v^2 / d | Sven Göthel | 2024-03-20 | 1 | -35/+33 |
| | |||||
* | spacewars: Investigate calculating stable orbit parameter: initial-position ↵ | Svenson Han Göthel | 2024-03-20 | 1 | -35/+74 |
| | | | | and -velocity | ||||
* | spacewars: Adjust default values add cmdline-args, debug_gfx; Star gravity ↵ | Sven Göthel | 2024-03-20 | 1 | -74/+115 |
| | | | | per ships + fragments; star radius pump 10%; ... | ||||
* | spacewars: Add star_t w/ gravity impact on spaceship | Svenson Han Göthel | 2024-03-19 | 1 | -5/+53 |
| | |||||
* | spacewars: Fix spaceship_t::peng() velocity of peng_t | Svenson Han Göthel | 2024-03-19 | 1 | -1/+1 |
| | |||||
* | spacewars: Add peng_t, use random_device rng for asteroids size, angle, ↵ | Sven Göthel | 2024-03-19 | 1 | -97/+190 |
| | | | | velo, start-pos, ... | ||||
* | pixel::swap_gpu_buffer: Add optional forced fps value, allowing to reduce ↵ | Svenson Han Göthel | 2024-03-18 | 1 | -26/+2 |
| | | | | rendering load | ||||
* | pixel::handle_events(..): Split to handle_one_event() + handle_events() ↵ | Svenson Han Göthel | 2024-03-18 | 1 | -29/+18 |
| | | | | while preserving pressed + released key states | ||||
* | example spacewars: unify astroid into fragment, prepare a bullet (wip) | Svenson Han Göthel | 2024-03-11 | 1 | -294/+114 |
| | |||||
* | examples/spacewars: Allow ship to explode | Svenson Han Göthel | 2024-02-13 | 1 | -10/+20 |
| | |||||
* | Example spacewars: Add asteroid and its fragements post collision. | Svenson Han Göthel | 2024-01-25 | 1 | -47/+298 |
| | |||||
* | Add example spacewars (WIP) | Sven Gothel | 2023-01-05 | 1 | -0/+422 |