1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

52 Commits

Author SHA1 Message Date
Mathieu Schroeter
d0abde9274 Remove unused functions 2017-02-04 16:26:06 +01:00
Mathieu Schroeter
a4dd39d865 Prevent crash when event is null 2017-02-04 16:24:16 +01:00
Mathieu Schroeter
942b97b2e7 Fix main SDL stuff init 2017-02-04 16:24:01 +01:00
Mathieu Schroeter
ae179fd250 Change from directsound to SDL mixer for sounds 2017-02-04 16:23:43 +01:00
Mathieu Schroeter
5f8de02110 Add SDL2_mixer to the project 2017-02-04 16:19:07 +01:00
Mathieu Schroeter
4bd59279c3 Add SDL2_mixer libraries 2017-02-04 16:17:00 +01:00
Mathieu Schroeter
c5d7ace9d4 Remove dead code 2017-02-02 18:07:01 +01:00
Mathieu Schroeter
5ac40cba9c Remove obsolete message handling 2017-02-02 18:03:48 +01:00
Mathieu Schroeter
e7e1b4cc15 Cosmetic 2017-02-02 18:02:05 +01:00
Mathieu Schroeter
8c111b9557 Finish objects at the right place 2017-02-02 18:01:56 +01:00
Mathieu Schroeter
061bfe9e2b Fix timer lifetime 2017-02-02 17:57:51 +01:00
Mathieu Schroeter
cbfe4585ce Add editorconfig file 2017-02-02 17:54:09 +01:00
Mathieu Schroeter
b6cee1bcc8 Move stuff for mouse motions with demo 2017-02-02 17:53:53 +01:00
Mathieu Schroeter
f40b29f0ec Add a converter for demo play
It converts from Windows events to SDL events. Only
useful events are considered.
2017-02-02 07:49:52 +01:00
Mathieu Schroeter
a75a2e6650 Remove dead code 2017-01-31 18:15:41 +01:00
Mathieu Schroeter
328dc4f2ba Use SDL call for setting mouse position 2017-01-31 18:12:23 +01:00
Mathieu Schroeter
2956051dbf Remove useless cdrom stuff 2017-01-31 17:58:25 +01:00
Mathieu Schroeter
223ec0c5bc Cosmetic 2017-01-31 17:45:33 +01:00
Mathieu Schroeter
158470c386 Remove a lot of useless mouse stuff 2017-01-30 22:10:11 +01:00
Mathieu Schroeter
8bca8b5840 Move function key stuff in the SDL event loop 2017-01-30 22:01:24 +01:00
Mathieu Schroeter
795875e6a4 Convert timer stuff to SDL timer 2017-01-30 21:53:17 +01:00
Mathieu Schroeter
36b44d9578 Move stuff when gain/lost focus on the main window 2017-01-30 21:53:17 +01:00
Mathieu Schroeter
89cc083664 Drop dead code 2017-01-30 21:53:17 +01:00
Mathieu Schroeter
50f8a441ea Fix the minimap for SDL 2017-01-30 21:53:17 +01:00
Mathieu Schroeter
a4e75756de WIP: adapt event stuff 2017-01-30 21:53:12 +01:00
Mathieu Schroeter
515c8fedd9 Remove test code 2017-01-26 19:13:07 +01:00
Mathieu Schroeter
0c6fc2bcdd Fix new window parameter 2017-01-26 19:11:36 +01:00
Mathieu Schroeter
3dd443d53d Remove stuff to control if the mouse is visible
With SDL it's useless because the mouse is not blit on the
renderer by our code.
2017-01-26 19:07:32 +01:00
Mathieu Schroeter
d64f3751ef Add an initial real SDL mouse cursor support 2017-01-26 18:58:14 +01:00
Mathieu Schroeter
262128c745 Move renderer at the right place 2017-01-26 18:55:36 +01:00
Mathieu Schroeter
201af8a462 WIP: replace the surfaces by the textures 2017-01-25 21:46:51 +01:00
Mathieu Schroeter
5418cd52d5 Merge branch 'master' into wip/sdl2 2017-01-23 23:59:04 +01:00
Mathieu Schroeter
284713ca7a Fix for x64 build
The wparam and lparam are 64 bits. We ensure to use always 32 bits
values because the structure is serialized.
2017-01-23 23:58:08 +01:00
Mathieu Schroeter
7ac5c6d753 WIP: add partial cursor support (looks useless) 2017-01-23 00:22:08 +01:00
Mathieu Schroeter
658b2f6972 WIP: add experimental SDL support for video output 2017-01-23 00:22:08 +01:00
Mathieu Schroeter
cdf4a173a5 Add 32bit BMP with alpha channel 2017-01-23 00:22:07 +01:00
Mathieu Schroeter
b10a6dd0e9 Create the main SDL window 2017-01-23 00:22:07 +01:00
Mathieu Schroeter
742703e31e Add initialization for SDL
We continue to use the WinMain for the migration.
2017-01-23 00:22:07 +01:00
Mathieu Schroeter
9812e18868 Add nuget package for SDL2 2017-01-23 00:22:02 +01:00
Mathieu Schroeter
e197b01781 Fix warnings with x64 build
But the game is a bit broken, no music and demo mode
with broken coordinates.
2017-01-22 00:26:57 +01:00
Mathieu Schroeter
93047957fd Replace BOOL by bool
And replace structs that are stored from BOOL to int.
2017-01-22 00:15:32 +01:00
Mathieu Schroeter
7ed67f28c4 Remove one more useless header 2017-01-21 23:47:16 +01:00
Mathieu Schroeter
03936a50e3 Change BOOL to bool 2017-01-21 23:45:46 +01:00
Mathieu Schroeter
ec64153d42 Add pragma once where missing 2017-01-21 23:45:45 +01:00
Mathieu Schroeter
9c0996b329 Remove useless include on windows.h 2017-01-21 23:45:45 +01:00
Mathieu Schroeter
6e353f9d3e Remove useless header 2017-01-21 23:45:40 +01:00
Mathieu Schroeter
21b5545bde Fix warnings 2017-01-21 23:31:49 +01:00
Mathieu Schroeter
203ccc8b59 Add config.def file in the project v1.8.0 v1.7.0 v1.7-@ v1.8-@ 2017-01-21 17:51:52 +01:00
Mathieu Schroeter
39e9a3c4b8 Fix project for a working build
Note that the blit for blue transparency is broken.
2017-01-21 17:51:52 +01:00
Mathieu Schroeter
b0270ab432 Import initial sources and assets 2017-01-21 17:51:48 +01:00