Pages: 1
  Print  
Author Topic: mario source (platform game)  (Read 1453 times)
Offline (Unknown gender) -dmi-
Posted on: February 23, 2014, 06:22:35 AM
Member
Joined: Oct 2013
Posts: 25

View Profile
I release a source of my wannabe flappy mario game. Because the game is made in one day i got lazy at the end and code got a little a bit messy and is uncommented. Nevertheless, code itself is very simple and some can even use it as a platform tutorial.

Game itself works great out of the box, i only had to remove game_save and load. There are some sound problems as well as some other issues (which only occur in enigma). I think these problems can be easly fixed in no time but i don't want to touch this project anymore. Use this as you want. I think sound problems occur because in GM:S i took account that only one ogg sound could be played at the same time. And probably some stupid fast and lazy workarounds for bugs that could not be seen in gm:s could occur in enigma's version.

I still have some problems with enigma but it works pretty well. (probably windows fault)
I like how fast and stabe it runs in enigma. For some reason GM:S version of the game lags and hangs sometimes on my laptop but engima version does not so often (probably hangs only when laptop itself hangs or sth).

Controls are: left-right arrows
z-turbo
x-jump/glide
r-restart
ctrl+c - cheats (look in the source for them)

You can download original GM:S version here:
https://www.dropbox.com/s/a8czgr9hz0c2xyx/SuperCrappyMario1.3.zip

Enigma compiled version + source here: (problem with backgrounds? ->> Just press "Retry" to bypass)
https://www.dropbox.com/s/f6c9m88ywjzmnl7/scmario.zip

Some pics:
https://www.dropbox.com/s/powa6ov1azagthf/sfmario_beta1.png
https://www.dropbox.com/s/d1kljuumjd658vc/scmario13acid.png

---------
*I wanted to post one more game (like topdown car game with the use of d3d for buildings) and test them but i couldn't because "perfoming secondary parsing and writing globals" tooks infinite time.
*Cannot save crappy mario (or probably some other games well) in .lgm format because saving stays in 14%-th percent forever (no errors).

Using enigma 1.8.4
« Last Edit: February 23, 2014, 06:55:17 AM by -dmi- » Logged
Offline (Unknown gender) Darkstar2
Reply #1 Posted on: February 23, 2014, 01:42:04 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
Tried it, runs smoothly indeed, but there is a lot of bugs.  Sometimes when you die and are crushed by a pipe or you die and scroll off screen, when the level restart, the player is invisible, you have to exit the game and restart.  Thanks, will take a look at the source later.

Logged
Offline (Unknown gender) -dmi-
Reply #2 Posted on: February 23, 2014, 02:02:17 PM
Member
Joined: Oct 2013
Posts: 25

View Profile
Yes, but these bugs are only in enigma's compiled version. I haven't looked why these bugs occur. I used "game_restart()" a lot, maybe it's not resetting all the necessary stuff?

Try to compare enigma's and gm:studio's version differences since source code is the same. For example blood is weird, after restart it seems that view does not find the object to follow and sometimes the variable, that moves the view, is not resetted etc...
« Last Edit: February 23, 2014, 02:21:43 PM by -dmi- » Logged
Offline (Unknown gender) Darkstar2
Reply #3 Posted on: February 23, 2014, 08:47:38 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
Hm interesting, perhaps this post would be better in the issues sub forum, I'm sure one of the developers of ENIGMA can look at it and see if they can fix it.  They usually are quick to fix issues unlike another well known company  :D
Logged
Pages: 1
  Print