Code Monkey home page Code Monkey logo

divgames / div-games-studio Goto Github PK

View Code? Open in Web Editor NEW
226.0 25.0 32.0 7.25 MB

Complete cross platform games development package, originally for DOS but now available on modern platforms.

License: GNU General Public License v3.0

Shell 0.46% CMake 0.40% HTML 0.10% C++ 2.16% xBase 0.25% C 94.22% Objective-C 0.22% Batchfile 0.01% Assembly 1.89% SourcePawn 0.01% JavaScript 0.02% CSS 0.29%
games-studio development-utility cross-platform webgame dos windows linux raspberry-pi osx c sdl2 sdl portable pandora-console 3ds nintendo-3ds gcw-zero cmake android-development div-games-studio

div-games-studio's Introduction

README

DIV Games Studio 2, ported, translated and upgraded.

Build Status

homepage: http://div-arena.co.uk (binary downloads, demos, examples, community)

Cross platform IDE, compiler and runtime for

  • DOS
  • Windows (32 and 64bit cpu)
  • OSX
  • Android
  • Amazon Fire TV Stick (WIP)
  • Amazon Kindle (WIP)
  • Ouya Console (WIP)
  • Linux (X86 / X84)
  • HTML / Javascript (emscripten - runtime export only)
  • Raspberry Pi (B+, 2, zero)
  • GCW-Zero
  • Pandora Console
  • GP2X Console
  • PSP

Future Possible Platforms:

  • Nintendo DS
  • Nintendo Wii
  • XBOX (XNA)
  • IOS (iPhone / iPad)
  • Windows Mobile
  • PS2
  • Dreamcast
  • Pyra Handheld

100% compatible with existing DIV1 and DIV2 code including plugin dlls - EVEN MODE8 3D!

div-games-studio's People

Contributors

bergfi avatar cictec avatar mikedx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

div-games-studio's Issues

Generate font by importing a pcx failed!

Like the tile says, it crashes DIV DX (DIVDX-windows-17.09.03-update) on Windows 7-64 Bit Home Premium. I tried it with a BMP and PCX file. Doesn't work. But, it works on previous nightly build (tested with div-beta-nightly-2017-02-08-fb9d1ac228-win32).

Uninitialized value in net.c

At this point in net.c, the variable num_games has never been initialized, and thus contains garbage: https://github.com/DIVGAMES/DIV-Games-Studio/blob/master/src/runtime/net.c#L546

Looking at the next lines suggests the solution would be to turn the if into something like this:

if (num_games=_net_get_games(game_id)) {

However, if we do that then the next if would never be executed?

Another option would be to initialize the variable to 0, 1, or whatever a sensible default value is.

exit("", x) string not updated

If you do the exit() statement into your program it returns the value and the correct string. Then, if you start the program again and quits with ALT+X it shows the latest return string.

Issues is: the string will not be updated!

Example:
program exit_test;

begin
loop
if (key(_esc)) exit("Exited with the ESC key1", 0); end
frame;
end
end

Color changes after using map editor

Open a program with F4, so it will open the program editor. Okay...
Open a map and work a little bit on this map. Then press right mouse button to close the map editor and to go back to DIV. Sometimes it changes the font color in the opened program. But, this is not a big problem.

My solution is: start the program and after quitting the colors are normal like you are set up in the settings menu. I hope you understand what i mean.

Keyboard shortcuts with Alt + key (Temporarily fixed)

Hi all.

I try to describe the problem with 2 examples:

  1. When I have the source editor open (window focus) and I press the keyboard shortcut alt + x (exit), the letter x is printed in the editor 2 times (where the insert cursor is located) before displaying the dialog box corresponding to the shortcut.

  2. When I have the source editor open (window focus) and I press the keyboard shortcut alt + f (find) the letter f is printed in the editor 2 times (where the insert cursor is located) before displaying the dialog box corresponding to the shortcut.
    1662301040

The same goes for other keyboard shortcuts involving alt, like: alt + s(shell)

Very important: with the keyboard shortcut involving ctrl this does not happen. For example, to search for text there are 2 keyboard shortcuts: alt + f and ctrl + f, only with alt + f the bug happens.

some CMake log

-- BUILDING FOR LINUX
-- SETTING SDL to 1.2
-- Buiding LINUX 64bit
CMake Warning at CMakeLists.txt:81 (MESSAGE):
  TODO - FIX RUNNER DEFINITION


-- Adding Libraries
-- CMAKE_FIND_ROOT_PATH: 
-- CMAKE_SYSTEM_LIBRARY_PATH: /usr/lib/X11
-- CMAKE_INCLUDE_PATH: 
-- CMAKE_SYSTEM_INCLUDE_PATH: /usr/include/X11
-- Adding SDL Library
-- Adding SDL NET
-- Adding SDL Mixer
-- Adding ZLIB
-- Adding MODE8 (VPE)
-- Adding DLL PLUGIN Support
-- Using SDL-1
-- Configuring done
-- Generating done

Note: Linux x64 (ArchLinux), SDL 1.2

Versions:

  • branch master
  • div-beta-nightly-2016-10-16-ab9d3377a9
  • branch: features/cictec-fixes

I apologize in advance if I am late in replying.

Greetings.


Since I don't know if the problem is internal or external, it remains pending:

TODO:

  • try another window manager other than Fluxbox. Done: i3wm, jwm, same problem, it is not here.

FROM statement doesn't recognize a BYTE/WORD variable as a variable

The FROM statement expects its variable to be of type INT; if it's BYTE or WORD, an "expecting a variable" error occurs.

This can be tested with this code:

PROGRAM test;
PRIVATE
    WORD perrito;
BEGIN
    FROM perrito=0 TO 1;
    END
    FOR (perrito = 0;;)
    END
END

Notice that the FOR statement works perfectly with a WORD or BYTE variable.

compiled exe need to many ram

If you compile a program to an exe and run this exe on Windows 7 Home Premium 64-bit., it needs more than 1gb ram. See my plattform tutorial Jumpman at DIV-Arena!

Some little framerate issues

I reported this bug recently in the DIV Arena message board:

if i press F12 to test my game, it starts. In game, it laggs some time a little bit. I think, the framerate drops down from - in example 30 to 15 or 20! It can not be my system, its an Intel i-5 3.0 GHz and it runs games like GTA V or Tomb Raider (2013). ;)

This bug, i don't mean the ready compiled .EXE for a release!!!
But, this bug occurs on a release .EXE, too!

Best compiler for Windows 10

I'm not very used to compile C projects in Windows except for those made in Microsoft VS. But importing your source code to VS has proven to have to many issues. So instead of working problems out of a perfectly made code I would like you to recommend me a windows compiler for your code. Thanks in advance for your help.

Update travis to support cross compilation

The current travis-ci works fine for simple linux compiler test but does not go any further. It should be extended to allow compilation tests on all supported targets (native and cross compiled where possible and necessary)

div-beta-nightly-2018-03-03 failing to create installation

I have a game that the stable version (http://div-arena.co.uk/downloads/) successfully creates the installation package but the music is not played. I am trying to create the installation package with div-beta-nightly-2018-03-03 but it creates a 0bytes EXE, and a ZIP with the following files with 0 bytes sizes:

  • Executable.EXE
  • libgcc_s_dw2-1.dll
  • libmad-0.dll
  • libSDL_mixer-1-2-0.dll
  • DSL_net.dll
  • zlib1.dll

I attach the game to allow to reproduce the issue.

Thank you!

boxing.zip

Possibility to use languages files from Div2 resources?

Hi!
I'm Grew from the old Div Game Studio french community. I'm planning to teach my nephew to develop games with Div Game Studio (he has the same age than my when I started, 11 yo :) ). I wonder if there is a way to integrate other languages than english in your Div Game Studio port. I've the french CDs of Div Game Studio 1 & 2, maybe I can try to find languages resources somewhere in the binary? How is the language managed?

I'm a professional developper know, so I can help for this task of course.

Thank you!

How compile a DLL ?

I'm trying to port my CSV DLL to DIV DX . I used the new div.h and compiled with gcc csv.cpp -o csv.so -fPIC -funsigned-char -fpermissive -shared -O3 . It generates a csv.so . So then I try to use on my DIV game and when I try to compile it, throws a "Unknown name" error when calling my exported functions :

imagen

Any idea why happens this ? I need to do changes to my code ?

NOTE: I'm trying this to my own compiled version of "old_master" branch (f57f75c) and with "master" branch (dc8b7e5)

[SDL2] function call bottleneck

OSDEP_UpdateRect(vga,0,0,vga_an,vga_al);
if(SDL_MUSTLOCK(vga))
SDL_UnlockSurface(vga);
OSDEP_Flip(vga);

The problem is that the function OSDEP_UpdateRect only does internally is call OSDEP_Flip, so hare the function is being called 2 times. See: src/shared/osdep/osd_sdl2.c , branch: master

Maybe in modern computers the speed drop is not noticeable but mine is. Moving the windows or the mouse cursor is noticeable slower.

Proposal: A conditional guard should exist for the SDL2 implementation to only call one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.